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 >
61 bool contains(
const std::string& name )
const;
63 template<
typename T >
67 template<
typename T >
71 template<
typename T >
72 StatusCode
retrieve( T*& pobj,
const std::string& name );
74 template<
typename T >
75 StatusCode
retrieve(
const T*& pobj,
const std::string& name )
const;
78 template<
typename T >
79 StatusCode
record( std::unique_ptr<T> pobj,
const std::string& cname );
82 template<
typename T >
83 StatusCode
record( T* pobj,
const std::string& cname );
86 template<
typename T >
87 StatusCode
overwrite( T* pobj,
const std::string& name,
88 bool allowMods,
bool resetOnly =
true,
89 bool noHist =
false );
95 template<
typename T >
96 void keys( std::vector< std::string >& vkeys )
const;
StatusCode retrieve(T *&pobj, const std::string &name)
Retrieve a container from memory.
xAOD::TEvent * event() const
Return the underlying event manager.
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 initialize() const
Function initialising the object.
void keys(std::vector< std::string > &vkeys) const
provide list of all keys associated with an object.
StatusCode retrieve(const T *&pobj, const std::string &name) const
Retrieve a container from the input file or the memory.
bool contains(const std::string &name) const
Check if an object is available for constant access.
xAOD::TStore * m_ptds
Pointer to the TStore that this object interacts with.
StatusCode record(std::unique_ptr< T > pobj, const std::string &cname)
Record an object/container using a smart pointer for ownership.
T * retrieve(const std::string &name) const
Function retrieving a constant or non-constant object.
StatusCode record(T *pobj, const std::string &cname)
Record an object/container.
xAOD::TStore * tds() const
Return the underlying transient data store.
xAOD::TEvent * m_pevm
Pointer to the TEvent that this object interacts with.
bool transientContains(const std::string &name) const
Check if an object is available for non-constant access.
SgTEvent(xAOD::TEvent *pevm=0, xAOD::TStore *ptds=0)
Constructor specifying concrete TEvent and TStore objects.
Tool for accessing xAOD files outside of Athena.
A relatively simple transient store for objects created in analysis.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.