RE: Can not fit user function

Pablo P Yepes (yepes@bonner-ibm2.rice.edu)
Thu, 17 Jul 1997 11:15:14 -0500


Hello,
When I compile the example program found in the TTree definition =
(http://root.cern.ch/root/html/TTree.html) with Visual C++. I get the =
following error:

C:\yepes\Explore\test\test.cpp(32) : error C2664: 'class TBranch =
*TTree::Branch(const char *,class TClonesArray *,int,int)' : cannot =
convert parameter 2 from 'class TH1F *' to 'class TClonesArray *' (new =
behavior; please see help)

in line:
tree->Branch("hpx",hpx,128000);

Any suggestions?=09
Pablo Yepes