asg::SgTEvent Class Reference

#include <SgTEvent.h>

List of all members.

Public Member Functions

 SgTEvent (xAOD::TEvent *pevm=0, xAOD::TStore *ptds=0)
 Constructor specifying concrete TEvent and TStore objects.
xAOD::TEventevent () const
 Return the underlying event manager.
xAOD::TStoretds () 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 >
Tretrieve (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.

Detailed Description

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.

Author:
David Adams <dladams@bnl.gov>
Attila Krasznahorkay <Attila.Krasznahorkay@cern.ch>
Revision
669898
Date
2015-05-26 15:49:13 +0200 (Tue, 26 May 2015)

Member Function Documentation

template<typename T >
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.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 1 Dec 2017 for RootCore Packages by  doxygen 1.6.1