#include <SgTEvent.h>
Public Member Functions | |
SgTEvent (xAOD::TEvent *pevm=0, xAOD::TStore *ptds=0) | |
Constructor specifying concrete TEvent and TStore objects. | |
xAOD::TEvent * | event () const |
Return the underlying event manager. | |
xAOD::TStore * | tds () const |
Return the underlying transient data store. | |
Functions providing access to the persistent and transient data | |
template<typename T > | |
bool | contains (const std::string &name) const |
Check if an object is available for constant access. | |
template<typename T > | |
bool | transientContains (const std::string &name) const |
Check if an object is available for non-constant access. | |
template<typename T > | |
T * | retrieve (const std::string &name) const |
Function retrieving a constant or non-constant object. | |
template<typename T > | |
StatusCode | retrieve (T *&pobj, const std::string &name) |
Retrieve a container from memory. | |
template<typename T > | |
StatusCode | retrieve (const T *&pobj, const std::string &name) const |
Retrieve a container from the input file or the memory. | |
template<typename T > | |
StatusCode | record (T *pobj, const std::string &cname) |
Record an object/container. | |
template<typename T > | |
StatusCode | overwrite (T *pobj, const std::string &name, bool allowMods, bool resetOnly=true, bool noHist=false) |
Overwrite an object/container in the transient store. |
Wrapper for TEvent to make it look like StoreGate.
In order to be able to interact with xAOD::TEvent using the same sort of code that we use to interact with StoreGateSvc in Athena, we wrap it into such an object.
This class also takes care of placing transient objects into xAOD::TStore.
StatusCode asg::SgTEvent::overwrite | ( | T * | pobj, | |
const std::string & | name, | |||
bool | allowMods, | |||
bool | resetOnly = true , |
|||
bool | noHist = false | |||
) | [inline] |
Overwrite an object/container in the transient store.
Container overwriting is not allowed in standalone mode. The function is just here to allow the compilation of code that was mainly written for the offline environment. (In case the behaviour of the code is chosen according to its runtime configuration.)
As it's a dummy, function parameters are not described here. They are modeled after the StoreGateSvc::overwrite
function.