Hi, can someone tell me how to apply a user-defined function to a leaf? Let's say I have data in a leaf called "length", then i can histogram the sqrt(length) tree->Draw("sqrt(length)") How can I use my own function instead of sqrt()? The obvious (to me) choice does not work: TF1 func("func","1+2*x",2,6); tree->Draw( "func.Eval(length)" ); *ERROR 26 : Unknown name : "func.Eval(length)" Thank you, Martin
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:10 MET