Hi rooters, A little while back I submitted a message: http://root.cern.ch/root/roottalk/roottalk01/1370.html to the root talk digest regarding applying selection cuts to ROOT TTrees using the TTreeFormula class. In particular, I'm interested in applying such cuts to TTree's created using the new TTree branching mechanism of ROOT v3.01. In the previous posting, I indicated interest in applying selection cuts of 3 different types, none of which worked at the time because ROOT v3.01 was still in an early stage of development. I now find that 2 out of 3 selection cut styles work, so considerable progress has obviously been made. Referring to the examples from the previous posting: 1) Applying selection cuts by accessor method, e.g.: "fShape -> GetVisibility() > 0" now works. 2)Applying selection cuts by stringing accessor methods together, e.g.: "fShape -> GetMaterial() -> GetZ() > 8" also works. Thank you! The 3rd type of selection cut I was interested in applying was to apply cuts of the form: 3)"((TTUBE*)fShape)->GetRmin() > 100" The idea is that polymorphic objects, all deriving from TShape, are stored on the single fShape branch. We would like to apply selection cuts to the branch using accessor methods from the derived objects stored there. As Rene indicated at the time, objects which are not of the requested TTUBE type could be eliminated dynamically in the query. Is there now support for selection cuts of this 3rd type? It's possible that I am not implementing it in the form that ROOT is expecting. If there isn't yet support for this type of selection cut, is it still expected that something will be implemented as part of ROOT v3.01? I am using yesterday's version of ROOT v3.01 from CVS and gcc2.95.2 on RH Linux. Thanks for the help, Sue Kasahara
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:47 MET