Hello ROOTers,
Surely this is a FAQ, but I haven’t been able to find the answer anywhere. I have a TTree which contains, among other things, the following TBranches:
*Br 21 :Ntrack : Ntrack/I *
and
I would like to pass Avv and Ntrack as arguments to a custom function in a call to TTree::Draw. Assume the prototype
Int_t myfunc(Int_t, Int_t*)
I would like to run
t->Draw("myfunc(Ntrack,Avv)");
However, this code produces
Is there any way I can pass a variable-size array as an argument to a custom function?
TIA,
Davide