Hi,
I've probleme with the TTree::GetEntries() method.
In the following code, _entries_ is set to nan.
TFile *f;
TTree *tree,*tree2;
double entries;
f= new TFile("path to file");
tree2=(TTree*)f->Get(hname);
tree=(TTree*)tree2->Clone();
delete tree2;
f->Close();
entries=tree->GetEntries();
cout << entries << endl;
Does anyone have an idea ? Could it be a compilator problem ?
--
Alexis Mignon
GANIL
Bd Henri Becqurel
14076 CAEN Cedex 5
France
tel: +(33) (0)231454680
e-mail : mignon@ganil.fr
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:42 MET