![]() |
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 | stop () 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 |
| std::optional< InputFileIncidentGuard > | m_inputFileGuard |
| RAII guard: guarantees a matching EndInputFile for every BeginInputFile. | |
| StringProperty | m_collectionType |
Friends | |
| class | Athena::xAODEventContext |
Class implementing the GAUDI IEvtSelector interface using ROOT TTree as a backend.
Definition at line 49 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 573 of file xAODEventSelector.cxx.
|
overridevirtual |
IEvtSelector interface
Definition at line 565 of file xAODEventSelector.cxx.
|
private |
helper method to create proxies for the metadata store
Definition at line 885 of file xAODEventSelector.cxx.
|
private |
helper method to create proxies
className.ReplaceAll("vector","std::vector");
Definition at line 768 of file xAODEventSelector.cxx.
|
overridevirtual |
return the current event number.
Definition at line 650 of file xAODEventSelector.cxx.
|
private |
helper method to init the i/o components
Definition at line 1062 of file xAODEventSelector.cxx.
|
private |
helper method to retrieve the correct tuple
Definition at line 982 of file xAODEventSelector.cxx.
|
overridevirtual |
Definition at line 359 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 1097 of file xAODEventSelector.cxx.
|
overridevirtual |
Definition at line 1139 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 658 of file xAODEventSelector.cxx.
|
overridevirtual |
Definition at line 551 of file xAODEventSelector.cxx.
|
overridevirtual |
get all new addresses from Provider for this Event.
Definition at line 729 of file xAODEventSelector.cxx.
|
overridevirtual |
|
overridevirtual |
Definition at line 528 of file xAODEventSelector.cxx.
|
overridevirtual |
IAddressProvider interface get all addresses from Provider : Called before Begin Event
Definition at line 718 of file xAODEventSelector.cxx.
|
overridevirtual |
|
overridevirtual |
Definition at line 545 of file xAODEventSelector.cxx.
|
overridevirtual |
Definition at line 581 of file xAODEventSelector.cxx.
|
overridevirtual |
Definition at line 594 of file xAODEventSelector.cxx.
|
overridevirtual |
Definition at line 559 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 609 of file xAODEventSelector.cxx.
|
inlineprivate |
non-const access to self (b/c ::next() is const)
Definition at line 161 of file xAODEventSelector.h.
|
private |
switch to given file, loading metadata and triggering a beginInputFile incident
Definition at line 1007 of file xAODEventSelector.cxx.
|
overridevirtual |
ICollectionSize interface
Definition at line 1132 of file xAODEventSelector.cxx.
|
overridevirtual |
Definition at line 351 of file xAODEventSelector.cxx.
|
overridevirtual |
update a transient Address
Definition at line 741 of file xAODEventSelector.cxx.
|
friend |
Definition at line 57 of file xAODEventSelector.h.
|
private |
Definition at line 234 of file xAODEventSelector.h.
|
private |
Pointer to the IClassIDSvc.
Definition at line 176 of file xAODEventSelector.h.
|
private |
Definition at line 249 of file xAODEventSelector.h.
|
mutableprivate |
cache of the number of entries for each collection
Definition at line 214 of file xAODEventSelector.h.
|
mutableprivate |
current collection index (into m_inputCollectionsName)
Definition at line 205 of file xAODEventSelector.h.
|
mutableprivate |
current event index
Definition at line 202 of file xAODEventSelector.h.
|
private |
Pointer to the StoreGateSvc event store.
Definition at line 170 of file xAODEventSelector.h.
|
private |
Pointer to the IDictLoaderSvc.
Definition at line 178 of file xAODEventSelector.h.
|
private |
Definition at line 236 of file xAODEventSelector.h.
|
private |
Pointer to the StoreGateSvc input metadata store.
Definition at line 172 of file xAODEventSelector.h.
|
private |
Handle to the incident service.
Definition at line 180 of file xAODEventSelector.h.
|
private |
List of input files containing TTree.
Definition at line 187 of file xAODEventSelector.h.
|
mutableprivate |
RAII guard: guarantees a matching EndInputFile for every BeginInputFile.
Definition at line 245 of file xAODEventSelector.h.
|
private |
Name of TTree to load from metadata of input files.
Definition at line 193 of file xAODEventSelector.h.
|
mutableprivate |
Number of Events read so far.
Definition at line 199 of file xAODEventSelector.h.
|
mutableprivate |
Definition at line 218 of file xAODEventSelector.h.
|
private |
Pointer to the StoreGateSvc output metadata store.
Definition at line 174 of file xAODEventSelector.h.
|
private |
Handle to the PoolSvc (used in Hybrid mode when user is reading metadata with pool).
Definition at line 182 of file xAODEventSelector.h.
|
private |
Handle to the proxy provider svc.
Definition at line 184 of file xAODEventSelector.h.
|
private |
Definition at line 242 of file xAODEventSelector.h.
|
private |
Definition at line 240 of file xAODEventSelector.h.
|
private |
Definition at line 238 of file xAODEventSelector.h.
|
private |
Definition at line 223 of file xAODEventSelector.h.
|
private |
Number of events to skip at the beginning.
Definition at line 196 of file xAODEventSelector.h.
|
mutableprivate |
current TEvent being read
Definition at line 227 of file xAODEventSelector.h.
|
mutableprivate |
Definition at line 232 of file xAODEventSelector.h.
|
mutableprivate |
current TFile being read
Definition at line 230 of file xAODEventSelector.h.
|
private |
Name of TTree to load from collection of input files.
Definition at line 190 of file xAODEventSelector.h.