From Philippe:
This patch implements support for the accessing the collection object in TTreeFormula: // Accessing collection objects // ============================ // // TTree::Draw default's handling of collections is to assume that any // request on a collection pertain to it content. For example, if fTracks // is a collection of Track objects, the following: // tree->Draw("event.fTracks.fPx"); // will plot the value of fPx for each Track objects inside the collection. // Also // tree->Draw("event.fTracks.size()"); // would plot the result of the member function Track::size() for each // Track object inside the collection. // To access information about the collection itself, TTree::Draw support // the '@' notation. If a variable which points to a collection is prefixed // or postfixed with '@', the next part of the expression will pertain to // the collection object. For example: // tree->Draw("event.@fTracks.size()"); // will plot the size of the collection refered to by fTracks (i.e the number // of Track objects). git-svn-id: http://root.cern.ch/svn/root/trunk@11309 27541ba8-7e3a-0410-8455-c3a389f83636
Showing
- cont/src/TEmulatedCollectionProxy.cxx 2 additions, 2 deletionscont/src/TEmulatedCollectionProxy.cxx
- hist/src/TFormula.cxx 3 additions, 3 deletionshist/src/TFormula.cxx
- io/src/TEmulatedCollectionProxy.cxx 2 additions, 2 deletionsio/src/TEmulatedCollectionProxy.cxx
- test/dt_DrawTest.C 7 additions, 1 deletiontest/dt_DrawTest.C
- test/dt_MakeRef.C 7 additions, 0 deletionstest/dt_MakeRef.C
- test/dt_RunDrawTest.C 1 addition, 1 deletiontest/dt_RunDrawTest.C
- tree/src/TTree.cxx 21 additions, 1 deletiontree/src/TTree.cxx
- treeplayer/inc/TFormLeafInfo.h 24 additions, 1 deletiontreeplayer/inc/TFormLeafInfo.h
- treeplayer/inc/TTreeFormula.h 5 additions, 5 deletionstreeplayer/inc/TTreeFormula.h
- treeplayer/src/TFormLeafInfo.cxx 86 additions, 6 deletionstreeplayer/src/TFormLeafInfo.cxx
- treeplayer/src/TTreeFormula.cxx 184 additions, 93 deletionstreeplayer/src/TTreeFormula.cxx
- treeplayer/src/TTreePlayer.cxx 21 additions, 1 deletiontreeplayer/src/TTreePlayer.cxx
Loading
Please register or sign in to comment