Hi,
I am trying to figure out (unsuccessfully) the syntax for
using tree.Draw with an index.
I execute sucessfully
t61057.Draw(“detadc[][0]>>h1”,“Entry$<2500”,"");
Now, I would like to loop over an index, like
for (int i=0; i<48; i++) {
t61057.Draw(“detadc[][i]>>h1”,“Entry$<2500”,"");
…
h1->Reset();
}
I tried to use something like
for (int i=0; i<48; i++) {
t61057.Draw(“detadc[][Form(”%d",i)]>>h1",“Entry$<2500”,"");
…
h1->Reset();
}
and various versions of with “Form”, but that did not work ;
I am sure that solution is simple …