Dear developers,
I’m getting problems using TTreeFormula with array.
Let me explain it with an example. I’m using the file “tcl.root”, output of $ROOTSYS/root/tutorials/tree/tcl.C .
root -l
_file0 = TFile::Open(“tcl.root”)
tree = (TTree*) gDirectory->Get(“T”)
tree->GetEntry(50)
Form_test_0 = new TTreeFormula(“Form_test_0”,“tcl.fX1[0]”,tree)
Form_test_1 = new TTreeFormula(“Form_test_1”,“tcl.fX1[1]”,tree)
Form_test_0->EvalInstance()
Form_test_1->EvalInstance()
the outputs are:
(Double_t) 1.332623e-01
(Double_t) 0.000000e+00
but the second number should be around 6.80253803e-01, not zero!
The problem appears both in ROOT6 and ROOT5 (after 5.34/10).
All was fine until ROOT5.34/09.
Am I doing something wrong?
Thanks,
Silvio.