![]() |
ATLAS Offline Software
|
Class implementing the GAUDI IEvtSelector interface using ROOT TTree as a backend.
More...
#include <xAODEventSelector.h>
Classes | |
| struct | CollMetaData |
Public Member Functions | |
| xAODEventSelector (const std::string &name, ISvcLocator *svcLoc) | |
| Constructor with parameters: | |
| virtual | ~xAODEventSelector () |
| 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 |
| 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 Member Functions | |
| StatusCode | createRootBranchAddresses (StoreID::type storeID, tadList &tads) |
| helper method to create proxies | |
| TFile * | fetchNtupleFile (const std::string &fname) const |
| helper method to retrieve the correct tuple | |
| StatusCode | createMetaDataRootBranchAddresses () const |
| helper method to create proxies for the metadata store | |
| StatusCode | do_init_io () |
| helper method to init the i/o components | |
| StatusCode | setFile (const std::string &fname) |
| switch to given file, loading metadata and triggering a beginInputFile incident | |
| int | find_coll_idx (int evtidx) const |
| helper method to get the collection index (into m_inputCollectionsName) for a given event index evtidx. | |
| xAODEventSelector * | self () const |
| non-const access to self (b/c next() is const) | |
Private Attributes | |
| ServiceHandle< StoreGateSvc > | m_dataStore |
Pointer to the StoreGateSvc event store. | |
| ServiceHandle< StoreGateSvc > | m_imetaStore |
Pointer to the StoreGateSvc input metadata store. | |
| ServiceHandle< StoreGateSvc > | m_ometaStore |
Pointer to the StoreGateSvc output metadata store. | |
| ServiceHandle< IClassIDSvc > | m_clidsvc |
Pointer to the IClassIDSvc. | |
| ServiceHandle< IDictLoaderSvc > | m_dictsvc |
Pointer to the IDictLoaderSvc. | |
| ServiceHandle< IIncidentSvc > | m_incsvc |
| Handle to the incident service. | |
| ServiceHandle< IPoolSvc > | m_poolSvc |
| Handle to the PoolSvc (used in Hybrid mode when user is reading metadata with pool) | |
| ServiceHandle< IProxyProviderSvc > | m_ppSvc |
| Handle to the proxy provider svc. | |
| StringArrayProperty | m_inputCollectionsName |
List of input files containing TTree. | |
| StringProperty | m_tupleName |
Name of TTree to load from collection of input files. | |
| StringProperty | m_metadataName |
Name of TTree to load from metadata of input files. | |
| long | m_skipEvts |
| Number of events to skip at the beginning. | |
| long | m_nbrEvts |
| Number of Events read so far. | |
| long | m_curEvt |
| current event index | |
| long | m_collIdx |
| current collection index (into m_inputCollectionsName) | |
| std::vector< CollMetaData > | m_collEvts |
| cache of the number of entries for each collection | |
| bool | m_needReload |
| std::unordered_map< SG::TransientAddress *, bool > | m_rootAddresses |
| xAOD::xAODTEvent * | m_tevent |
| current TEvent being read | |
| TFile * | m_tfile |
| current TFile being read | |
| long | m_tevent_entries |
| int | m_accessMode |
| bool | m_fillEventInfo = false |
| bool | m_readMetadataWithPool = false |
| bool | m_printPerfStats = false |
| bool | m_printEventProxyWarnings = true |
| StringProperty | m_collectionType |
Friends | |
| class | Athena::xAODEventContext |
Class implementing the GAUDI IEvtSelector interface using ROOT TTree as a backend.
Definition at line 47 of file xAODEventSelector.h.
| Athena::xAODEventSelector::xAODEventSelector | ( | const std::string & | name, |
| ISvcLocator * | svcLoc ) |
Constructor with parameters:
Definition at line 109 of file xAODEventSelector.cxx.
|
virtual |
|
overridevirtual |
Definition at line 563 of file xAODEventSelector.cxx.
|
overridevirtual |
IEvtSelector interface
Definition at line 555 of file xAODEventSelector.cxx.
|
private |
helper method to create proxies for the metadata store
Definition at line 882 of file xAODEventSelector.cxx.
|
private |
helper method to create proxies
className.ReplaceAll("vector","std::vector");
Definition at line 758 of file xAODEventSelector.cxx.
|
overridevirtual |
return the current event number.
Definition at line 640 of file xAODEventSelector.cxx.
|
private |
helper method to init the i/o components
Definition at line 1059 of file xAODEventSelector.cxx.
|
private |
helper method to retrieve the correct tuple
Definition at line 979 of file xAODEventSelector.cxx.
|
overridevirtual |
Definition at line 351 of file xAODEventSelector.cxx.
|
private |
helper method to get the collection index (into m_inputCollectionsName) for a given event index evtidx.
returns -1 if not found.
Definition at line 1094 of file xAODEventSelector.cxx.
|
overridevirtual |
Definition at line 1136 of file xAODEventSelector.cxx.
|
overridevirtual |
Definition at line 161 of file xAODEventSelector.cxx.
|
overridevirtual |
Callback method to reinitialize the internal state of the component for I/O purposes (e.g.
upon fork(2))
Definition at line 648 of file xAODEventSelector.cxx.
|
overridevirtual |
Definition at line 541 of file xAODEventSelector.cxx.
|
overridevirtual |
get all new addresses from Provider for this Event.
Definition at line 719 of file xAODEventSelector.cxx.
|
overridevirtual |
|
overridevirtual |
Definition at line 518 of file xAODEventSelector.cxx.
|
overridevirtual |
IAddressProvider interface get all addresses from Provider : Called before Begin Event
Definition at line 708 of file xAODEventSelector.cxx.
|
overridevirtual |
|
overridevirtual |
Definition at line 535 of file xAODEventSelector.cxx.
|
overridevirtual |
Definition at line 571 of file xAODEventSelector.cxx.
|
overridevirtual |
Definition at line 584 of file xAODEventSelector.cxx.
|
overridevirtual |
Definition at line 549 of file xAODEventSelector.cxx.
|
overridevirtual |
Seek to a given event number.
IEventSeek interface
| evtnum | The event number to which to seek. |
| evtnum | The event number to which to seek. |
Definition at line 599 of file xAODEventSelector.cxx.
|
inlineprivate |
non-const access to self (b/c next() is const)
Definition at line 158 of file xAODEventSelector.h.
|
private |
switch to given file, loading metadata and triggering a beginInputFile incident
Definition at line 1004 of file xAODEventSelector.cxx.
|
overridevirtual |
ICollectionSize interface
Definition at line 1129 of file xAODEventSelector.cxx.
|
overridevirtual |
update a transient Address
Definition at line 731 of file xAODEventSelector.cxx.
|
friend |
Definition at line 55 of file xAODEventSelector.h.
|
private |
Definition at line 231 of file xAODEventSelector.h.
|
private |
Pointer to the IClassIDSvc.
Definition at line 173 of file xAODEventSelector.h.
|
private |
Definition at line 243 of file xAODEventSelector.h.
|
mutableprivate |
cache of the number of entries for each collection
Definition at line 211 of file xAODEventSelector.h.
|
mutableprivate |
current collection index (into m_inputCollectionsName)
Definition at line 202 of file xAODEventSelector.h.
|
mutableprivate |
current event index
Definition at line 199 of file xAODEventSelector.h.
|
private |
Pointer to the StoreGateSvc event store.
Definition at line 167 of file xAODEventSelector.h.
|
private |
Pointer to the IDictLoaderSvc.
Definition at line 175 of file xAODEventSelector.h.
|
private |
Definition at line 233 of file xAODEventSelector.h.
|
private |
Pointer to the StoreGateSvc input metadata store.
Definition at line 169 of file xAODEventSelector.h.
|
private |
Handle to the incident service.
Definition at line 177 of file xAODEventSelector.h.
|
private |
List of input files containing TTree.
Definition at line 184 of file xAODEventSelector.h.
|
private |
Name of TTree to load from metadata of input files.
Definition at line 190 of file xAODEventSelector.h.
|
mutableprivate |
Number of Events read so far.
Definition at line 196 of file xAODEventSelector.h.
|
mutableprivate |
Definition at line 215 of file xAODEventSelector.h.
|
private |
Pointer to the StoreGateSvc output metadata store.
Definition at line 171 of file xAODEventSelector.h.
|
private |
Handle to the PoolSvc (used in Hybrid mode when user is reading metadata with pool)
Definition at line 179 of file xAODEventSelector.h.
|
private |
Handle to the proxy provider svc.
Definition at line 181 of file xAODEventSelector.h.
|
private |
Definition at line 239 of file xAODEventSelector.h.
|
private |
Definition at line 237 of file xAODEventSelector.h.
|
private |
Definition at line 235 of file xAODEventSelector.h.
|
private |
Definition at line 220 of file xAODEventSelector.h.
|
private |
Number of events to skip at the beginning.
Definition at line 193 of file xAODEventSelector.h.
|
mutableprivate |
current TEvent being read
Definition at line 224 of file xAODEventSelector.h.
|
mutableprivate |
Definition at line 229 of file xAODEventSelector.h.
|
mutableprivate |
current TFile being read
Definition at line 227 of file xAODEventSelector.h.
|
private |
Name of TTree to load from collection of input files.
Definition at line 187 of file xAODEventSelector.h.