Hi Nuno,
It looks like you forgot to load the shared library containing
TTreeFormula!
do:
gSystem->Load("libTreePlayer");
and try again.
Rene Brun
On Thu, 28 Nov 2002, Nuno Almeida wrote:
> 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