![]() |
ATLAS Offline Software
|
Python interface to xAOD::REvent.
More...
#include <RPyEvent.h>
Public Types | |
| using | sgkey_t = SG::sgkey_t |
Public Member Functions | |
| PyObject * | pyRetrieve (const std::string &key) |
| Return the object with a given key as a PyObject. | |
| bool | pyContains (const std::string &key, const std::string &type) |
| Function checking if an object is available from the store. | |
| bool | pyTransientContains (const std::string &key, const std::string &type) const |
| Function checking if an object is already in memory. | |
| REvent () | |
| Default constructor. | |
| 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) | |
| template<typename T> | |
| bool | retrieve (const T *&obj, const std::string &key, bool silent=false) |
| Function retrieving an object from the event (constant version) | |
| void | setLevel (MSG::Level lvl) |
| Change the current logging level. | |
Setup functions | |
| StatusCode | readFrom (std::string_view fileName) |
| Set up the reading of an input file. | |
Persistent data accessor/modifier functions | |
| ::Long64_t | getEntries () const |
| Get how many entries are available from the current input file(s) | |
| ::Int_t | getEntry (::Long64_t entry, ::Int_t getall=0) |
| Function loading a given entry of the input TTree. | |
Event data accessor/modifier functions | |
| template<typename T> | |
| StatusCode | record (T *obj, const std::string &key) |
| Add an output object to the event. | |
| 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. | |
| std::string | dump () |
| Function creating a user-readable dump of the current input. | |
| void | printIOStats () const |
| Function printing the I/O statistics of the current process. | |
| template<typename T> | |
| bool | contains (const std::string &key) |
| Function checking if an object is available from the store. | |
| template<typename T> | |
| bool | transientContains (const std::string &key) const |
| Function checking if an object is already in memory. | |
| 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. | |
| template<typename T> | |
| StatusCode | retrieve (const T *&obj, const std::string &key) |
| Retrieve either an input or an output object from the event. | |
| template<typename T> | |
| StatusCode | retrieve (T *&obj, const std::string &key) |
| Retrieve an output object from the event. | |
| StatusCode | copy (const std::string &pattern=".*") |
| Copy an object directly from the input to the output. | |
Setup functions | |
| void | setActive () const |
| Set this event object as the currently active one. | |
| void | setAuxItemList (const std::string &containerKey, const std::string &itemList) |
| Configure which dynamic variables to write out for a given store. | |
| StatusCode | addListener (TVirtualIncidentListener *listener) |
| Register an incident listener object. | |
| StatusCode | removeListener (TVirtualIncidentListener *listener) |
| Remove an incident listener object. | |
| void | clearListeners () |
| Remove all listeners from the object. | |
| StatusCode | addNameRemap (const std::string &onfile, const std::string &newName) |
| Add a name re-mapping rule. | |
| void | clearNameRemap () |
| Clear the current name re-mapping. | |
| void | printNameRemap () const |
| Print the current name re-mapping rules. | |
| void | printProxyWarnings (bool value=true) |
| Enable warnings associated with broken element links. | |
Persistent data accessor/modifier functions | |
| const EventFormat * | inputEventFormat () const |
| Get information about the input objects. | |
| const EventFormat * | outputEventFormat () const |
| Get information about the output objects. | |
Metadata accessor/modifier functions | |
| template<typename T> | |
| bool | containsMeta (const std::string &key) |
| Function checking if a meta-object is available from the store. | |
| template<typename T> | |
| bool | transientContainsMeta (const std::string &key) const |
| Function checking if a meta-object is already in memory. | |
| template<typename T> | |
| StatusCode | metaKeys (std::vector< std::string > &vkeys) const |
| Provide a list of all metadata object keys associated with a specific type. | |
| template<typename T> | |
| StatusCode | retrieveMetaInput (const T *&obj, const std::string &key) |
| Retrieve an input metadata object. | |
| template<typename T> | |
| StatusCode | retrieveMetaOutput (const T *&obj, const std::string &key) |
| Retrieve an output metadata object. | |
| template<typename T> | |
| StatusCode | retrieveMetaOutput (T *&obj, const std::string &key) |
| Retrieve an output metadata object. | |
| template<typename T> | |
| StatusCode | recordMeta (T *obj, const std::string &key) |
| Add an object to the output file's metadata. | |
| 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. | |
Functions providing the same interface as AthMessaging | |
| bool | msgLvl (const MSG::Level lvl) const |
| Test the output level of the object. | |
| MsgStream & | msg () const |
| The standard message stream. | |
| MsgStream & | msg (const MSG::Level lvl) const |
| The standard message stream. | |
Static Public Attributes | |
| static constexpr sgkey_t | DEFAULT_KEY = ~static_cast<sgkey_t>(0) |
| Key for retrieving the "default" object of a given type. | |
| static constexpr sgkey_t | KEY_MASK = DEFAULT_KEY >> 2 |
| Mask for the keys, used mostly internally. | |
Protected Types | |
| using | Object_t |
| Definition of the internal data structure type. | |
Protected Member Functions | |
| bool | contains (const std::string &key, const std::type_info &ti, bool metadata) |
| Internal function checking if an object is in the input. | |
| bool | transientContains (const std::string &key, const std::type_info &ti, bool metadata) const |
| Internal function checking if an object is already in memory. | |
| 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. | |
| 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. | |
| 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. | |
Functions implementing the IProxyDict interface | |
| SG::DataProxy * | proxy (const void *const pTransient) const override |
| get proxy for a given data object address in memory | |
| SG::DataProxy * | proxy (const CLID &id, const std::string &key) const override |
| get proxy with given id and key. Returns 0 to flag failure | |
| SG::DataProxy * | proxy_exact (SG::sgkey_t sgkey) const override |
| Get proxy given a hashed key+clid. | |
| StatusCode | addToStore (CLID id, SG::DataProxy *proxy) override |
| Add a new proxy to the store. | |
| std::vector< const SG::DataProxy * > | proxies () const override |
| return the list of all current proxies in store | |
| SG::sgkey_t | stringToKey (const std::string &str, CLID clid) override |
| Find the string corresponding to a given key. | |
| const std::string * | keyToString (SG::sgkey_t key) const override |
| Find the string corresponding to a given key. | |
| const std::string * | keyToString (SG::sgkey_t key, CLID &clid) const override |
| Find the string and CLID corresponding to a given key. | |
| void | registerKey (SG::sgkey_t key, const std::string &str, CLID clid) override |
| Remember an additional mapping from key to string/CLID. | |
| SG::DataProxy * | recordObject (SG::DataObjectSharedPtr< DataObject > obj, const std::string &key, bool allowMods, bool returnExisting) override |
| Record an object in the store. | |
| const std::string & | name () const override |
| Get the name of the instance. | |
Helper functions for the IProxyDict interface | |
| const xAOD::EventFormatElement * | getEventFormatElement (SG::sgkey_t sgkey) const |
| Get the metadata object for a given "SG key". | |
| const BranchInfo * | getBranchInfo (SG::sgkey_t sgkey) const |
| Get the object describing one object/branch. | |
Protected Attributes | |
| Object_t | m_inputObjects |
| Collection of all the managed input objects. | |
| std::set< std::string > | m_inputMissingObjects |
| Objects that have been asked for, but were found to be missing in the current input. | |
| Object_t | m_outputObjects |
| Collection of all the managed output object. | |
| Object_t | m_inputMetaObjects |
| Collection of all the managed input meta-objects. | |
| Object_t | m_outputMetaObjects |
| Collection of all the managed output meta-objects. | |
| EventFormat | m_inputEventFormat |
| Format of the current input file. | |
| EventFormat * | m_outputEventFormat = nullptr |
| Format of the current output file. | |
| std::unordered_map< std::string, std::set< std::string > > | m_auxItemList |
| Rules for selecting which auxiliary branches to write. | |
| std::vector< TVirtualIncidentListener * > | m_listeners |
| Listeners who should be notified when certain incidents happen. | |
| std::unordered_map< std::string, std::string > | m_nameRemapping |
| Container name re-mapping rules. | |
| bool | m_printEventProxyWarnings = false |
| Option to silence common warnings that seem to be harmless. | |
Private Member Functions | |
| StatusCode | initStats () |
| Function to initialise the statistics for all Tree content. | |
| StatusCode | setUpDynamicStore (RObjectManager &mgr, ROOT::RNTupleReader &ntupleReader) |
| event uses RNTupleReader: | |
| void | initMessaging () const |
| Initialize our message level and MessageSvc. | |
Functions implemented from @c xAOD::Event | |
| bool | hasInput () const override |
| Check if an input file is connected to the object. | |
| bool | hasOutput () const override |
| Check if an output file is connected to the object. | |
| 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. | |
| StatusCode | connectObject (const std::string &key, bool silent) override |
| Function setting up access to a particular object. | |
| StatusCode | connectMetaObject (const std::string &key, bool silent) override |
| Function setting up access to a particular metadata object. | |
| StatusCode | connectAux (const std::string &prefix, bool standalone) override |
| Function setting up access to a set of auxiliary branches. | |
| StatusCode | connectMetaAux (const std::string &prefix, bool standalone) override |
| Function setting up access to a set of auxiliary branches for a metadata object. | |
| StatusCode | setAuxStore (const std::string &key, Details::IObjectManager &mgr, bool metadata) override |
| Function connecting a DV object to its auxiliary store. | |
| 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. | |
| StatusCode | recordAux (TVirtualManager &mgr, const std::string &key, bool metadata) override |
| Record an auxiliary store into a connected output file. | |
Private Attributes | |
| std::unique_ptr< ROOT::RNTupleReader > | m_eventReader |
| The main event data reader. | |
| bool | m_inputNTupleIsMissing = false |
| Whether the input has an event RNTuple or not. | |
| std::unique_ptr< ROOT::RNTupleReader > | m_metaReader |
| The metadata reader. | |
| ::Long64_t | m_entry {} |
| The entry to look at from the input tree. | |
| std::string | m_nm |
| Message source name. | |
| boost::thread_specific_ptr< MsgStream > | m_msg_tls |
| MsgStream instance (a std::cout like with print-out levels) | |
| std::atomic< IMessageSvc * > | m_imsg { nullptr } |
| MessageSvc pointer. | |
| std::atomic< MSG::Level > | m_lvl { MSG::NIL } |
| Current logging level. | |
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. | |
| SG::sgkey_t | getKey (const void *obj) const override |
| Function returning the hash describing a known object. | |
| const std::string & | getName (const void *obj) const override |
| Function returning the key describing a known object. | |
| const std::string & | getName (SG::sgkey_t hash) const override |
| Function returning the key describing a known object. | |
| void * | getOutputObject (SG::sgkey_t key, const std::type_info &ti) override |
| Function for retrieving an output object in a non-template way. | |
| 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. | |
Variable(s) used in the @c IProxyDict implementation | |
| using | upgrade_mutex_t = AthContainers_detail::upgrade_mutex |
| Mutex type for multithread synchronization. | |
| using | upgrading_lock_t |
| Lock type for multithread synchronization. | |
| upgrade_mutex_t | m_branchesMutex |
| Mutex for multithread synchronization. | |
| SG::SGKeyMap< BranchInfo > m_branches | ATLAS_THREAD_SAFE |
| Map from hashed sgkey to BranchInfo. | |
Python interface to xAOD::REvent.
In order to make it possible to use python objects with an xAOD::Experimental::REvent, this class extends xAOD::Experimental::REvent with some non-template functions that are more convenient to use from Python.
Definition at line 31 of file RPyEvent.h.
|
protectedinherited |
|
inherited |
Definition at line 29 of file TVirtualEvent.h.
|
protectedinherited |
|
protectedinherited |
Lock type for multithread synchronization.
|
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 |
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.
|
overrideprivatevirtualinherited |
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 RAuxStore, 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 |
kTRUE if the connection was successful, or kFALSE if it was not Implements xAOD::Event.
Definition at line 593 of file REvent.cxx.
|
overrideprivatevirtualinherited |
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 |
Implements xAOD::Event.
Definition at line 665 of file REvent.cxx.
|
overrideprivatevirtualinherited |
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 |
Implements xAOD::Event.
Definition at line 502 of file REvent.cxx.
|
overrideprivatevirtualinherited |
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 field of the input RNTuple.
The type that is read in to memory is not actually determined by the type written to the ntuple itself, but from the xAOD::EventFormat object. Which is there to make it possible to possibly use ROOT read rules 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 field can't be connected to |
StatusCode values Implements xAOD::Event.
Definition at line 364 of file REvent.cxx.
|
inherited |
Function checking if an object is available from the store.
|
protectedinherited |
Internal function checking if an object is in the input.
|
inherited |
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.
|
protectedinherited |
Get the object describing one object/branch.
Definition at line 347 of file EventIProxyDict.cxx.
|
inherited |
Get how many entries are available from the current input file(s)
Definition at line 264 of file REvent.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 ntuple.
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 290 of file REvent.cxx.
|
protectedinherited |
Get the metadata object for a given "SG key".
Definition at line 321 of file EventIProxyDict.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.
|
overridevirtualinherited |
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.
|
overrideprivatevirtualinherited |
Function determining the list keys associated with a type name.
Implements xAOD::Event.
Definition at line 339 of file REvent.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.
|
overrideprivatevirtualinherited |
Check if an input file is connected to the object.
Implements xAOD::Event.
Definition at line 329 of file REvent.cxx.
|
overrideprivatevirtualinherited |
Check if an output file is connected to the object.
Implements xAOD::Event.
Definition at line 334 of file REvent.cxx.
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
|
privateinherited |
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 values Definition at line 867 of file REvent.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.
|
inherited |
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 |
return the list of all current proxies in store
Definition at line 275 of file EventIProxyDict.cxx.
|
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 |
Get proxy given a hashed key+clid.
Definition at line 222 of file EventIProxyDict.cxx.
| bool xAOD::Experimental::RPyEvent::pyContains | ( | const std::string & | key, |
| const std::string & | type ) |
Function checking if an object is available from the store.
Definition at line 66 of file RPyEvent.cxx.
| PyObject * xAOD::Experimental::RPyEvent::pyRetrieve | ( | const std::string & | key | ) |
Return the object with a given key as a PyObject.
Definition at line 21 of file RPyEvent.cxx.
| bool xAOD::Experimental::RPyEvent::pyTransientContains | ( | const std::string & | key, |
| const std::string & | type ) const |
Function checking if an object is already in memory.
Definition at line 90 of file RPyEvent.cxx.
|
inherited |
Set up the reading of an 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.
| fileName | name of file needed for metadata access |
Definition at line 90 of file REvent.cxx.
|
inherited |
Add an output object to the event, explicitly taking ownership of it.
|
inherited |
Add an output object to the event.
|
overrideprivatevirtualinherited |
Record an object into a connected output file.
Implements xAOD::Event.
Definition at line 848 of file REvent.cxx.
|
overrideprivatevirtualinherited |
Record an auxiliary store into a connected output file.
Implements xAOD::Event.
Definition at line 855 of file REvent.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 |
Retrieve 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 input metadata object.
|
inherited |
Retrieve an output metadata object.
|
inherited |
Retrieve an output metadata object.
| xAOD::Experimental::REvent::REvent | ( | ) |
|
inherited |
Set this event object as the currently active one.
Definition at line 54 of file EventCore.cxx.
|
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.
|
overrideprivatevirtualinherited |
Function connecting a DV object to its auxiliary store.
Every time a DataVector is read in from the input for a new RNTuple entry, one needs to re-connect it with its auxiliary store.
This function takes care of this.
| key | The key (field name) of the object whose auxiliary store should be set up |
| 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 740 of file REvent.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.
|
privateinherited |
event uses RNTupleReader:
This function is used by connectObject(...) and connectMetaObject(...) 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 |
| reader | The RNTuple reader to read dynamic variables from |
StatusCode types Definition at line 960 of file REvent.cxx.
|
overrideprotectedinherited |
Find the string corresponding to a given key.
Definition at line 289 of file EventIProxyDict.cxx.
|
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.
|
mutableprotectedinherited |
Map from hashed sgkey to BranchInfo.
Key for retrieving the "default" object of a given type.
Definition at line 35 of file TVirtualEvent.h.
|
staticconstexprinherited |
Mask for the keys, used mostly internally.
Definition at line 37 of file TVirtualEvent.h.
|
protectedinherited |
|
mutableprotectedinherited |
|
privateinherited |
|
privateinherited |
|
mutableprivateinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
privateinherited |
|
protectedinherited |
|
protectedinherited |
|
mutableprivateinherited |
|
privateinherited |
|
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 |