29 const std::string&
type)
const {
32 ::TClass* cl = ::TClass::GetClass(
type.c_str());
34 ::Warning(
"xAOD::TPyStore::pyContains",
"Type name \"%s\" not known",
40 const std::type_info* ti = cl->GetTypeInfo();
42 ::Warning(
"xAOD::TPyStore::pyContains",
43 "Type \"%s\" doesn't have a proper dictionary",
type.c_str());
64 const std::string&
type)
const {
67 ::TClass* cl = ::TClass::GetClass(
type.c_str());
69 ::Warning(
"xAOD::TPyStore::pyIsConst",
"Type name \"%s\" not known",
75 const std::type_info* ti = cl->GetTypeInfo();
77 ::Warning(
"xAOD::TPyStore::pyIsConst",
78 "Type \"%s\" doesn't have a proper dictionary",
type.c_str());
104 const std::string&
type) {
108 static constexpr bool IS_OWNER =
true;
109 static constexpr bool IS_CONST =
false;
114 return StatusCode::SUCCESS;
#define RETURN_CHECK(CONTEXT, EXP)
Helper macro for checking return codes in a compact form in the code.
void dump() const
Print the contents of the store using a Python friendly function.
StatusCode pyRecord(void *obj, const std::string &key, const std::string &type)
Record an object into the store in a typeless way.
bool pyIsConst(const std::string &key, const std::string &type) const
Function checking if an object with a given key and type is constant.
bool pyContains(const std::string &key, const std::string &type) const
Function checking if an object with a given key and type is available.
void print() const
Print the current contents of the transient store.
StatusCode record(T *obj, const std::string &key)
Add an object to the store.
::Bool_t contains(const std::string &key) const
Function checking if an object is available from the store.
::Bool_t isConst(const std::string &key) const
Function checking if an object with a given type is constant.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.