|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef XAODROOTACCESSINTERFACES_TVIRTUALEVENT_H
6 #define XAODROOTACCESSINTERFACES_TVIRTUALEVENT_H
46 template<
typename T >
50 template<
typename T >
58 template<
typename T >
59 void keys( std::vector< std::string >& vkeys,
67 virtual const std::string&
getName(
const void*
obj )
const = 0;
74 const std::type_info& ti ) = 0;
77 const std::type_info& ti,
80 virtual void getNames(
const std::string& targetClassName,
81 std::vector<std::string>& vkeys,
91 #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 void getNames(const std::string &targetClassName, std::vector< std::string > &vkeys, bool metadata) const =0
Function to retrieve list of keys describing a type name.
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.
void keys(std::vector< std::string > &vkeys, bool metadata=false) const
provide list of all keys associated with provided type.
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.