![]() |
ATLAS Offline Software
|
#include <xAODTEvent.h>
Public Types | |
| enum | EAuxMode { kBranchAccess = 0, kClassAccess = 1, kAthenaAccess = 2 } |
| Auxiliary store "mode". More... | |
| using | sgkey_t = SG::sgkey_t |
Public Member Functions | |
| TEvent (EAuxMode mode=kClassAccess) | |
| Default constructor. More... | |
| TEvent (::TFile *file, EAuxMode mode=kClassAccess) | |
| Constructor connecting the object to an input TFile. More... | |
| TEvent (::TTree *tree, EAuxMode mode=kClassAccess) | |
| Constructor connecting the objects to an input TTree/TChain. More... | |
| EAuxMode | auxMode () const |
| Get what auxiliary access mode the object was constructed with. More... | |
| template<typename T > | |
| bool | retrieve (const T *&obj, sgkey_t key=DEFAULT_KEY, bool silent=false) |
| Function retrieving an object from the event (constant version) More... | |
| template<typename T > | |
| bool | retrieve (const T *&obj, const std::string &key, bool silent=false) |
| Function retrieving an object from the event (constant version) More... | |
| void | setLevel (MSG::Level lvl) |
| Change the current logging level. More... | |
Setup functions | |
| void | setActive () const |
| Set this event object as the currently active one. More... | |
| void | setAuxItemList (const std::string &containerKey, const std::string &itemList) |
| Configure which dynamic variables to write out for a given store. More... | |
| StatusCode | addListener (TVirtualIncidentListener *listener) |
| Register an incident listener object. More... | |
| StatusCode | removeListener (TVirtualIncidentListener *listener) |
| Remove an incident listener object. More... | |
| void | clearListeners () |
| Remove all listeners from the object. More... | |
| StatusCode | addNameRemap (const std::string &onfile, const std::string &newName) |
| Add a name re-mapping rule. More... | |
| void | clearNameRemap () |
| Clear the current name re-mapping. More... | |
| void | printNameRemap () const |
| Print the current name re-mapping rules. More... | |
| void | printProxyWarnings (bool value=true) |
| Enable warnings associated with broken element links. More... | |
Persistent data accessor/modifier functions | |
| const EventFormat * | inputEventFormat () const |
| Get information about the input objects. More... | |
| const EventFormat * | outputEventFormat () const |
| Get information about the output objects. More... | |
Event data accessor/modifier functions | |
| std::string | dump () |
| Function creating a user-readable dump of the current input. More... | |
| void | printIOStats () const |
| Function printing the I/O statistics of the current process. More... | |
| template<typename T > | |
| bool | contains (const std::string &key) |
| Function checking if an object is available from the store. More... | |
| template<typename T > | |
| bool | transientContains (const std::string &key) const |
| Function checking if an object is already in memory. More... | |
| template<typename T > | |
| StatusCode | keys (std::vector< std::string > &vkeys, bool metadata) const |
| Provide a list of all data object keys associated with a specific type. More... | |
| template<typename T > | |
| StatusCode | retrieve (const T *&obj, const std::string &key) |
| Retrieve either an input or an output object from the event. More... | |
| template<typename T > | |
| StatusCode | retrieve (T *&obj, const std::string &key) |
| Retrieve an output object from the event. More... | |
| template<typename T > | |
| StatusCode | record (T *obj, const std::string &key) |
| Add an output object to the event. More... | |
| template<typename T > | |
| StatusCode | record (std::unique_ptr< T > obj, const std::string &key) |
| Add an output object to the event, explicitly taking ownership of it. More... | |
| StatusCode | copy (const std::string &pattern=".*") |
| Copy an object directly from the input to the output. More... | |
Metadata accessor/modifier functions | |
| template<typename T > | |
| bool | containsMeta (const std::string &key) |
| Function checking if a meta-object is available from the store. More... | |
| template<typename T > | |
| bool | transientContainsMeta (const std::string &key) const |
| Function checking if a meta-object is already in memory. More... | |
| template<typename T > | |
| StatusCode | metaKeys (std::vector< std::string > &vkeys) const |
| Provide a list of all metadata object keys associated with a specific type. More... | |
| template<typename T > | |
| StatusCode | retrieveMetaInput (const T *&obj, const std::string &key) |
| Retrieve an input metadata object. More... | |
| template<typename T > | |
| StatusCode | retrieveMetaOutput (const T *&obj, const std::string &key) |
| Retrieve an output metadata object. More... | |
| template<typename T > | |
| StatusCode | retrieveMetaOutput (T *&obj, const std::string &key) |
| Retrieve an output metadata object. More... | |
| template<typename T > | |
| StatusCode | recordMeta (T *obj, const std::string &key) |
| Add an object to the output file's metadata. More... | |
| template<typename T > | |
| StatusCode | recordMeta (std::unique_ptr< T > obj, const std::string &key) |
| Add an object to the output file's metadata, explicitly taking ownership of it. More... | |
Event data accessor/modifier functions | |
| SG::IAuxStore * | recordAux (const std::string &key, SG::IAuxStoreHolder::AuxStoreType type=SG::IAuxStoreHolder::AST_ContainerStore) |
| Add an auxiliary store object to the output. More... | |
| template<typename T > | |
| StatusCode | record (T *obj, const std::string &key) |
| Add an output object to the event. More... | |
| template<typename T > | |
| StatusCode | record (std::unique_ptr< T > obj, const std::string &key) |
| Add an output object to the event, explicitly taking ownership of it. More... | |
| virtual StatusCode | record (void *obj, const std::string &typeName, const std::string &key, bool overwrite, bool metadata, bool isOwner)=0 |
| Record an object into a connected output file. More... | |
Persistent data accessor/modifier functions | |
| ::Long64_t | getEntries () const |
| Get how many entries are available from the current input file(s) More... | |
| ::Int_t | getEntry (::Long64_t entry, ::Int_t getall=0) |
| Function loading a given entry of the input TTree. More... | |
| ::Long64_t | getFiles () const |
| Get how many files are available on the currently defined input. More... | |
| ::Int_t | getFile (::Long64_t file, ::Int_t getall=0) |
| Load the first event for a given file from the input TChain. More... | |
| ::Int_t | fill () |
| Function filling one event into the output tree. More... | |
Event data accessor/modifier functions | |
| template<typename T > | |
| StatusCode | record (T *obj, const std::string &key) |
| Add an output object to the event. More... | |
| template<typename T > | |
| StatusCode | record (std::unique_ptr< T > obj, const std::string &key) |
| Add an output object to the event, explicitly taking ownership of it. More... | |
| std::string | dump () |
| Function creating a user-readable dump of the current input. More... | |
| void | printIOStats () const |
| Function printing the I/O statistics of the current process. More... | |
| template<typename T > | |
| bool | contains (const std::string &key) |
| Function checking if an object is available from the store. More... | |
| template<typename T > | |
| bool | transientContains (const std::string &key) const |
| Function checking if an object is already in memory. More... | |
| template<typename T > | |
| StatusCode | keys (std::vector< std::string > &vkeys, bool metadata) const |
| Provide a list of all data object keys associated with a specific type. More... | |
| template<typename T > | |
| StatusCode | retrieve (const T *&obj, const std::string &key) |
| Retrieve either an input or an output object from the event. More... | |
| template<typename T > | |
| StatusCode | retrieve (T *&obj, const std::string &key) |
| Retrieve an output object from the event. More... | |
| StatusCode | copy (const std::string &pattern=".*") |
| Copy an object directly from the input to the output. More... | |
Setup functions | |
| void | setActive () const |
| Set this event object as the currently active one. More... | |
| void | setAuxItemList (const std::string &containerKey, const std::string &itemList) |
| Configure which dynamic variables to write out for a given store. More... | |
| StatusCode | addListener (TVirtualIncidentListener *listener) |
| Register an incident listener object. More... | |
| StatusCode | removeListener (TVirtualIncidentListener *listener) |
| Remove an incident listener object. More... | |
| void | clearListeners () |
| Remove all listeners from the object. More... | |
| StatusCode | addNameRemap (const std::string &onfile, const std::string &newName) |
| Add a name re-mapping rule. More... | |
| void | clearNameRemap () |
| Clear the current name re-mapping. More... | |
| void | printNameRemap () const |
| Print the current name re-mapping rules. More... | |
| void | printProxyWarnings (bool value=true) |
| Enable warnings associated with broken element links. More... | |
Persistent data accessor/modifier functions | |
| const EventFormat * | inputEventFormat () const |
| Get information about the input objects. More... | |
| const EventFormat * | outputEventFormat () const |
| Get information about the output objects. More... | |
Metadata accessor/modifier functions | |
| template<typename T > | |
| bool | containsMeta (const std::string &key) |
| Function checking if a meta-object is available from the store. More... | |
| template<typename T > | |
| bool | transientContainsMeta (const std::string &key) const |
| Function checking if a meta-object is already in memory. More... | |
| template<typename T > | |
| StatusCode | metaKeys (std::vector< std::string > &vkeys) const |
| Provide a list of all metadata object keys associated with a specific type. More... | |
| template<typename T > | |
| StatusCode | retrieveMetaInput (const T *&obj, const std::string &key) |
| Retrieve an input metadata object. More... | |
| template<typename T > | |
| StatusCode | retrieveMetaOutput (const T *&obj, const std::string &key) |
| Retrieve an output metadata object. More... | |
| template<typename T > | |
| StatusCode | retrieveMetaOutput (T *&obj, const std::string &key) |
| Retrieve an output metadata object. More... | |
| template<typename T > | |
| StatusCode | recordMeta (T *obj, const std::string &key) |
| Add an object to the output file's metadata. More... | |
| template<typename T > | |
| StatusCode | recordMeta (std::unique_ptr< T > obj, const std::string &key) |
| Add an object to the output file's metadata, explicitly taking ownership of it. More... | |
Setup functions | |
| void | setActive () const |
| Set this event object as the currently active one. More... | |
| void | setAuxItemList (const std::string &containerKey, const std::string &itemList) |
| Configure which dynamic variables to write out for a given store. More... | |
| StatusCode | addListener (TVirtualIncidentListener *listener) |
| Register an incident listener object. More... | |
| StatusCode | removeListener (TVirtualIncidentListener *listener) |
| Remove an incident listener object. More... | |
| void | clearListeners () |
| Remove all listeners from the object. More... | |
| StatusCode | addNameRemap (const std::string &onfile, const std::string &newName) |
| Add a name re-mapping rule. More... | |
| void | clearNameRemap () |
| Clear the current name re-mapping. More... | |
| void | printNameRemap () const |
| Print the current name re-mapping rules. More... | |
| void | printProxyWarnings (bool value=true) |
| Enable warnings associated with broken element links. More... | |
Persistent data accessor/modifier functions | |
| const EventFormat * | inputEventFormat () const |
| Get information about the input objects. More... | |
| const EventFormat * | outputEventFormat () const |
| Get information about the output objects. More... | |
Event data accessor/modifier functions | |
| std::string | dump () |
| Function creating a user-readable dump of the current input. More... | |
| void | printIOStats () const |
| Function printing the I/O statistics of the current process. More... | |
| template<typename T > | |
| bool | contains (const std::string &key) |
| Function checking if an object is available from the store. More... | |
| template<typename T > | |
| bool | transientContains (const std::string &key) const |
| Function checking if an object is already in memory. More... | |
| template<typename T > | |
| StatusCode | keys (std::vector< std::string > &vkeys, bool metadata) const |
| Provide a list of all data object keys associated with a specific type. More... | |
| template<typename T > | |
| StatusCode | retrieve (const T *&obj, const std::string &key) |
| Retrieve either an input or an output object from the event. More... | |
| template<typename T > | |
| StatusCode | retrieve (T *&obj, const std::string &key) |
| Retrieve an output object from the event. More... | |
| template<typename T > | |
| StatusCode | record (T *obj, const std::string &key) |
| Add an output object to the event. More... | |
| template<typename T > | |
| StatusCode | record (std::unique_ptr< T > obj, const std::string &key) |
| Add an output object to the event, explicitly taking ownership of it. More... | |
| StatusCode | copy (const std::string &pattern=".*") |
| Copy an object directly from the input to the output. More... | |
Metadata accessor/modifier functions | |
| template<typename T > | |
| bool | containsMeta (const std::string &key) |
| Function checking if a meta-object is available from the store. More... | |
| template<typename T > | |
| bool | transientContainsMeta (const std::string &key) const |
| Function checking if a meta-object is already in memory. More... | |
| template<typename T > | |
| StatusCode | metaKeys (std::vector< std::string > &vkeys) const |
| Provide a list of all metadata object keys associated with a specific type. More... | |
| template<typename T > | |
| StatusCode | retrieveMetaInput (const T *&obj, const std::string &key) |
| Retrieve an input metadata object. More... | |
| template<typename T > | |
| StatusCode | retrieveMetaOutput (const T *&obj, const std::string &key) |
| Retrieve an output metadata object. More... | |
| template<typename T > | |
| StatusCode | retrieveMetaOutput (T *&obj, const std::string &key) |
| Retrieve an output metadata object. More... | |
| template<typename T > | |
| StatusCode | recordMeta (T *obj, const std::string &key) |
| Add an object to the output file's metadata. More... | |
| template<typename T > | |
| StatusCode | recordMeta (std::unique_ptr< T > obj, const std::string &key) |
| Add an object to the output file's metadata, explicitly taking ownership of it. More... | |
Event data accessor/modifier functions | |
| template<typename T > | |
| StatusCode | record (T *obj, const std::string &key) |
| Add an output object to the event. More... | |
| template<typename T > | |
| StatusCode | record (std::unique_ptr< T > obj, const std::string &key) |
| Add an output object to the event, explicitly taking ownership of it. More... | |
| std::string | dump () |
| Function creating a user-readable dump of the current input. More... | |
| void | printIOStats () const |
| Function printing the I/O statistics of the current process. More... | |
| template<typename T > | |
| bool | contains (const std::string &key) |
| Function checking if an object is available from the store. More... | |
| template<typename T > | |
| bool | transientContains (const std::string &key) const |
| Function checking if an object is already in memory. More... | |
| template<typename T > | |
| StatusCode | keys (std::vector< std::string > &vkeys, bool metadata) const |
| Provide a list of all data object keys associated with a specific type. More... | |
| template<typename T > | |
| StatusCode | retrieve (const T *&obj, const std::string &key) |
| Retrieve either an input or an output object from the event. More... | |
| template<typename T > | |
| StatusCode | retrieve (T *&obj, const std::string &key) |
| Retrieve an output object from the event. More... | |
| StatusCode | copy (const std::string &pattern=".*") |
| Copy an object directly from the input to the output. More... | |
Setup functions | |
| void | setActive () const |
| Set this event object as the currently active one. More... | |
| void | setAuxItemList (const std::string &containerKey, const std::string &itemList) |
| Configure which dynamic variables to write out for a given store. More... | |
| StatusCode | addListener (TVirtualIncidentListener *listener) |
| Register an incident listener object. More... | |
| StatusCode | removeListener (TVirtualIncidentListener *listener) |
| Remove an incident listener object. More... | |
| void | clearListeners () |
| Remove all listeners from the object. More... | |
| StatusCode | addNameRemap (const std::string &onfile, const std::string &newName) |
| Add a name re-mapping rule. More... | |
| void | clearNameRemap () |
| Clear the current name re-mapping. More... | |
| void | printNameRemap () const |
| Print the current name re-mapping rules. More... | |
| void | printProxyWarnings (bool value=true) |
| Enable warnings associated with broken element links. More... | |
Persistent data accessor/modifier functions | |
| const EventFormat * | inputEventFormat () const |
| Get information about the input objects. More... | |
| const EventFormat * | outputEventFormat () const |
| Get information about the output objects. More... | |
Metadata accessor/modifier functions | |
| template<typename T > | |
| bool | containsMeta (const std::string &key) |
| Function checking if a meta-object is available from the store. More... | |
| template<typename T > | |
| bool | transientContainsMeta (const std::string &key) const |
| Function checking if a meta-object is already in memory. More... | |
| template<typename T > | |
| StatusCode | metaKeys (std::vector< std::string > &vkeys) const |
| Provide a list of all metadata object keys associated with a specific type. More... | |
| template<typename T > | |
| StatusCode | retrieveMetaInput (const T *&obj, const std::string &key) |
| Retrieve an input metadata object. More... | |
| template<typename T > | |
| StatusCode | retrieveMetaOutput (const T *&obj, const std::string &key) |
| Retrieve an output metadata object. More... | |
| template<typename T > | |
| StatusCode | retrieveMetaOutput (T *&obj, const std::string &key) |
| Retrieve an output metadata object. More... | |
| template<typename T > | |
| StatusCode | recordMeta (T *obj, const std::string &key) |
| Add an object to the output file's metadata. More... | |
| template<typename T > | |
| StatusCode | recordMeta (std::unique_ptr< T > obj, const std::string &key) |
| Add an object to the output file's metadata, explicitly taking ownership of it. More... | |
Event data accessor/modifier functions | |
| SG::IAuxStore * | recordAux (const std::string &key, SG::IAuxStoreHolder::AuxStoreType type=SG::IAuxStoreHolder::AST_ContainerStore) |
| Add an auxiliary store object to the output. More... | |
| template<typename T > | |
| StatusCode | record (T *obj, const std::string &key) |
| Add an output object to the event. More... | |
| template<typename T > | |
| StatusCode | record (std::unique_ptr< T > obj, const std::string &key) |
| Add an output object to the event, explicitly taking ownership of it. More... | |
| virtual StatusCode | record (void *obj, const std::string &typeName, const std::string &key, bool overwrite, bool metadata, bool isOwner)=0 |
| Record an object into a connected output file. More... | |
Persistent data accessor/modifier functions | |
| ::Long64_t | getEntries () const |
| Get how many entries are available from the current input file(s) More... | |
| ::Int_t | getEntry (::Long64_t entry, ::Int_t getall=0) |
| Function loading a given entry of the input TTree. More... | |
| ::Long64_t | getFiles () const |
| Get how many files are available on the currently defined input. More... | |
| ::Int_t | getFile (::Long64_t file, ::Int_t getall=0) |
| Load the first event for a given file from the input TChain. More... | |
| ::Int_t | fill () |
| Function filling one event into the output tree. More... | |
Setup functions | |
| void | setActive () const |
| Set this event object as the currently active one. More... | |
| void | setAuxItemList (const std::string &containerKey, const std::string &itemList) |
| Configure which dynamic variables to write out for a given store. More... | |
| StatusCode | addListener (TVirtualIncidentListener *listener) |
| Register an incident listener object. More... | |
| StatusCode | removeListener (TVirtualIncidentListener *listener) |
| Remove an incident listener object. More... | |
| void | clearListeners () |
| Remove all listeners from the object. More... | |
| StatusCode | addNameRemap (const std::string &onfile, const std::string &newName) |
| Add a name re-mapping rule. More... | |
| void | clearNameRemap () |
| Clear the current name re-mapping. More... | |
| void | printNameRemap () const |
| Print the current name re-mapping rules. More... | |
| void | printProxyWarnings (bool value=true) |
| Enable warnings associated with broken element links. More... | |
Persistent data accessor/modifier functions | |
| const EventFormat * | inputEventFormat () const |
| Get information about the input objects. More... | |
| const EventFormat * | outputEventFormat () const |
| Get information about the output objects. More... | |
Event data accessor/modifier functions | |
| std::string | dump () |
| Function creating a user-readable dump of the current input. More... | |
| void | printIOStats () const |
| Function printing the I/O statistics of the current process. More... | |
| template<typename T > | |
| bool | contains (const std::string &key) |
| Function checking if an object is available from the store. More... | |
| template<typename T > | |
| bool | transientContains (const std::string &key) const |
| Function checking if an object is already in memory. More... | |
| template<typename T > | |
| StatusCode | keys (std::vector< std::string > &vkeys, bool metadata) const |
| Provide a list of all data object keys associated with a specific type. More... | |
| template<typename T > | |
| StatusCode | retrieve (const T *&obj, const std::string &key) |
| Retrieve either an input or an output object from the event. More... | |
| template<typename T > | |
| StatusCode | retrieve (T *&obj, const std::string &key) |
| Retrieve an output object from the event. More... | |
| template<typename T > | |
| StatusCode | record (T *obj, const std::string &key) |
| Add an output object to the event. More... | |
| template<typename T > | |
| StatusCode | record (std::unique_ptr< T > obj, const std::string &key) |
| Add an output object to the event, explicitly taking ownership of it. More... | |
| StatusCode | copy (const std::string &pattern=".*") |
| Copy an object directly from the input to the output. More... | |
Metadata accessor/modifier functions | |
| template<typename T > | |
| bool | containsMeta (const std::string &key) |
| Function checking if a meta-object is available from the store. More... | |
| template<typename T > | |
| bool | transientContainsMeta (const std::string &key) const |
| Function checking if a meta-object is already in memory. More... | |
| template<typename T > | |
| StatusCode | metaKeys (std::vector< std::string > &vkeys) const |
| Provide a list of all metadata object keys associated with a specific type. More... | |
| template<typename T > | |
| StatusCode | retrieveMetaInput (const T *&obj, const std::string &key) |
| Retrieve an input metadata object. More... | |
| template<typename T > | |
| StatusCode | retrieveMetaOutput (const T *&obj, const std::string &key) |
| Retrieve an output metadata object. More... | |
| template<typename T > | |
| StatusCode | retrieveMetaOutput (T *&obj, const std::string &key) |
| Retrieve an output metadata object. More... | |
| template<typename T > | |
| StatusCode | recordMeta (T *obj, const std::string &key) |
| Add an object to the output file's metadata. More... | |
| template<typename T > | |
| StatusCode | recordMeta (std::unique_ptr< T > obj, const std::string &key) |
| Add an object to the output file's metadata, explicitly taking ownership of it. More... | |
Event data accessor/modifier functions | |
| SG::IAuxStore * | recordAux (const std::string &key, SG::IAuxStoreHolder::AuxStoreType type=SG::IAuxStoreHolder::AST_ContainerStore) |
| Add an auxiliary store object to the output. More... | |
| template<typename T > | |
| StatusCode | record (T *obj, const std::string &key) |
| Add an output object to the event. More... | |
| template<typename T > | |
| StatusCode | record (std::unique_ptr< T > obj, const std::string &key) |
| Add an output object to the event, explicitly taking ownership of it. More... | |
| virtual StatusCode | record (void *obj, const std::string &typeName, const std::string &key, bool overwrite, bool metadata, bool isOwner)=0 |
| Record an object into a connected output file. More... | |
Persistent data accessor/modifier functions | |
| ::Long64_t | getEntries () const |
| Get how many entries are available from the current input file(s) More... | |
| ::Int_t | getEntry (::Long64_t entry, ::Int_t getall=0) |
| Function loading a given entry of the input TTree. More... | |
| ::Long64_t | getFiles () const |
| Get how many files are available on the currently defined input. More... | |
| ::Int_t | getFile (::Long64_t file, ::Int_t getall=0) |
| Load the first event for a given file from the input TChain. More... | |
| ::Int_t | fill () |
| Function filling one event into the output tree. More... | |
Event data accessor/modifier functions | |
| template<typename T > | |
| StatusCode | record (T *obj, const std::string &key) |
| Add an output object to the event. More... | |
| template<typename T > | |
| StatusCode | record (std::unique_ptr< T > obj, const std::string &key) |
| Add an output object to the event, explicitly taking ownership of it. More... | |
| std::string | dump () |
| Function creating a user-readable dump of the current input. More... | |
| void | printIOStats () const |
| Function printing the I/O statistics of the current process. More... | |
| template<typename T > | |
| bool | contains (const std::string &key) |
| Function checking if an object is available from the store. More... | |
| template<typename T > | |
| bool | transientContains (const std::string &key) const |
| Function checking if an object is already in memory. More... | |
| template<typename T > | |
| StatusCode | keys (std::vector< std::string > &vkeys, bool metadata) const |
| Provide a list of all data object keys associated with a specific type. More... | |
| template<typename T > | |
| StatusCode | retrieve (const T *&obj, const std::string &key) |
| Retrieve either an input or an output object from the event. More... | |
| template<typename T > | |
| StatusCode | retrieve (T *&obj, const std::string &key) |
| Retrieve an output object from the event. More... | |
| StatusCode | copy (const std::string &pattern=".*") |
| Copy an object directly from the input to the output. More... | |
Setup functions | |
| void | setActive () const |
| Set this event object as the currently active one. More... | |
| void | setAuxItemList (const std::string &containerKey, const std::string &itemList) |
| Configure which dynamic variables to write out for a given store. More... | |
| StatusCode | addListener (TVirtualIncidentListener *listener) |
| Register an incident listener object. More... | |
| StatusCode | removeListener (TVirtualIncidentListener *listener) |
| Remove an incident listener object. More... | |
| void | clearListeners () |
| Remove all listeners from the object. More... | |
| StatusCode | addNameRemap (const std::string &onfile, const std::string &newName) |
| Add a name re-mapping rule. More... | |
| void | clearNameRemap () |
| Clear the current name re-mapping. More... | |
| void | printNameRemap () const |
| Print the current name re-mapping rules. More... | |
| void | printProxyWarnings (bool value=true) |
| Enable warnings associated with broken element links. More... | |
Persistent data accessor/modifier functions | |
| const EventFormat * | inputEventFormat () const |
| Get information about the input objects. More... | |
| const EventFormat * | outputEventFormat () const |
| Get information about the output objects. More... | |
Metadata accessor/modifier functions | |
| template<typename T > | |
| bool | containsMeta (const std::string &key) |
| Function checking if a meta-object is available from the store. More... | |
| template<typename T > | |
| bool | transientContainsMeta (const std::string &key) const |
| Function checking if a meta-object is already in memory. More... | |
| template<typename T > | |
| StatusCode | metaKeys (std::vector< std::string > &vkeys) const |
| Provide a list of all metadata object keys associated with a specific type. More... | |
| template<typename T > | |
| StatusCode | retrieveMetaInput (const T *&obj, const std::string &key) |
| Retrieve an input metadata object. More... | |
| template<typename T > | |
| StatusCode | retrieveMetaOutput (const T *&obj, const std::string &key) |
| Retrieve an output metadata object. More... | |
| template<typename T > | |
| StatusCode | retrieveMetaOutput (T *&obj, const std::string &key) |
| Retrieve an output metadata object. More... | |
| template<typename T > | |
| StatusCode | recordMeta (T *obj, const std::string &key) |
| Add an object to the output file's metadata. More... | |
| template<typename T > | |
| StatusCode | recordMeta (std::unique_ptr< T > obj, const std::string &key) |
| Add an object to the output file's metadata, explicitly taking ownership of it. More... | |
Event data accessor/modifier functions | |
| SG::IAuxStore * | recordAux (const std::string &key, SG::IAuxStoreHolder::AuxStoreType type=SG::IAuxStoreHolder::AST_ContainerStore) |
| Add an auxiliary store object to the output. More... | |
| template<typename T > | |
| StatusCode | record (T *obj, const std::string &key) |
| Add an output object to the event. More... | |
| template<typename T > | |
| StatusCode | record (std::unique_ptr< T > obj, const std::string &key) |
| Add an output object to the event, explicitly taking ownership of it. More... | |
| virtual StatusCode | record (void *obj, const std::string &typeName, const std::string &key, bool overwrite, bool metadata, bool isOwner)=0 |
| Record an object into a connected output file. More... | |
Persistent data accessor/modifier functions | |
| ::Long64_t | getEntries () const |
| Get how many entries are available from the current input file(s) More... | |
| ::Int_t | getEntry (::Long64_t entry, ::Int_t getall=0) |
| Function loading a given entry of the input TTree. More... | |
| ::Long64_t | getFiles () const |
| Get how many files are available on the currently defined input. More... | |
| ::Int_t | getFile (::Long64_t file, ::Int_t getall=0) |
| Load the first event for a given file from the input TChain. More... | |
| ::Int_t | fill () |
| Function filling one event into the output tree. More... | |
Event data accessor/modifier functions | |
| template<typename T > | |
| StatusCode | record (T *obj, const std::string &key) |
| Add an output object to the event. More... | |
| template<typename T > | |
| StatusCode | record (std::unique_ptr< T > obj, const std::string &key) |
| Add an output object to the event, explicitly taking ownership of it. More... | |
| std::string | dump () |
| Function creating a user-readable dump of the current input. More... | |
| void | printIOStats () const |
| Function printing the I/O statistics of the current process. More... | |
| template<typename T > | |
| bool | contains (const std::string &key) |
| Function checking if an object is available from the store. More... | |
| template<typename T > | |
| bool | transientContains (const std::string &key) const |
| Function checking if an object is already in memory. More... | |
| template<typename T > | |
| StatusCode | keys (std::vector< std::string > &vkeys, bool metadata) const |
| Provide a list of all data object keys associated with a specific type. More... | |
| template<typename T > | |
| StatusCode | retrieve (const T *&obj, const std::string &key) |
| Retrieve either an input or an output object from the event. More... | |
| template<typename T > | |
| StatusCode | retrieve (T *&obj, const std::string &key) |
| Retrieve an output object from the event. More... | |
| StatusCode | copy (const std::string &pattern=".*") |
| Copy an object directly from the input to the output. More... | |
Setup functions | |
| void | setActive () const |
| Set this event object as the currently active one. More... | |
| void | setAuxItemList (const std::string &containerKey, const std::string &itemList) |
| Configure which dynamic variables to write out for a given store. More... | |
| StatusCode | addListener (TVirtualIncidentListener *listener) |
| Register an incident listener object. More... | |
| StatusCode | removeListener (TVirtualIncidentListener *listener) |
| Remove an incident listener object. More... | |
| void | clearListeners () |
| Remove all listeners from the object. More... | |
| StatusCode | addNameRemap (const std::string &onfile, const std::string &newName) |
| Add a name re-mapping rule. More... | |
| void | clearNameRemap () |
| Clear the current name re-mapping. More... | |
| void | printNameRemap () const |
| Print the current name re-mapping rules. More... | |
| void | printProxyWarnings (bool value=true) |
| Enable warnings associated with broken element links. More... | |
Persistent data accessor/modifier functions | |
| const EventFormat * | inputEventFormat () const |
| Get information about the input objects. More... | |
| const EventFormat * | outputEventFormat () const |
| Get information about the output objects. More... | |
Metadata accessor/modifier functions | |
| template<typename T > | |
| bool | containsMeta (const std::string &key) |
| Function checking if a meta-object is available from the store. More... | |
| template<typename T > | |
| bool | transientContainsMeta (const std::string &key) const |
| Function checking if a meta-object is already in memory. More... | |
| template<typename T > | |
| StatusCode | metaKeys (std::vector< std::string > &vkeys) const |
| Provide a list of all metadata object keys associated with a specific type. More... | |
| template<typename T > | |
| StatusCode | retrieveMetaInput (const T *&obj, const std::string &key) |
| Retrieve an input metadata object. More... | |
| template<typename T > | |
| StatusCode | retrieveMetaOutput (const T *&obj, const std::string &key) |
| Retrieve an output metadata object. More... | |
| template<typename T > | |
| StatusCode | retrieveMetaOutput (T *&obj, const std::string &key) |
| Retrieve an output metadata object. More... | |
| template<typename T > | |
| StatusCode | recordMeta (T *obj, const std::string &key) |
| Add an object to the output file's metadata. More... | |
| template<typename T > | |
| StatusCode | recordMeta (std::unique_ptr< T > obj, const std::string &key) |
| Add an object to the output file's metadata, explicitly taking ownership of it. More... | |
Event data accessor/modifier functions | |
| SG::IAuxStore * | recordAux (const std::string &key, SG::IAuxStoreHolder::AuxStoreType type=SG::IAuxStoreHolder::AST_ContainerStore) |
| Add an auxiliary store object to the output. More... | |
| template<typename T > | |
| StatusCode | record (T *obj, const std::string &key) |
| Add an output object to the event. More... | |
| template<typename T > | |
| StatusCode | record (std::unique_ptr< T > obj, const std::string &key) |
| Add an output object to the event, explicitly taking ownership of it. More... | |
| virtual StatusCode | record (void *obj, const std::string &typeName, const std::string &key, bool overwrite, bool metadata, bool isOwner)=0 |
| Record an object into a connected output file. More... | |
Persistent data accessor/modifier functions | |
| ::Long64_t | getEntries () const |
| Get how many entries are available from the current input file(s) More... | |
| ::Int_t | getEntry (::Long64_t entry, ::Int_t getall=0) |
| Function loading a given entry of the input TTree. More... | |
| ::Long64_t | getFiles () const |
| Get how many files are available on the currently defined input. More... | |
| ::Int_t | getFile (::Long64_t file, ::Int_t getall=0) |
| Load the first event for a given file from the input TChain. More... | |
| ::Int_t | fill () |
| Function filling one event into the output tree. More... | |
Event data accessor/modifier functions | |
| template<typename T > | |
| StatusCode | record (T *obj, const std::string &key) |
| Add an output object to the event. More... | |
| template<typename T > | |
| StatusCode | record (std::unique_ptr< T > obj, const std::string &key) |
| Add an output object to the event, explicitly taking ownership of it. More... | |
| std::string | dump () |
| Function creating a user-readable dump of the current input. More... | |
| void | printIOStats () const |
| Function printing the I/O statistics of the current process. More... | |
| template<typename T > | |
| bool | contains (const std::string &key) |
| Function checking if an object is available from the store. More... | |
| template<typename T > | |
| bool | transientContains (const std::string &key) const |
| Function checking if an object is already in memory. More... | |
| template<typename T > | |
| StatusCode | keys (std::vector< std::string > &vkeys, bool metadata) const |
| Provide a list of all data object keys associated with a specific type. More... | |
| template<typename T > | |
| StatusCode | retrieve (const T *&obj, const std::string &key) |
| Retrieve either an input or an output object from the event. More... | |
| template<typename T > | |
| StatusCode | retrieve (T *&obj, const std::string &key) |
| Retrieve an output object from the event. More... | |
| StatusCode | copy (const std::string &pattern=".*") |
| Copy an object directly from the input to the output. More... | |
Setup functions | |
| void | setActive () const |
| Set this event object as the currently active one. More... | |
| void | setAuxItemList (const std::string &containerKey, const std::string &itemList) |
| Configure which dynamic variables to write out for a given store. More... | |
| StatusCode | addListener (TVirtualIncidentListener *listener) |
| Register an incident listener object. More... | |
| StatusCode | removeListener (TVirtualIncidentListener *listener) |
| Remove an incident listener object. More... | |
| void | clearListeners () |
| Remove all listeners from the object. More... | |
| StatusCode | addNameRemap (const std::string &onfile, const std::string &newName) |
| Add a name re-mapping rule. More... | |
| void | clearNameRemap () |
| Clear the current name re-mapping. More... | |
| void | printNameRemap () const |
| Print the current name re-mapping rules. More... | |
| void | printProxyWarnings (bool value=true) |
| Enable warnings associated with broken element links. More... | |
Persistent data accessor/modifier functions | |
| const EventFormat * | inputEventFormat () const |
| Get information about the input objects. More... | |
| const EventFormat * | outputEventFormat () const |
| Get information about the output objects. More... | |
Metadata accessor/modifier functions | |
| template<typename T > | |
| bool | containsMeta (const std::string &key) |
| Function checking if a meta-object is available from the store. More... | |
| template<typename T > | |
| bool | transientContainsMeta (const std::string &key) const |
| Function checking if a meta-object is already in memory. More... | |
| template<typename T > | |
| StatusCode | metaKeys (std::vector< std::string > &vkeys) const |
| Provide a list of all metadata object keys associated with a specific type. More... | |
| template<typename T > | |
| StatusCode | retrieveMetaInput (const T *&obj, const std::string &key) |
| Retrieve an input metadata object. More... | |
| template<typename T > | |
| StatusCode | retrieveMetaOutput (const T *&obj, const std::string &key) |
| Retrieve an output metadata object. More... | |
| template<typename T > | |
| StatusCode | retrieveMetaOutput (T *&obj, const std::string &key) |
| Retrieve an output metadata object. More... | |
| template<typename T > | |
| StatusCode | recordMeta (T *obj, const std::string &key) |
| Add an object to the output file's metadata. More... | |
| template<typename T > | |
| StatusCode | recordMeta (std::unique_ptr< T > obj, const std::string &key) |
| Add an object to the output file's metadata, explicitly taking ownership of it. More... | |
Static Public Attributes | |
| static constexpr sgkey_t | DEFAULT_KEY = ~static_cast<sgkey_t>(0) |
| Key for retrieving the "default" object of a given type. More... | |
| static constexpr sgkey_t | KEY_MASK = DEFAULT_KEY >> 2 |
| Mask for the keys, used mostly internally. More... | |
Protected Types | |
| using | Object_t = std::unordered_map< std::string, std::unique_ptr< TVirtualManager > > |
| Definition of the internal data structure type. More... | |
Protected Member Functions | |
| StatusCode | recordAux (TAuxStore *store, const std::string &key) |
| Function setting up an existing auxiliary store for writing. More... | |
| StatusCode | record (std::unique_ptr< TAuxStore > store, const std::string &key) |
| Internal function for adding an auxiliary store object to the output. More... | |
| StatusCode | initStats () |
| Function to initialise the statistics for all Tree content. More... | |
| StatusCode | setUpDynamicStore (TObjectManager &mgr, ::TTree *tree) |
| Function adding dynamic variable reading capabilities to an auxiliary store object. More... | |
| StatusCode | putAux (::TTree &outTree, TVirtualManager &mgr, bool metadata) |
| Function saving the dynamically created auxiliary properties. More... | |
| bool | contains (const std::string &key, const std::type_info &ti, bool metadata) |
| Internal function checking if an object is in the input. More... | |
| bool | transientContains (const std::string &key, const std::type_info &ti, bool metadata) const |
| Internal function checking if an object is already in memory. More... | |
| void * | getOutputObject (const std::string &key, const std::type_info &ti, bool metadata) const |
| Function for retrieving an output object in a non-template way. More... | |
| const void * | getInputObject (const std::string &key, const std::type_info &ti, bool silent, bool metadata) |
| Function for retrieving an input object in a non-template way. More... | |
| StatusCode | recordTypeless (void *obj, const std::string &typeName, const std::string &key, bool overwrite=false, bool metadata=true, bool isOwner=true) |
| Internal function for recording an object into the output. More... | |
Functions implementing the IProxyDict interface | |
| SG::DataProxy * | proxy (const void *const pTransient) const override |
| get proxy for a given data object address in memory More... | |
| SG::DataProxy * | proxy (const CLID &id, const std::string &key) const override |
| get proxy with given id and key. Returns 0 to flag failure More... | |
| SG::DataProxy * | proxy_exact (SG::sgkey_t sgkey) const override |
| Get proxy given a hashed key+clid. More... | |
| StatusCode | addToStore (CLID id, SG::DataProxy *proxy) override |
| Add a new proxy to the store. More... | |
| std::vector< const SG::DataProxy * > | proxies () const override |
| return the list of all current proxies in store More... | |
| SG::sgkey_t | stringToKey (const std::string &str, CLID clid) override |
| Find the string corresponding to a given key. More... | |
| const std::string * | keyToString (SG::sgkey_t key) const override |
| Find the string corresponding to a given key. More... | |
| const std::string * | keyToString (SG::sgkey_t key, CLID &clid) const override |
| Find the string and CLID corresponding to a given key. More... | |
| void | registerKey (SG::sgkey_t key, const std::string &str, CLID clid) override |
| Remember an additional mapping from key to string/CLID. More... | |
| SG::DataProxy * | recordObject (SG::DataObjectSharedPtr< DataObject > obj, const std::string &key, bool allowMods, bool returnExisting) override |
| Record an object in the store. More... | |
| const std::string & | name () const override |
| Get the name of the instance. More... | |
Helper functions for the IProxyDict interface | |
| const xAOD::EventFormatElement * | getEventFormatElement (SG::sgkey_t sgkey) const |
| Get the metadata object for a given "SG key". More... | |
| const BranchInfo * | getBranchInfo (SG::sgkey_t sgkey) const |
| Get the object describing one object/branch. More... | |
Functions implemented from @c xAOD::Event | |
| StatusCode | recordAux (TVirtualManager &mgr, const std::string &key, bool metadata) override |
| Record an auxiliary store into a connected output file. More... | |
| bool | hasInput () const override |
| Check if an input file is connected to the object. More... | |
| bool | hasOutput () const override |
| Check if an output file is connected to the object. More... | |
| StatusCode | getNames (const std::string &targetClassName, std::vector< std::string > &vkeys, bool metadata) const override |
| Function determining the list keys associated with a type name. More... | |
| StatusCode | connectObject (const std::string &key, bool silent) override |
| Function setting up access to a particular object. More... | |
| StatusCode | connectMetaObject (const std::string &key, bool silent) override |
| Function setting up access to a particular metadata object. More... | |
| StatusCode | connectAux (const std::string &prefix, bool standalone) override |
| Function setting up access to a set of auxiliary branches. More... | |
| StatusCode | connectMetaAux (const std::string &prefix, bool standalone) override |
| Function setting up access to a set of auxiliary branches for a metadata object. More... | |
| StatusCode | setAuxStore (const std::string &key, Details::IObjectManager &mgr, bool metadata) override |
| Function connecting a DV object to its auxiliary store. More... | |
| StatusCode | record (void *obj, const std::string &typeName, const std::string &key, bool overwrite, bool metadata, bool isOwner) override |
| Record an object into a connected output file. More... | |
Functions implementing the IProxyDict interface | |
| SG::DataProxy * | proxy (const void *const pTransient) const override |
| get proxy for a given data object address in memory More... | |
| SG::DataProxy * | proxy (const CLID &id, const std::string &key) const override |
| get proxy with given id and key. Returns 0 to flag failure More... | |
| SG::DataProxy * | proxy_exact (SG::sgkey_t sgkey) const override |
| Get proxy given a hashed key+clid. More... | |
| StatusCode | addToStore (CLID id, SG::DataProxy *proxy) override |
| Add a new proxy to the store. More... | |
| std::vector< const SG::DataProxy * > | proxies () const override |
| return the list of all current proxies in store More... | |
| SG::sgkey_t | stringToKey (const std::string &str, CLID clid) override |
| Find the string corresponding to a given key. More... | |
| const std::string * | keyToString (SG::sgkey_t key) const override |
| Find the string corresponding to a given key. More... | |
| const std::string * | keyToString (SG::sgkey_t key, CLID &clid) const override |
| Find the string and CLID corresponding to a given key. More... | |
| void | registerKey (SG::sgkey_t key, const std::string &str, CLID clid) override |
| Remember an additional mapping from key to string/CLID. More... | |
| SG::DataProxy * | recordObject (SG::DataObjectSharedPtr< DataObject > obj, const std::string &key, bool allowMods, bool returnExisting) override |
| Record an object in the store. More... | |
| const std::string & | name () const override |
| Get the name of the instance. More... | |
Helper functions for the IProxyDict interface | |
| const xAOD::EventFormatElement * | getEventFormatElement (SG::sgkey_t sgkey) const |
| Get the metadata object for a given "SG key". More... | |
| const BranchInfo * | getBranchInfo (SG::sgkey_t sgkey) const |
| Get the object describing one object/branch. More... | |
Functions implementing the IProxyDict interface | |
| SG::DataProxy * | proxy (const void *const pTransient) const override |
| get proxy for a given data object address in memory More... | |
| SG::DataProxy * | proxy (const CLID &id, const std::string &key) const override |
| get proxy with given id and key. Returns 0 to flag failure More... | |
| SG::DataProxy * | proxy_exact (SG::sgkey_t sgkey) const override |
| Get proxy given a hashed key+clid. More... | |
| StatusCode | addToStore (CLID id, SG::DataProxy *proxy) override |
| Add a new proxy to the store. More... | |
| std::vector< const SG::DataProxy * > | proxies () const override |
| return the list of all current proxies in store More... | |
| SG::sgkey_t | stringToKey (const std::string &str, CLID clid) override |
| Find the string corresponding to a given key. More... | |
| const std::string * | keyToString (SG::sgkey_t key) const override |
| Find the string corresponding to a given key. More... | |
| const std::string * | keyToString (SG::sgkey_t key, CLID &clid) const override |
| Find the string and CLID corresponding to a given key. More... | |
| void | registerKey (SG::sgkey_t key, const std::string &str, CLID clid) override |
| Remember an additional mapping from key to string/CLID. More... | |
| SG::DataProxy * | recordObject (SG::DataObjectSharedPtr< DataObject > obj, const std::string &key, bool allowMods, bool returnExisting) override |
| Record an object in the store. More... | |
| const std::string & | name () const override |
| Get the name of the instance. More... | |
Helper functions for the IProxyDict interface | |
| const xAOD::EventFormatElement * | getEventFormatElement (SG::sgkey_t sgkey) const |
| Get the metadata object for a given "SG key". More... | |
| const BranchInfo * | getBranchInfo (SG::sgkey_t sgkey) const |
| Get the object describing one object/branch. More... | |
Functions implementing the IProxyDict interface | |
| SG::DataProxy * | proxy (const void *const pTransient) const override |
| get proxy for a given data object address in memory More... | |
| SG::DataProxy * | proxy (const CLID &id, const std::string &key) const override |
| get proxy with given id and key. Returns 0 to flag failure More... | |
| SG::DataProxy * | proxy_exact (SG::sgkey_t sgkey) const override |
| Get proxy given a hashed key+clid. More... | |
| StatusCode | addToStore (CLID id, SG::DataProxy *proxy) override |
| Add a new proxy to the store. More... | |
| std::vector< const SG::DataProxy * > | proxies () const override |
| return the list of all current proxies in store More... | |
| SG::sgkey_t | stringToKey (const std::string &str, CLID clid) override |
| Find the string corresponding to a given key. More... | |
| const std::string * | keyToString (SG::sgkey_t key) const override |
| Find the string corresponding to a given key. More... | |
| const std::string * | keyToString (SG::sgkey_t key, CLID &clid) const override |
| Find the string and CLID corresponding to a given key. More... | |
| void | registerKey (SG::sgkey_t key, const std::string &str, CLID clid) override |
| Remember an additional mapping from key to string/CLID. More... | |
| SG::DataProxy * | recordObject (SG::DataObjectSharedPtr< DataObject > obj, const std::string &key, bool allowMods, bool returnExisting) override |
| Record an object in the store. More... | |
| const std::string & | name () const override |
| Get the name of the instance. More... | |
Helper functions for the IProxyDict interface | |
| const xAOD::EventFormatElement * | getEventFormatElement (SG::sgkey_t sgkey) const |
| Get the metadata object for a given "SG key". More... | |
| const BranchInfo * | getBranchInfo (SG::sgkey_t sgkey) const |
| Get the object describing one object/branch. More... | |
Functions implemented from @c xAOD::Event | |
| bool | hasInput () const override |
| Check if an input file is connected to the object. More... | |
| bool | hasOutput () const override |
| Check if an output file is connected to the object. More... | |
| StatusCode | getNames (const std::string &targetClassName, std::vector< std::string > &vkeys, bool metadata) const override |
| Function determining the list keys associated with a type name. More... | |
| StatusCode | connectObject (const std::string &key, bool silent) override |
| Function setting up access to a particular object. More... | |
| StatusCode | connectMetaObject (const std::string &key, bool silent) override |
| Function setting up access to a particular metadata object. More... | |
| StatusCode | connectAux (const std::string &prefix, bool standalone) override |
| Function setting up access to a set of auxiliary branches. More... | |
| StatusCode | connectMetaAux (const std::string &prefix, bool standalone) override |
| Function setting up access to a set of auxiliary branches for a metadata object. More... | |
| StatusCode | setAuxStore (const std::string &key, Details::IObjectManager &mgr, bool metadata) override |
| Function connecting a DV object to its auxiliary store. More... | |
| StatusCode | record (void *obj, const std::string &typeName, const std::string &key, bool overwrite, bool metadata, bool isOwner) override |
| Record an object into a connected output file. More... | |
| StatusCode | recordAux (TVirtualManager &mgr, const std::string &key, bool metadata) override |
| Record an auxiliary store into a connected output file. More... | |
Functions implementing the IProxyDict interface | |
| SG::DataProxy * | proxy (const void *const pTransient) const override |
| get proxy for a given data object address in memory More... | |
| SG::DataProxy * | proxy (const CLID &id, const std::string &key) const override |
| get proxy with given id and key. Returns 0 to flag failure More... | |
| SG::DataProxy * | proxy_exact (SG::sgkey_t sgkey) const override |
| Get proxy given a hashed key+clid. More... | |
| StatusCode | addToStore (CLID id, SG::DataProxy *proxy) override |
| Add a new proxy to the store. More... | |
| std::vector< const SG::DataProxy * > | proxies () const override |
| return the list of all current proxies in store More... | |
| SG::sgkey_t | stringToKey (const std::string &str, CLID clid) override |
| Find the string corresponding to a given key. More... | |
| const std::string * | keyToString (SG::sgkey_t key) const override |
| Find the string corresponding to a given key. More... | |
| const std::string * | keyToString (SG::sgkey_t key, CLID &clid) const override |
| Find the string and CLID corresponding to a given key. More... | |
| void | registerKey (SG::sgkey_t key, const std::string &str, CLID clid) override |
| Remember an additional mapping from key to string/CLID. More... | |
| SG::DataProxy * | recordObject (SG::DataObjectSharedPtr< DataObject > obj, const std::string &key, bool allowMods, bool returnExisting) override |
| Record an object in the store. More... | |
| const std::string & | name () const override |
| Get the name of the instance. More... | |
Helper functions for the IProxyDict interface | |
| const xAOD::EventFormatElement * | getEventFormatElement (SG::sgkey_t sgkey) const |
| Get the metadata object for a given "SG key". More... | |
| const BranchInfo * | getBranchInfo (SG::sgkey_t sgkey) const |
| Get the object describing one object/branch. More... | |
Functions implemented from @c xAOD::Event | |
| StatusCode | recordAux (TVirtualManager &mgr, const std::string &key, bool metadata) override |
| Record an auxiliary store into a connected output file. More... | |
| bool | hasInput () const override |
| Check if an input file is connected to the object. More... | |
| bool | hasOutput () const override |
| Check if an output file is connected to the object. More... | |
| StatusCode | getNames (const std::string &targetClassName, std::vector< std::string > &vkeys, bool metadata) const override |
| Function determining the list keys associated with a type name. More... | |
| StatusCode | connectObject (const std::string &key, bool silent) override |
| Function setting up access to a particular object. More... | |
| StatusCode | connectMetaObject (const std::string &key, bool silent) override |
| Function setting up access to a particular metadata object. More... | |
| StatusCode | connectAux (const std::string &prefix, bool standalone) override |
| Function setting up access to a set of auxiliary branches. More... | |
| StatusCode | connectMetaAux (const std::string &prefix, bool standalone) override |
| Function setting up access to a set of auxiliary branches for a metadata object. More... | |
| StatusCode | setAuxStore (const std::string &key, Details::IObjectManager &mgr, bool metadata) override |
| Function connecting a DV object to its auxiliary store. More... | |
| StatusCode | record (void *obj, const std::string &typeName, const std::string &key, bool overwrite, bool metadata, bool isOwner) override |
| Record an object into a connected output file. More... | |
Functions implementing the IProxyDict interface | |
| SG::DataProxy * | proxy (const void *const pTransient) const override |
| get proxy for a given data object address in memory More... | |
| SG::DataProxy * | proxy (const CLID &id, const std::string &key) const override |
| get proxy with given id and key. Returns 0 to flag failure More... | |
| SG::DataProxy * | proxy_exact (SG::sgkey_t sgkey) const override |
| Get proxy given a hashed key+clid. More... | |
| StatusCode | addToStore (CLID id, SG::DataProxy *proxy) override |
| Add a new proxy to the store. More... | |
| std::vector< const SG::DataProxy * > | proxies () const override |
| return the list of all current proxies in store More... | |
| SG::sgkey_t | stringToKey (const std::string &str, CLID clid) override |
| Find the string corresponding to a given key. More... | |
| const std::string * | keyToString (SG::sgkey_t key) const override |
| Find the string corresponding to a given key. More... | |
| const std::string * | keyToString (SG::sgkey_t key, CLID &clid) const override |
| Find the string and CLID corresponding to a given key. More... | |
| void | registerKey (SG::sgkey_t key, const std::string &str, CLID clid) override |
| Remember an additional mapping from key to string/CLID. More... | |
| SG::DataProxy * | recordObject (SG::DataObjectSharedPtr< DataObject > obj, const std::string &key, bool allowMods, bool returnExisting) override |
| Record an object in the store. More... | |
| const std::string & | name () const override |
| Get the name of the instance. More... | |
Helper functions for the IProxyDict interface | |
| const xAOD::EventFormatElement * | getEventFormatElement (SG::sgkey_t sgkey) const |
| Get the metadata object for a given "SG key". More... | |
| const BranchInfo * | getBranchInfo (SG::sgkey_t sgkey) const |
| Get the object describing one object/branch. More... | |
Functions implemented from @c xAOD::Event | |
| StatusCode | recordAux (TVirtualManager &mgr, const std::string &key, bool metadata) override |
| Record an auxiliary store into a connected output file. More... | |
| bool | hasInput () const override |
| Check if an input file is connected to the object. More... | |
| bool | hasOutput () const override |
| Check if an output file is connected to the object. More... | |
| StatusCode | getNames (const std::string &targetClassName, std::vector< std::string > &vkeys, bool metadata) const override |
| Function determining the list keys associated with a type name. More... | |
| StatusCode | connectObject (const std::string &key, bool silent) override |
| Function setting up access to a particular object. More... | |
| StatusCode | connectMetaObject (const std::string &key, bool silent) override |
| Function setting up access to a particular metadata object. More... | |
| StatusCode | connectAux (const std::string &prefix, bool standalone) override |
| Function setting up access to a set of auxiliary branches. More... | |
| StatusCode | connectMetaAux (const std::string &prefix, bool standalone) override |
| Function setting up access to a set of auxiliary branches for a metadata object. More... | |
| StatusCode | setAuxStore (const std::string &key, Details::IObjectManager &mgr, bool metadata) override |
| Function connecting a DV object to its auxiliary store. More... | |
| StatusCode | record (void *obj, const std::string &typeName, const std::string &key, bool overwrite, bool metadata, bool isOwner) override |
| Record an object into a connected output file. More... | |
Functions implementing the IProxyDict interface | |
| SG::DataProxy * | proxy (const void *const pTransient) const override |
| get proxy for a given data object address in memory More... | |
| SG::DataProxy * | proxy (const CLID &id, const std::string &key) const override |
| get proxy with given id and key. Returns 0 to flag failure More... | |
| SG::DataProxy * | proxy_exact (SG::sgkey_t sgkey) const override |
| Get proxy given a hashed key+clid. More... | |
| StatusCode | addToStore (CLID id, SG::DataProxy *proxy) override |
| Add a new proxy to the store. More... | |
| std::vector< const SG::DataProxy * > | proxies () const override |
| return the list of all current proxies in store More... | |
| SG::sgkey_t | stringToKey (const std::string &str, CLID clid) override |
| Find the string corresponding to a given key. More... | |
| const std::string * | keyToString (SG::sgkey_t key) const override |
| Find the string corresponding to a given key. More... | |
| const std::string * | keyToString (SG::sgkey_t key, CLID &clid) const override |
| Find the string and CLID corresponding to a given key. More... | |
| void | registerKey (SG::sgkey_t key, const std::string &str, CLID clid) override |
| Remember an additional mapping from key to string/CLID. More... | |
| SG::DataProxy * | recordObject (SG::DataObjectSharedPtr< DataObject > obj, const std::string &key, bool allowMods, bool returnExisting) override |
| Record an object in the store. More... | |
| const std::string & | name () const override |
| Get the name of the instance. More... | |
Helper functions for the IProxyDict interface | |
| const xAOD::EventFormatElement * | getEventFormatElement (SG::sgkey_t sgkey) const |
| Get the metadata object for a given "SG key". More... | |
| const BranchInfo * | getBranchInfo (SG::sgkey_t sgkey) const |
| Get the object describing one object/branch. More... | |
Functions implemented from @c xAOD::Event | |
| StatusCode | recordAux (TVirtualManager &mgr, const std::string &key, bool metadata) override |
| Record an auxiliary store into a connected output file. More... | |
| bool | hasInput () const override |
| Check if an input file is connected to the object. More... | |
| bool | hasOutput () const override |
| Check if an output file is connected to the object. More... | |
| StatusCode | getNames (const std::string &targetClassName, std::vector< std::string > &vkeys, bool metadata) const override |
| Function determining the list keys associated with a type name. More... | |
| StatusCode | connectObject (const std::string &key, bool silent) override |
| Function setting up access to a particular object. More... | |
| StatusCode | connectMetaObject (const std::string &key, bool silent) override |
| Function setting up access to a particular metadata object. More... | |
| StatusCode | connectAux (const std::string &prefix, bool standalone) override |
| Function setting up access to a set of auxiliary branches. More... | |
| StatusCode | connectMetaAux (const std::string &prefix, bool standalone) override |
| Function setting up access to a set of auxiliary branches for a metadata object. More... | |
| StatusCode | setAuxStore (const std::string &key, Details::IObjectManager &mgr, bool metadata) override |
| Function connecting a DV object to its auxiliary store. More... | |
| StatusCode | record (void *obj, const std::string &typeName, const std::string &key, bool overwrite, bool metadata, bool isOwner) override |
| Record an object into a connected output file. More... | |
Functions implementing the IProxyDict interface | |
| SG::DataProxy * | proxy (const void *const pTransient) const override |
| get proxy for a given data object address in memory More... | |
| SG::DataProxy * | proxy (const CLID &id, const std::string &key) const override |
| get proxy with given id and key. Returns 0 to flag failure More... | |
| SG::DataProxy * | proxy_exact (SG::sgkey_t sgkey) const override |
| Get proxy given a hashed key+clid. More... | |
| StatusCode | addToStore (CLID id, SG::DataProxy *proxy) override |
| Add a new proxy to the store. More... | |
| std::vector< const SG::DataProxy * > | proxies () const override |
| return the list of all current proxies in store More... | |
| SG::sgkey_t | stringToKey (const std::string &str, CLID clid) override |
| Find the string corresponding to a given key. More... | |
| const std::string * | keyToString (SG::sgkey_t key) const override |
| Find the string corresponding to a given key. More... | |
| const std::string * | keyToString (SG::sgkey_t key, CLID &clid) const override |
| Find the string and CLID corresponding to a given key. More... | |
| void | registerKey (SG::sgkey_t key, const std::string &str, CLID clid) override |
| Remember an additional mapping from key to string/CLID. More... | |
| SG::DataProxy * | recordObject (SG::DataObjectSharedPtr< DataObject > obj, const std::string &key, bool allowMods, bool returnExisting) override |
| Record an object in the store. More... | |
| const std::string & | name () const override |
| Get the name of the instance. More... | |
Helper functions for the IProxyDict interface | |
| const xAOD::EventFormatElement * | getEventFormatElement (SG::sgkey_t sgkey) const |
| Get the metadata object for a given "SG key". More... | |
| const BranchInfo * | getBranchInfo (SG::sgkey_t sgkey) const |
| Get the object describing one object/branch. More... | |
Protected Attributes | |
| EAuxMode | m_auxMode |
| The auxiliary access mode. More... | |
| ::TTree * | m_inTree = nullptr |
| The main tree that we are reading from. More... | |
| bool | m_inTreeMissing = false |
| Internal status flag showing that an input file is open, but it doesn't contain an event tree. More... | |
| ::TChain * | m_inChain = nullptr |
| The (optional) chain provided as input. More... | |
| std::unique_ptr< TChainStateTracker > | m_inChainTracker |
| Optional object for tracking the state changes of an input TChain. More... | |
| ::Int_t | m_inTreeNumber = -1 |
| The number of the currently open tree in the input chain. More... | |
| ::TTree * | m_inMetaTree = nullptr |
| Pointer to the metadata tree in the input file. More... | |
| ::Long64_t | m_entry = -1 |
| The entry to look at from the input tree. More... | |
| std::unique_ptr<::TTree > | m_outTree |
| The tree that we are writing to. More... | |
| Object_t | m_inputObjects |
| Collection of all the managed input objects. More... | |
| std::set< std::string > | m_inputMissingObjects |
| Objects that have been asked for, but were found to be missing in the current input. More... | |
| Object_t | m_outputObjects |
| Collection of all the managed output object. More... | |
| Object_t | m_inputMetaObjects |
| Collection of all the managed input meta-objects. More... | |
| Object_t | m_outputMetaObjects |
| Collection of all the managed output meta-objects. More... | |
| EventFormat | m_inputEventFormat |
| Format of the current input file. More... | |
| EventFormat * | m_outputEventFormat = nullptr |
| Format of the current output file. More... | |
| std::unordered_map< std::string, std::set< std::string > > | m_auxItemList |
| Rules for selecting which auxiliary branches to write. More... | |
| std::vector< TVirtualIncidentListener * > | m_listeners |
| Listeners who should be notified when certain incidents happen. More... | |
| std::unordered_map< std::string, std::string > | m_nameRemapping |
| Container name re-mapping rules. More... | |
| bool | m_printEventProxyWarnings = false |
| Option to silence common warnings that seem to be harmless. More... | |
Private Member Functions | |
| void | initMessaging () const |
| Initialize our message level and MessageSvc. More... | |
Private Attributes | |
| std::string | m_nm |
| Message source name. More... | |
| boost::thread_specific_ptr< MsgStream > | m_msg_tls |
| MsgStream instance (a std::cout like with print-out levels) More... | |
| std::atomic< IMessageSvc * > | m_imsg { nullptr } |
| MessageSvc pointer. More... | |
| std::atomic< MSG::Level > | m_lvl { MSG::NIL } |
| Current logging level. More... | |
Functions implementing the @c xAOD::TVirtualEvent interface | |
| SG::sgkey_t | getHash (const std::string &key) const override |
| Function returning the hash describing an object name. More... | |
| SG::sgkey_t | getKey (const void *obj) const override |
| Function returning the hash describing a known object. More... | |
| const std::string & | getName (const void *obj) const override |
| Function returning the key describing a known object. More... | |
| const std::string & | getName (SG::sgkey_t hash) const override |
| Function returning the key describing a known object. More... | |
| void * | getOutputObject (SG::sgkey_t key, const std::type_info &ti) override |
| Function for retrieving an output object in a non-template way. More... | |
| const void * | getInputObject (SG::sgkey_t key, const std::type_info &ti, bool silent) override |
| Function for retrieving an input object in a non-template way. More... | |
Variable(s) used in the @c IProxyDict implementation | |
| upgrade_mutex_t | m_branchesMutex |
| Mutex for multithread synchronization. More... | |
| SG::SGKeyMap< BranchInfo > m_branches | ATLAS_THREAD_SAFE |
| Map from hashed sgkey to BranchInfo. More... | |
| using | upgrade_mutex_t = AthContainers_detail::upgrade_mutex |
| Mutex type for multithread synchronization. More... | |
| using | upgrading_lock_t = AthContainers_detail::upgrading_lock< upgrade_mutex_t > |
| Lock type for multithread synchronization. More... | |
Setup functions | |
| StatusCode | readFrom (::TFile *file, bool useTreeCache=true, std::string_view treeName=EVENT_TREE_NAME) |
| Connect the object to a new input file. More... | |
| StatusCode | readFrom (::TTree *tree, bool useTreeCache=true) |
| Connect the object to a new input tree/chain. More... | |
| StatusCode | writeTo (::TFile *file, int autoFlush=200, std::string_view treeName=EVENT_TREE_NAME) |
| Connect the object to an output file. More... | |
| StatusCode | finishWritingTo (::TFile *file) |
| Finish writing to an output file. More... | |
| static const char *const | EVENT_TREE_NAME = "CollectionTree" |
| Default name of the event tree. More... | |
Definition at line 22 of file xAODTEvent.h.
|
protectedinherited |
|
inherited |
Definition at line 29 of file TVirtualEvent.h.
|
protectedinherited |
|
protectedinherited |
|
inherited |
Auxiliary store "mode".
| Enumerator | |
|---|---|
| kBranchAccess | Access auxiliary data branch-by-branch. |
| kClassAccess | Access auxiliary data using the aux containers. |
| kAthenaAccess | Access containers/objects like Athena does. |
Definition at line 69 of file Control/xAODRootAccess/xAODRootAccess/TEvent.h.
|
inherited |
Register an incident listener object.
This function works pretty much like IIncidentSvc::addListener does in Athena.
It tells the TEvent object that when certain "interesting incidents" happen, a given object should be notified about it.
| listener | Pointer to the object that should be notified |
StatusCode types Definition at line 97 of file EventCore.cxx.
|
inherited |
Add a name re-mapping rule.
The names of containers can change during the lifetime of the experiment.
One such change happened after the DC14 exercise, when many containers got a new name. (Like "ElectronCollection" became simply "Electrons".)
This function allows us to create aliases with which certain containers should be accessible. So that the analyser would be able to access older files, while using the latest container name(s).
| onfile | The name of the container as it was saved into the input file |
| newName | The alias with which the object/container should be accessible |
StatusCode types Save the new name association:
Definition at line 162 of file EventCore.cxx.
|
overrideprotectedinherited |
Add a new proxy to the store.
Smart pointers to objects that don't exist in the input event, can end up calling this function.
In this case warn the user that something fishy is happening, and take posession of the received proxy.
| clid | The CLID of the type. Not taken into account. |
| proxy | The proxy to take posession of. Not used for anything useful. |
Definition at line 251 of file EventIProxyDict.cxx.
|
inherited |
Get what auxiliary access mode the object was constructed with.
Definition at line 108 of file Control/xAODRootAccess/Root/TEvent.cxx.
|
inherited |
Remove all listeners from the object.
This function can be used to remove all the listeners from the internal list.
Should not be necessary under regular circumstances.
Definition at line 143 of file EventCore.cxx.
|
inherited |
Clear the current name re-mapping.
This function simply clears out any existing name remapping declarations.
In case the remapping rules need to be changed in the code in some complicated way.
Definition at line 193 of file EventCore.cxx.
|
overrideprotectedvirtualinherited |
Function setting up access to a set of auxiliary branches.
This function is used internally to connect an auxiliary object to the input.
Based on the configuration of the object it will either use TAuxStore, or the EDM object that was used to write the auxiliary information in Athena.
| prefix | The prefix (main branch name) of the auxiliary data |
| standalone | Type of the auxiliary store that should be created |
StatusCode types Implements xAOD::Event.
Definition at line 1329 of file Control/xAODRootAccess/Root/TEvent.cxx.
|
overrideprotectedvirtualinherited |
Function setting up access to a set of auxiliary branches for a metadata object.
This function is used internally to connect an auxiliary metadata object to the input.
Based on the configuration of the object it will either use TAuxStore, or the EDM object that was used to write the auxiliary information in Athena.
| prefix | The prefix (main branch name) of the auxiliary data |
| standalone | Type of the auxiliary store that should be created |
StatusCode types Implements xAOD::Event.
Definition at line 1401 of file Control/xAODRootAccess/Root/TEvent.cxx.
|
overrideprotectedvirtualinherited |
Function setting up access to a particular metadata object.
This is the function doing the heavy lifting with creating metadata objects in memory out of the payload of the input file.
| key | The key (branch name) of the metadata object to retrieve |
| silent | Set to kTRUE to make the code fail silently in case the branch can't be connected to |
StatusCode types Implements xAOD::Event.
Definition at line 1228 of file Control/xAODRootAccess/Root/TEvent.cxx.
|
overrideprotectedvirtualinherited |
Function setting up access to a particular object.
This is one of the more important functions of the class.
It connects the event object to a given branch of the input TTree.
The type that is read in to memory is not actually determined by the type written to the tree itself, but from the xAOD::EventFormat object. Which is there to make it possible to possibly use ROOT read rules in the future to read a different type than what's on disk.
Everything else is fairly basic ROOT stuff, the code just has to make sure that the memory management is set up correctly for the created object.
| key | The name of the branch to connect to |
| silent | Set to true to make the code fail silently in case the branch can't be connected to |
StatusCode types Implements xAOD::Event.
Definition at line 1059 of file Control/xAODRootAccess/Root/TEvent.cxx.
Function checking if an object is available from the store.
|
protectedinherited |
Internal function checking if an object is in the input.
Function checking if a meta-object is available from the store.
|
inherited |
Copy an object directly from the input to the output.
This function can be used to easily copy a given (set of) object/container(s) to the output, without modifying the contents of it/them.
It only needs to be called on the interface object/container(s), the copying of the auxiliary data is done automatically, and is steered by the xAOD::Event::setAuxItemList function.
| pattern | Regular expression for the key(s)/name(s) of the object(s)/container(s) to copy |
Definition at line 28 of file EventIO.cxx.
|
inherited |
Function creating a user-readable dump of the current input.
This function behaves exactly like StoreGateSvc::dump().
It doesn't actually print anything to the screen, it just returns a user readable dump of the contents of the current input file/chain.
It is a pretty dumb implementation for the moment. Should be made nicer later on.
Definition at line 250 of file EventCore.cxx.
|
inherited |
Function filling one event into the output tree.
This function needs to be called by the user at the end of processing each event that is meant to be written out.
Definition at line 814 of file Control/xAODRootAccess/Root/TEvent.cxx.
|
inherited |
Finish writing to an output file.
This function needs to be called when the user is done writing events to a file, before (s)he would close the file itself.
| file | The file that the event data is written to |
StatusCode tyoes Definition at line 447 of file Control/xAODRootAccess/Root/TEvent.cxx.
|
protectedinherited |
|
inherited |
Get how many entries are available from the current input file(s)
Definition at line 621 of file Control/xAODRootAccess/Root/TEvent.cxx.
|
inherited |
Function loading a given entry of the input TTree.
This function is used to move to looking at a new entry from the input tree.
It doesn't do any I/O operation at this point, it just remembers which entry the objects should be loaded from later on.
Unless one calls the function with getall==1. In that case all input is force-read. This is necessary when writing out an event that was processed in a load-on-request manner.
| entry | The entry from the input tree to load |
| getall | Parameter deciding if partial reading should be used or not. |
Definition at line 650 of file Control/xAODRootAccess/Root/TEvent.cxx.
|
protectedinherited |
|
inherited |
Load the first event for a given file from the input TChain.
This function can be used to iterate over the input files specified for the object.
It should be most useful for collecting metadata about a set of input files, if there's no regular event loop done to process them.
| file | The file number to load |
| getall | If set to 1, all connected branches are loaded |
Definition at line 780 of file Control/xAODRootAccess/Root/TEvent.cxx.
|
inherited |
Get how many files are available on the currently defined input.
This function can be used to get the number of input files that the object currently knows about.
This is meant to be used to collect the metadata from each of the input files, or to access the metadata using a transient tree. (xAOD::TMetaTree)
Definition at line 760 of file Control/xAODRootAccess/Root/TEvent.cxx.
|
overridevirtualinherited |
Function returning the hash describing an object name.
This helper function is mostly needed by the smart pointers of the xAOD EDM.
Right now it very simply just calculates the hash just based on the key given to the function. But later on it might be good to do some tests here, checking if the event format knows about the specified key or not. This is why it's not made to be a static function
| key | String key to turn into a hash |
Implements xAOD::TVirtualEvent.
Definition at line 27 of file EventTVirtualEvent.cxx.
|
protectedinherited |
Function for retrieving an input object in a non-template way.
This is the function doing the heavy lifting to retrieve objects from the input file.
| key | The key (branch name) of the object to retrieve |
| ti | The type as which the object is to be retrieved |
| silent | Set to kTRUE to make the code fail silently in case the object can't be retrieved |
| metadata | Flag deciding whether we're looking for a metadata or event data object |
Definition at line 218 of file EventIO.cxx.
|
overrideprotectedvirtualinherited |
Function for retrieving an input object in a non-template way.
This function is used by the TVirtualEvent interface to access an input object with a given hashed key.
The function looks up the string key belonging to the hash, and then calls the other GetInputObject(...) function in the class with that parameter.
| key | The hashed key of the input object |
| ti | The type description of the object requested |
| silent | Switch for being silent about failures or not |
Implements xAOD::TVirtualEvent.
Definition at line 162 of file EventTVirtualEvent.cxx.
|
overridevirtualinherited |
Function returning the hash describing a known object.
This function is used by the smart pointer code to find the identifier of an object that's already in the event in some way.
| obj | Pointer to the object that we want to look up |
Implements xAOD::TVirtualEvent.
Definition at line 51 of file EventTVirtualEvent.cxx.
Function returning the key describing a known object.
This function is used by the smart pointer code to find the identifier of an object that's already in the event in some way.
| obj | Pointer to the object that we want to look up |
Implements xAOD::TVirtualEvent.
Definition at line 64 of file EventTVirtualEvent.cxx.
|
overridevirtualinherited |
Function returning the key describing a known object.
This function is used primarily when getting the string key of a smart pointer that we read in from a file, or access it in memory.
| hash | The hashed key for the container/object |
Implements xAOD::TVirtualEvent.
Definition at line 105 of file EventTVirtualEvent.cxx.
|
overrideprotectedvirtualinherited |
Function determining the list keys associated with a type name.
Implements xAOD::Event.
Definition at line 903 of file Control/xAODRootAccess/Root/TEvent.cxx.
|
protectedinherited |
Function for retrieving an output object in a non-template way.
This function does the heavy lifting of retrieving object from the list of output objects.
While it returns a typeless pointer, that pointer can be cast directly to the type described by the second parameter in the caller code.
| key | The key (branch name) of the object to retrieve |
| ti | The type as which the object is to be retrieved |
| metadata | Flag deciding whether we're looking for a metadata or event data object |
Definition at line 154 of file EventIO.cxx.
|
overrideprotectedvirtualinherited |
Function for retrieving an output object in a non-template way.
This function is used by the TVirtualEvent interface to access an output object with a given hashed key.
The function looks up the string key belonging to the hash, and then calls the other GetOutputObject(...) function in the class with that parameter.
| key | The hashed key of the output object |
| ti | The type description of the object requested |
Implements xAOD::TVirtualEvent.
Definition at line 138 of file EventTVirtualEvent.cxx.
|
overrideprotectedvirtualinherited |
Check if an input file is connected to the object.
Implements xAOD::Event.
Definition at line 893 of file Control/xAODRootAccess/Root/TEvent.cxx.
|
overrideprotectedvirtualinherited |
Check if an output file is connected to the object.
Implements xAOD::Event.
Definition at line 898 of file Control/xAODRootAccess/Root/TEvent.cxx.
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
|
protectedinherited |
Function to initialise the statistics for all Tree content.
This function is used internally to initialise the reading of an input file.
It prepares the "monitoring information" in memory that gets filled while the code is running, with information about xAOD I/O.
StatusCode tyoes Definition at line 1808 of file Control/xAODRootAccess/Root/TEvent.cxx.
|
inherited |
Get information about the input objects.
Definition at line 228 of file EventCore.cxx.
|
inherited |
Provide a list of all data object keys associated with a specific type.
|
overrideprotectedinherited |
Find the string corresponding to a given key.
Definition at line 294 of file EventIProxyDict.cxx.
|
overrideprotectedinherited |
Find the string and CLID corresponding to a given key.
Definition at line 299 of file EventIProxyDict.cxx.
|
inherited |
Provide a list of all metadata object keys associated with a specific type.
|
inherited |
The standard message stream.
Definition at line 49 of file AsgMessaging.cxx.
|
inherited |
The standard message stream.
| lvl | The message level to set the stream to |
Definition at line 57 of file AsgMessaging.cxx.
Test the output level of the object.
| lvl | The message level to test against |
true If messages at level "lvl" will be printed Definition at line 41 of file AsgMessaging.cxx.
|
overrideprotectedinherited |
Get the name of the instance.
Definition at line 315 of file EventIProxyDict.cxx.
|
inherited |
Get information about the output objects.
Definition at line 236 of file EventCore.cxx.
|
inherited |
Function printing the I/O statistics of the current process.
This is a convenience function for printing basic I/O information about the current job.
It can be called at the end of a job to get an overview of what the job did exactly I/O-wise.
Definition at line 298 of file EventCore.cxx.
|
inherited |
Print the current name re-mapping rules.
This function can be used for debugging, to check what container/object name remapping rules are in place for the current TEvent object.
Definition at line 201 of file EventCore.cxx.
|
inherited |
Enable warnings associated with broken element links.
These appear harmless so long as you don't actually try to access the links.
Which will cause other errors anyway.
| value | The new value for the option |
Definition at line 223 of file EventCore.cxx.
|
overrideprotectedinherited |
|
overrideprotectedinherited |
get proxy with given id and key. Returns 0 to flag failure
Definition at line 213 of file EventIProxyDict.cxx.
|
overrideprotectedinherited |
get proxy for a given data object address in memory
Definition at line 185 of file EventIProxyDict.cxx.
|
overrideprotectedinherited |
|
protectedinherited |
Function saving the dynamically created auxiliary properties.
This function is used internally to set up the writing of the auxiliary store variables that were dynamically created on an object.
(And not statically defined to be part of that object.)
| outTree | The TTree to put the auxiliary branches into |
| mgr | The object manager of the output object |
| metadata | Flag specifying whether the info written is metadata or not |
StatusCode types Definition at line 2127 of file Control/xAODRootAccess/Root/TEvent.cxx.
|
inherited |
Connect the object to a new input file.
This function takes care of connecting the event object to a new input file.
It reads in the metadata of the input file needed for reading the file.
| file | Pointer to the file being read |
| useTreeCache | Flag for turning on/off the usage of TTreeCache |
| treeName | Name of the input tree |
StatusCode tyoes Definition at line 122 of file Control/xAODRootAccess/Root/TEvent.cxx.
|
inherited |
Connect the object to a new input tree/chain.
This version of the function sets up the object to read information from a tree/chain.
Using it with a TTree pointer makes not much sense, but using it with a TChain pointer could be a very valid usage mode.
| tree | The pointer to a TTree or a TChain |
| useTreeCache | Flag for switching TTreeCache usage on/off |
StatusCode tyoes Definition at line 331 of file Control/xAODRootAccess/Root/TEvent.cxx.
|
inherited |
Add an output object to the event, explicitly taking ownership of it.
|
inherited |
Add an output object to the event, explicitly taking ownership of it.
|
protectedinherited |
Internal function for adding an auxiliary store object to the output.
This function is used internally when copying an object with its auxiliary store from the input file, and branch access mode is activated for the event object.
The assumption is that the store object already knows what prefix it should be using. The key parameter only specifies under what ID the object should be handled in the output object list.
| store | The store object to connect to the output |
| key | The "key" with which to record the object |
StatusCode tyoes Definition at line 1964 of file Control/xAODRootAccess/Root/TEvent.cxx.
|
inherited |
Add an output object to the event.
|
inherited |
Add an output object to the event.
|
overrideprotectedvirtualinherited |
Record an object into a connected output file.
This is the function doing the heavy lifting when recording a new object into the output tree/file.
It makes sure that the object is saved together with all of its dynamic auxiliary data if it has any.
| obj | A typeless pointer to the object that we want to record |
| typeName | The type name of the output object |
| key | The key (branch name) of the object to record |
| overwrite | Flag selecting if it is allowed to overwrite an already existing object (used internally) |
| metadata | Flag selecting if we are writing an event or a metadata object |
| isOwner | Flag selecting if we should take ownership of the object or not |
StatusCode tyoes Implements xAOD::Event.
Definition at line 1638 of file Control/xAODRootAccess/Root/TEvent.cxx.
|
inherited |
Record an object into a connected output file.
|
inherited |
Add an auxiliary store object to the output.
This function can be used to create/retrieve a ROOT-specific auxiliary object container that can be used to write information in the output file.
Any auxiliary information written this way will however only be readable in ROOT, using the kBranchAccess option.
| key | The name/prefix of the auxiliary store object/branches |
| type | The type of the auxiliary store (object/container) |
Definition at line 562 of file Control/xAODRootAccess/Root/TEvent.cxx.
|
protectedinherited |
Function setting up an existing auxiliary store for writing.
Definition at line 2347 of file Control/xAODRootAccess/Root/TEvent.cxx.
|
overrideprotectedvirtualinherited |
Record an auxiliary store into a connected output file.
Implements xAOD::Event.
Definition at line 1769 of file Control/xAODRootAccess/Root/TEvent.cxx.
|
inherited |
Add an object to the output file's metadata, explicitly taking ownership of it.
|
inherited |
Add an object to the output file's metadata.
|
overrideprotectedinherited |
Record an object in the store.
Definition at line 309 of file EventIProxyDict.cxx.
|
protectedinherited |
Internal function for recording an object into the output.
|
overrideprotectedinherited |
Remember an additional mapping from key to string/CLID.
Definition at line 304 of file EventIProxyDict.cxx.
|
inherited |
Remove an incident listener object.
This function allows us to remove a listener when for instance a metadata tool is deleted during a job.
| listener | Pointer to the listener that should be removed |
StatusCode types Definition at line 126 of file EventCore.cxx.
|
inherited |
Retrieve either an input or an output object from the event.
|
inherited |
Function retrieving an object from the event (constant version)
|
inherited |
Function retrieving an object from the event (constant version)
|
inherited |
Retrieve an output object from the event.
|
inherited |
Retrieve an input metadata object.
|
inherited |
Retrieve an output metadata object.
|
inherited |
Retrieve an output metadata object.
|
inherited |
|
inherited |
Configure which dynamic variables to write out for a given store.
This function receives the rules for selecting which dynamic auxiliary branches should be written for a given container, in the exact same format in which we need to set it in the Athena output ItemList.
| containerKey | The name of the auxiliary container in question |
| itemList | The variable list according to the formatting rules |
Definition at line 71 of file EventCore.cxx.
|
overrideprotectedvirtualinherited |
Function connecting a DV object to its auxiliary store.
Every time a DataVector is read in from the input for a new TTree entry, one needs to re-connect it with its auxiliary store.
This function takes care of this.
| mgr | The manager object of the DV container |
| metadata | Flag specifying whether we're dealing with a metadata or event data object |
StatusCode types Implements xAOD::Event.
Definition at line 1465 of file Control/xAODRootAccess/Root/TEvent.cxx.
|
inherited |
Change the current logging level.
Use this rather than msg().setLevel() for proper operation with MT.
Definition at line 28 of file AthMessaging.cxx.
|
protectedinherited |
Function adding dynamic variable reading capabilities to an auxiliary store object.
This function is used by connectBranch(...) and connectMetaBranch(...) to set up auxiliary store type objects correctly for accessing dynamic variables from the input file.
| mgr | The object manager of the auxiliary store object |
| tree | The tree to read dynamic variables from |
StatusCode types Definition at line 2041 of file Control/xAODRootAccess/Root/TEvent.cxx.
|
overrideprotectedinherited |
Find the string corresponding to a given key.
Definition at line 289 of file EventIProxyDict.cxx.
| xAOD::TEvent::TEvent |
| xAOD::TEvent::TEvent |
| xAOD::TEvent::TEvent |
|
inherited |
Function checking if an object is already in memory.
|
protectedinherited |
Internal function checking if an object is already in memory.
|
inherited |
Function checking if a meta-object is already in memory.
|
inherited |
Connect the object to an output file.
This function should be called on a file opened be the user, before any event processing would occur.
It sets up the output event tree.
| file | The file that the event data should be written to |
| autoFlush | The auto-flush setting to use on the output TTree |
| treeName | Name of the output event tree |
StatusCode tyoes Definition at line 408 of file Control/xAODRootAccess/Root/TEvent.cxx.
|
mutableprotectedinherited |
|
staticconstexprinherited |
Key for retrieving the "default" object of a given type.
Definition at line 35 of file TVirtualEvent.h.
Default name of the event tree.
Name of the event tree.
Definition at line 91 of file Control/xAODRootAccess/xAODRootAccess/TEvent.h.
|
staticconstexprinherited |
Mask for the keys, used mostly internally.
Definition at line 37 of file TVirtualEvent.h.
|
protectedinherited |
|
protectedinherited |
The auxiliary access mode.
Definition at line 190 of file Control/xAODRootAccess/xAODRootAccess/TEvent.h.
|
mutableprotectedinherited |
|
protectedinherited |
The entry to look at from the input tree.
Definition at line 206 of file Control/xAODRootAccess/xAODRootAccess/TEvent.h.
|
mutableprivateinherited |
MessageSvc pointer.
Definition at line 135 of file AthMessaging.h.
|
protectedinherited |
The (optional) chain provided as input.
Definition at line 198 of file Control/xAODRootAccess/xAODRootAccess/TEvent.h.
|
protectedinherited |
Optional object for tracking the state changes of an input TChain.
Definition at line 200 of file Control/xAODRootAccess/xAODRootAccess/TEvent.h.
|
protectedinherited |
Pointer to the metadata tree in the input file.
Definition at line 204 of file Control/xAODRootAccess/xAODRootAccess/TEvent.h.
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
The main tree that we are reading from.
Definition at line 193 of file Control/xAODRootAccess/xAODRootAccess/TEvent.h.
|
protectedinherited |
Internal status flag showing that an input file is open, but it doesn't contain an event tree.
Definition at line 196 of file Control/xAODRootAccess/xAODRootAccess/TEvent.h.
|
protectedinherited |
The number of the currently open tree in the input chain.
Definition at line 202 of file Control/xAODRootAccess/xAODRootAccess/TEvent.h.
|
protectedinherited |
|
mutableprivateinherited |
Current logging level.
Definition at line 138 of file AthMessaging.h.
|
mutableprivateinherited |
MsgStream instance (a std::cout like with print-out levels)
Definition at line 132 of file AthMessaging.h.
|
protectedinherited |
|
privateinherited |
Message source name.
Definition at line 129 of file AthMessaging.h.
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
The tree that we are writing to.
Definition at line 209 of file Control/xAODRootAccess/xAODRootAccess/TEvent.h.
|
protectedinherited |
1.8.18