 |
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef XAODROOTACCESSINTERFACES_TVIRTUALEVENT_H
6 #define XAODROOTACCESSINTERFACES_TVIRTUALEVENT_H
40 template<
typename T >
44 template<
typename T >
53 virtual const std::string&
getName(
const void*
obj )
const = 0;
60 const std::type_info& ti ) = 0;
63 const std::type_info& ti,
73 #endif // XAODROOTACCESSINTERFACES_TVIRTUALEVENT_H
static constexpr sgkey_t DEFAULT_KEY
Key for retrieving the "default" object of a given type.
Base interface for getting objects out of the input file.
virtual const void * getInputObject(sgkey_t key, const std::type_info &ti, bool silent=false)=0
Function for retrieving an input object in a non-template way.
virtual const std::string & getName(const void *obj) const =0
Function returning the key describing a known object.
static constexpr sgkey_t KEY_MASK
Mask for the keys, used mostly internally.
virtual sgkey_t getHash(const std::string &key) const =0
Function returning the hash describing an object's name/key.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
virtual sgkey_t getKey(const void *obj) const =0
Function returning the hash describing a known object.
virtual ~TVirtualEvent()=default
Virtual destructor to make vtable happy.
uint32_t sgkey_t
Type used for hashed StoreGate key+CLID pairs.
virtual void * getOutputObject(sgkey_t key, const std::type_info &ti)=0
Function for retrieving an output object in a non-template way.
bool retrieve(const T *&obj, sgkey_t key=DEFAULT_KEY, bool silent=false)
Function retrieving an object from the event (constant version)
bool retrieve(const T *&obj, const std::string &key, bool silent=false)
Function retrieving an object from the event (constant version)
Define the type used for hashed StoreGate key+CLID pairs.
def silent(func)
Redirect stdout/err to /dev/null Useful wrapper to get rid of ROOT verbosity...
virtual const std::string & getName(sgkey_t hash) const =0
Function returning the key describing a known object.