[ROOT] Using interpreted functions in TTree::Draw()

From: Brett Viren (bv@bnl.gov)
Date: Thu Dec 26 2002 - 16:18:57 MET


Hi,

Say one has an interpreted function: "float func(float x)" is it
possible to somehow call it in the context of a TTree::Draw()?  For
example, say one has a tree with branch fX, is it possible to do the
equivalent of:

	mytree->Draw("func(fX)");

?  Precisely the above doesn't work.

I understand an implicit histogram definition followed by filling in a
loop which calls TTree::GetEvent() would work but if the above
syntactic sugar is available, I'd like to know about it.

Thanks,
-Brett.



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:24 MET