 |
ATLAS Offline Software
|
Go to the documentation of this file.
28 efe = ((
ef !=
nullptr) ?
ef->get(
key) :
nullptr);
37 ::TClass*
cl = TClass::GetClass(efe->
className().c_str());
42 const std::type_info* ti =
cl->GetTypeInfo();
49 static constexpr
bool SILENT =
true;
50 static constexpr
bool METADATA =
false;
52 const_cast<void*
>(this->
getInputObject(key, *ti, SILENT, METADATA));
62 return TPython::CPPInstance_FromVoidPtr(
obj, efe->
className().c_str());
69 ::TClass*
cl = ::TClass::GetClass(
type.c_str());
71 ::Warning(
"xAOD::TPyEvent::pyContains",
"Type name \"%s\" not known",
77 const std::type_info* ti =
cl->GetTypeInfo();
79 ::Warning(
"xAOD::TPyEvent::pyContains",
80 "Type \"%s\" doesn't have a proper dictionary",
type.c_str());
85 static constexpr
bool METADATA =
false;
91 const std::string&
type)
const {
94 ::TClass*
cl = ::TClass::GetClass(
type.c_str());
96 ::Warning(
"xAOD::TPyEvent::pyTransientContains",
97 "Type name \"%s\" not known",
type.c_str());
102 const std::type_info* ti =
cl->GetTypeInfo();
104 ::Warning(
"xAOD::TPyEvent::pyTransientContains",
105 "Type \"%s\" doesn't have a proper dictionary",
type.c_str());
SG::SGKeyMap< BranchInfo > m_branches ATLAS_THREAD_SAFE
Map from hashed sgkey to BranchInfo.
bool pyTransientContains(const std::string &key, const std::string &type) const
Function checking if an object is already in memory.
const EventFormat * inputEventFormat() const
Get information about the input objects.
void * getOutputObject(SG::sgkey_t key, const std::type_info &ti) override
Function for retrieving an output object in a non-template way.
const void * getInputObject(SG::sgkey_t key, const std::type_info &ti, bool silent) override
Function for retrieving an input object in a non-template way.
PyObject * pyRetrieve(const std::string &key)
Return the object with a given key as a PyObject.
bool contains(const std::string &key)
Function checking if an object is available from the store.
bool pyContains(const std::string &key, const std::string &type)
Function checking if an object is available from the store.
Python interface to xAOD::REvent.
Define macros for attributes used to control the static checker.
cl
print [x.__class__ for x in toList(dqregion.getSubRegions()) ]
const EventFormat * outputEventFormat() const
Get information about the output objects.
bool transientContains(const std::string &key) const
Function checking if an object is already in memory.