|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef ASGTOOLS_SGTEVENT_H
6 #define ASGTOOLS_SGTEVENT_H
17 #if !defined(XAOD_STANDALONE) && !defined(__CPPCHECK__)
18 # error( "This header should only be used for standalone ASG" )
60 template<
typename T >
63 template<
typename T >
67 template<
typename T >
71 template<
typename T >
74 template<
typename T >
78 template<
typename T >
82 template<
typename T >
86 template<
typename T >
88 bool allowMods,
bool resetOnly =
true,
89 bool noHist =
false );
95 template<
typename T >
96 void keys( std::vector< std::string >& vkeys )
const;
116 #endif // ASGTOOLS_SGTEVENT_H
StatusCode initialize() const
Function initialising the object.
bool contains(const std::string &name) const
Check if an object is available for constant access.
StatusCode retrieve(T *&pobj, const std::string &name)
Retrieve a container from memory.
StatusCode record(std::unique_ptr< T > pobj, const std::string &cname)
Record an object/container using a smart pointer for ownership.
xAOD::TStore * tds() const
Return the underlying transient data store.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
bool transientContains(const std::string &name) const
Check if an object is available for non-constant access.
T * retrieve(const std::string &name) const
Function retrieving a constant or non-constant object.
StatusCode overwrite(T *pobj, const std::string &name, bool allowMods, bool resetOnly=true, bool noHist=false)
Overwrite an object/container in the transient store.
::StatusCode StatusCode
StatusCode definition for legacy code.
xAOD::TEvent * m_pevm
Pointer to the TEvent that this object interacts with.
xAOD::TStore * m_ptds
Pointer to the TStore that this object interacts with.
SgTEvent(xAOD::TEvent *pevm=0, xAOD::TStore *ptds=0)
Constructor specifying concrete TEvent and TStore objects.
Wrapper for TEvent to make it look like StoreGate.
A relatively simple transient store for objects created in analysis.
StatusCode record(T *pobj, const std::string &cname)
Record an object/container.
xAOD::TEvent * event() const
Return the underlying event manager.
StatusCode retrieve(const T *&pobj, const std::string &name) const
Retrieve a container from the input file or the memory.
Tool for accessing xAOD files outside of Athena.
void keys(std::vector< std::string > &vkeys) const
provide list of all keys associated with an object.