![]() |
ATLAS Offline Software
|
Class implementing the GAUDI IEvtSelector interface using ROOT TTree as a backend.
More...
#include <RootNtupleEventSelector.h>
Classes | |
| struct | CollMetaData |
Public Member Functions | |
| RootNtupleEventSelector (const std::string &name, ISvcLocator *svcLoc) | |
| Constructor with parameters: | |
| virtual | ~RootNtupleEventSelector () |
| Destructor: | |
| virtual StatusCode | initialize () override |
| virtual StatusCode | finalize () override |
| virtual void | handle (const Incident &incident) override |
| virtual StatusCode | io_reinit () override |
| Callback method to reinitialize the internal state of the component for I/O purposes (e.g. | |
| virtual int | size (Context &refCtxt) const override |
ICollectionSize interface | |
| virtual StatusCode | createContext (Context *&refpCtxt) const override |
| virtual StatusCode | last (Context &refContext) const override |
| virtual StatusCode | next (Context &refCtxt) const override |
| virtual StatusCode | next (Context &refCtxt, int jump) const override |
| virtual StatusCode | previous (Context &refCtxt) const override |
| virtual StatusCode | previous (Context &refCtxt, int jump) const override |
| virtual StatusCode | rewind (Context &refCtxt) const override |
| virtual StatusCode | createAddress (const Context &refCtxt, IOpaqueAddress *&) const override |
| virtual StatusCode | releaseContext (Context *&refCtxt) const override |
| virtual StatusCode | resetCriteria (const std::string &cr, Context &ctx) const override |
| virtual StatusCode | seek (Context &refCtxt, int evtnum) const override |
| Seek to a given event number. | |
| virtual int | curEvent (const Context &refCtxt) const override |
| return the current event number. | |
| virtual StatusCode | preLoadAddresses (StoreID::type storeID, tadList &list) override |
IAddressProvider interface get all addresses from Provider : Called before Begin Event | |
| virtual StatusCode | loadAddresses (StoreID::type storeID, tadList &list) override |
| get all new addresses from Provider for this Event. | |
| virtual StatusCode | updateAddress (StoreID::type storeID, SG::TransientAddress *tad, const EventContext &ctx) override |
| update a transient Address | |
Private Types | |
| typedef ServiceHandle< StoreGateSvc > | StoreGateSvc_t |
| typedef ServiceHandle< IClassIDSvc > | ICLIDSvc_t |
| typedef ServiceHandle< IDictLoaderSvc > | IDictSvc_t |
| typedef ServiceHandle< IIncidentSvc > | IIncSvc_t |
Private Member Functions | |
| StatusCode | endInputFile (RootNtupleEventContext *rctx) const |
| void | setupInputCollection (Gaudi::Details::PropertyBase &inputCollectionsName) |
| callback to synchronize the list of input files | |
| StatusCode | createRootBranchAddresses (StoreID::type storeID, tadList &tads) |
| helper method to create proxies | |
| TTree * | fetchNtuple (const std::string &fname, const std::string &tupleName) const |
| helper method to retrieve the correct tuple | |
| void | addMetadataFromDirectoryName (const std::string &metadirname, TFile *fileObj, const std::string &prefix="") const |
| void | addMetadataFromDirectory (TDirectoryFile *metadir, const std::string &prefix="") const |
| void | addMetadata (TTree *metatree, const std::string &path="") const |
| void | addMetadata (TObjString *metastring, const std::string &path="") const |
| StatusCode | createMetaDataRootBranchAddresses (StoreGateSvc *store, TTree *tree, const std::string &prefix) const |
| helper method to create proxies for the metadata store | |
| StatusCode | do_init_io () |
| helper method to init the i/o components | |
| void | find_coll_idx (int evtidx, long &coll_idx, long &tuple_idx) const |
| helper method to get the collection index (into m_inputCollectionsName) and tuple index (into ‘m_tupleNames’) / for a given event index evtidx. | |
| RootNtupleEventSelector * | self () const |
| non-const access to self (b/c next() is const) | |
Private Attributes | |
| StoreGateSvc_t | m_dataStore |
Pointer to the StoreGateSvc event store. | |
| StoreGateSvc_t | m_imetaStore |
Pointer to the StoreGateSvc input metadata store. | |
| StoreGateSvc_t | m_ometaStore |
Pointer to the StoreGateSvc output metadata store. | |
| ICLIDSvc_t | m_clidsvc |
Pointer to the IClassIDSvc. | |
| IDictSvc_t | m_dictsvc |
Pointer to the IDictLoaderSvc. | |
| IIncSvc_t | m_incsvc |
| Handle to the incident service. | |
| StringArrayProperty | m_inputCollectionsName |
List of input files containing TTree. | |
| StringProperty | m_tupleName |
Name of TTree to load from collection of input files. | |
| StringArrayProperty | m_activeBranchNames |
List of branches to activate in the TTree. | |
| long | m_skipEvts |
| Number of events to skip at the beginning. | |
| std::vector< std::string > | m_tupleNames |
| Names of all trees over which to iterate. | |
| long | m_nbrEvts |
| Number of Events read so far. | |
| long | m_curEvt |
| current event index | |
| std::vector< std::vector< CollMetaData > > | m_collEvts |
| cache of the number of entries for each collection Indexed like [tuple][collection] | |
| TTree * | m_tuple |
| current tree being read | |
| bool | m_needReload |
The (python) selection function to apply on the TChain we are reading. | |
| bool | m_fireBIF |
| std::vector< TFile * > | m_files |
Friends | |
| class | Athena::RootNtupleEventContext |
Class implementing the GAUDI IEvtSelector interface using ROOT TTree as a backend.
Definition at line 45 of file RootNtupleEventSelector.h.
|
private |
Definition at line 195 of file RootNtupleEventSelector.h.
|
private |
Definition at line 199 of file RootNtupleEventSelector.h.
|
private |
Definition at line 203 of file RootNtupleEventSelector.h.
|
private |
Definition at line 185 of file RootNtupleEventSelector.h.
| Athena::RootNtupleEventSelector::RootNtupleEventSelector | ( | const std::string & | name, |
| ISvcLocator * | svcLoc ) |
Constructor with parameters:
Definition at line 222 of file RootNtupleEventSelector.cxx.
|
virtual |
|
private |
Definition at line 1179 of file RootNtupleEventSelector.cxx.
|
private |
Definition at line 1167 of file RootNtupleEventSelector.cxx.
|
private |
Definition at line 1125 of file RootNtupleEventSelector.cxx.
|
private |
Definition at line 1118 of file RootNtupleEventSelector.cxx.
|
overridevirtual |
Definition at line 639 of file RootNtupleEventSelector.cxx.
|
overridevirtual |
IEvtSelector interface
Definition at line 631 of file RootNtupleEventSelector.cxx.
|
private |
helper method to create proxies for the metadata store
Definition at line 952 of file RootNtupleEventSelector.cxx.
|
private |
helper method to create proxies
Definition at line 839 of file RootNtupleEventSelector.cxx.
|
overridevirtual |
return the current event number.
Definition at line 722 of file RootNtupleEventSelector.cxx.
|
private |
helper method to init the i/o components
Definition at line 1188 of file RootNtupleEventSelector.cxx.
|
private |
Definition at line 426 of file RootNtupleEventSelector.cxx.
|
private |
helper method to retrieve the correct tuple
Definition at line 1068 of file RootNtupleEventSelector.cxx.
|
overridevirtual |
Definition at line 405 of file RootNtupleEventSelector.cxx.
|
private |
helper method to get the collection index (into m_inputCollectionsName) and tuple index (into ‘m_tupleNames’) / for a given event index evtidx.
helper method to get the collection index (into m_inputCollectionsName) and tuple index (into ‘m_tupleNames’)
returns -1 if not found.
for a given event index evtidx. returns -1 if not found.
Definition at line 1227 of file RootNtupleEventSelector.cxx.
|
overridevirtual |
Definition at line 1278 of file RootNtupleEventSelector.cxx.
|
overridevirtual |
Definition at line 275 of file RootNtupleEventSelector.cxx.
|
overridevirtual |
Callback method to reinitialize the internal state of the component for I/O purposes (e.g.
Callback method to reinitialize the internal state of the component for I/O purposes (e.g. upon fork(2))
upon fork(2))
Definition at line 730 of file RootNtupleEventSelector.cxx.
|
overridevirtual |
Definition at line 617 of file RootNtupleEventSelector.cxx.
|
overridevirtual |
get all new addresses from Provider for this Event.
Definition at line 801 of file RootNtupleEventSelector.cxx.
|
overridevirtual |
|
overridevirtual |
Definition at line 594 of file RootNtupleEventSelector.cxx.
|
overridevirtual |
IAddressProvider interface get all addresses from Provider : Called before Begin Event
IAddressProvider interface get all addresses from Provider : Called before Begin Event
Definition at line 790 of file RootNtupleEventSelector.cxx.
|
overridevirtual |
|
overridevirtual |
Definition at line 611 of file RootNtupleEventSelector.cxx.
|
overridevirtual |
Definition at line 647 of file RootNtupleEventSelector.cxx.
|
overridevirtual |
Definition at line 659 of file RootNtupleEventSelector.cxx.
|
overridevirtual |
Definition at line 625 of file RootNtupleEventSelector.cxx.
|
overridevirtual |
Seek to a given event number.
IEvtSelectorSeek interface
| evtnum | The event number to which to seek. |
| evtnum | The event number to which to seek. |
Definition at line 674 of file RootNtupleEventSelector.cxx.
|
inlineprivate |
non-const access to self (b/c next() is const)
Definition at line 177 of file RootNtupleEventSelector.h.
|
private |
callback to synchronize the list of input files
Definition at line 832 of file RootNtupleEventSelector.cxx.
|
overridevirtual |
ICollectionSize interface
return total number of events in all TTree
Definition at line 1270 of file RootNtupleEventSelector.cxx.
|
overridevirtual |
update a transient Address
Definition at line 812 of file RootNtupleEventSelector.cxx.
|
friend |
Definition at line 50 of file RootNtupleEventSelector.h.
|
private |
List of branches to activate in the TTree.
Definition at line 214 of file RootNtupleEventSelector.h.
|
private |
Pointer to the IClassIDSvc.
Definition at line 197 of file RootNtupleEventSelector.h.
|
mutableprivate |
cache of the number of entries for each collection Indexed like [tuple][collection]
Definition at line 238 of file RootNtupleEventSelector.h.
|
mutableprivate |
current event index
Definition at line 226 of file RootNtupleEventSelector.h.
|
private |
Pointer to the StoreGateSvc event store.
Definition at line 187 of file RootNtupleEventSelector.h.
|
private |
Pointer to the IDictLoaderSvc.
Definition at line 201 of file RootNtupleEventSelector.h.
|
mutableprivate |
Definition at line 265 of file RootNtupleEventSelector.h.
|
mutableprivate |
Definition at line 256 of file RootNtupleEventSelector.h.
|
private |
Pointer to the StoreGateSvc input metadata store.
Definition at line 190 of file RootNtupleEventSelector.h.
|
private |
Handle to the incident service.
Definition at line 205 of file RootNtupleEventSelector.h.
|
private |
List of input files containing TTree.
Definition at line 208 of file RootNtupleEventSelector.h.
|
mutableprivate |
Number of Events read so far.
Definition at line 223 of file RootNtupleEventSelector.h.
|
mutableprivate |
The (python) selection function to apply on the TChain we are reading.
Definition at line 248 of file RootNtupleEventSelector.h.
|
private |
Pointer to the StoreGateSvc output metadata store.
Definition at line 193 of file RootNtupleEventSelector.h.
|
private |
Number of events to skip at the beginning.
Definition at line 217 of file RootNtupleEventSelector.h.
|
mutableprivate |
current tree being read
Definition at line 241 of file RootNtupleEventSelector.h.
|
private |
Name of TTree to load from collection of input files.
Definition at line 211 of file RootNtupleEventSelector.h.
|
private |
Names of all trees over which to iterate.
Definition at line 220 of file RootNtupleEventSelector.h.