![]() |
ATLAS Offline Software
|
Class implementing the GAUDI IEvtSelector interface using ROOT TTree or RNTuple 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 or RNTuple. | |
| 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 |
| std::unique_ptr< xAOD::Event > | m_event |
| current Event being read (xAODTEvent for TTree or xAODREvent for RNTuple) | |
| TFile * | m_tfile |
| current TFile being read | |
| long | m_event_entries |
| int | m_accessMode |
| bool | m_isRNTuple = false |
| 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. | |
Friends | |
| class | Athena::xAODEventContext |
Class implementing the GAUDI IEvtSelector interface using ROOT TTree or RNTuple as a backend.
Definition at line 50 of file xAODEventSelector.h.
| Athena::xAODEventSelector::xAODEventSelector | ( | const std::string & | name, |
| ISvcLocator * | svcLoc ) |
Constructor with parameters:
Definition at line 125 of file xAODEventSelector.cxx.
|
virtual |
|
overridevirtual |
Definition at line 586 of file xAODEventSelector.cxx.
|
overridevirtual |
IEvtSelector interface
Definition at line 578 of file xAODEventSelector.cxx.
|
private |
helper method to create proxies for the metadata store
Definition at line 917 of file xAODEventSelector.cxx.
|
private |
helper method to create proxies
className.ReplaceAll("vector","std::vector");
Definition at line 781 of file xAODEventSelector.cxx.
|
overridevirtual |
return the current event number.
Definition at line 663 of file xAODEventSelector.cxx.
|
private |
helper method to init the i/o components
Definition at line 1110 of file xAODEventSelector.cxx.
|
private |
helper method to retrieve the correct tuple
Definition at line 1029 of file xAODEventSelector.cxx.
|
overridevirtual |
Definition at line 372 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 1145 of file xAODEventSelector.cxx.
|
overridevirtual |
Definition at line 1192 of file xAODEventSelector.cxx.
|
overridevirtual |
Definition at line 171 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 671 of file xAODEventSelector.cxx.
|
overridevirtual |
Definition at line 564 of file xAODEventSelector.cxx.
|
overridevirtual |
get all new addresses from Provider for this Event.
Definition at line 742 of file xAODEventSelector.cxx.
|
overridevirtual |
|
overridevirtual |
Definition at line 541 of file xAODEventSelector.cxx.
|
overridevirtual |
IAddressProvider interface get all addresses from Provider : Called before Begin Event
Definition at line 731 of file xAODEventSelector.cxx.
|
overridevirtual |
|
overridevirtual |
Definition at line 558 of file xAODEventSelector.cxx.
|
overridevirtual |
Definition at line 594 of file xAODEventSelector.cxx.
|
overridevirtual |
Definition at line 607 of file xAODEventSelector.cxx.
|
overridevirtual |
Definition at line 572 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 622 of file xAODEventSelector.cxx.
|
inlineprivate |
non-const access to self (b/c ::next() is const)
Definition at line 162 of file xAODEventSelector.h.
|
private |
switch to given file, loading metadata and triggering a beginInputFile incident
Definition at line 1054 of file xAODEventSelector.cxx.
|
overridevirtual |
ICollectionSize interface
Definition at line 1185 of file xAODEventSelector.cxx.
|
overridevirtual |
Definition at line 364 of file xAODEventSelector.cxx.
|
overridevirtual |
update a transient Address
Definition at line 754 of file xAODEventSelector.cxx.
|
friend |
Definition at line 58 of file xAODEventSelector.h.
|
private |
Definition at line 229 of file xAODEventSelector.h.
|
private |
Pointer to the IClassIDSvc.
Definition at line 177 of file xAODEventSelector.h.
|
mutableprivate |
cache of the number of entries for each collection
Definition at line 209 of file xAODEventSelector.h.
|
mutableprivate |
current collection index (into m_inputCollectionsName)
Definition at line 200 of file xAODEventSelector.h.
|
mutableprivate |
current event index
Definition at line 197 of file xAODEventSelector.h.
|
private |
Pointer to the StoreGateSvc event store.
Definition at line 171 of file xAODEventSelector.h.
|
private |
Pointer to the IDictLoaderSvc.
Definition at line 179 of file xAODEventSelector.h.
|
mutableprivate |
current Event being read (xAODTEvent for TTree or xAODREvent for RNTuple)
Definition at line 222 of file xAODEventSelector.h.
|
mutableprivate |
Definition at line 227 of file xAODEventSelector.h.
|
private |
Definition at line 233 of file xAODEventSelector.h.
|
private |
Pointer to the StoreGateSvc input metadata store.
Definition at line 173 of file xAODEventSelector.h.
|
private |
Handle to the incident service.
Definition at line 181 of file xAODEventSelector.h.
|
private |
List of input files containing TTree or RNTuple.
Definition at line 188 of file xAODEventSelector.h.
|
mutableprivate |
RAII guard: guarantees a matching EndInputFile for every BeginInputFile.
Definition at line 242 of file xAODEventSelector.h.
|
private |
Definition at line 231 of file xAODEventSelector.h.
|
mutableprivate |
Number of Events read so far.
Definition at line 194 of file xAODEventSelector.h.
|
mutableprivate |
Definition at line 213 of file xAODEventSelector.h.
|
private |
Pointer to the StoreGateSvc output metadata store.
Definition at line 175 of file xAODEventSelector.h.
|
private |
Handle to the PoolSvc (used in Hybrid mode when user is reading metadata with pool).
Definition at line 183 of file xAODEventSelector.h.
|
private |
Handle to the proxy provider svc.
Definition at line 185 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 218 of file xAODEventSelector.h.
|
private |
Number of events to skip at the beginning.
Definition at line 191 of file xAODEventSelector.h.
|
mutableprivate |
current TFile being read
Definition at line 225 of file xAODEventSelector.h.