[ROOT] TTreeFormula

From: Nuno Almeida (nuno.almeida@iscte.pt)
Date: Thu Nov 28 2002 - 12:40:13 MET


Hi Réne,

I'm trying to use TTreeFormula, but i'm having some problems.

I have this piece of code:

TFile *f=new TFile("Event.root");
TTree *mytree=(TTree*)f->Get("T");
Event *event=new Event();
TBranch *b = mytree->GetBranch("event");
b->SetAddress(&event);
TTreeFormula *formule=new TTreeFormula("formule","bx<100",mytree);

And i obtain the following message:

Error: Can't call TTreeFormula::TTreeFormula("formule","bx<100",mytree) in
current scope FILE:/tmp/file73vnV4_cint LINE:1
Possible candidates are...
filename       line:size busy function type and name  (in TTreeFormula)
*** Interpreter error recovered ***

I don't understand because the TFormula constructor is:

TTreeFormula(char* name, char* expression, TTree* tree)

Best Regards

Nuno Almeida



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:21 MET