Hi Brett, This is currently not supported (and is not planed for). However, we plan to introduce an improvement to TTree::Draw where you will be able to write a small script that will have access to both the tree branch and the interpreted function. Cheers, Philippe -----Original Message----- From: owner-roottalk@pcroot.cern.ch [mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Brett Viren Sent: Thursday, December 26, 2002 9:19 AM To: ROOT-TALK ML Subject: [ROOT] Using interpreted functions in TTree::Draw() 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