 |
Belle II Software
release-05-02-19
|
13 #include <framework/datastore/DataStore.h>
14 #include <framework/datastore/StoreAccessorBase.h>
97 const std::string& name,
125 bool isRequired(
const std::string& name =
"");
135 bool isOptional(
const std::string& name =
"");
161 bool assign(TObject*
object,
bool replace =
false);
169 bool create(
bool replace =
false);
bool registerInDataStore(DataStore::EStoreFlags storeFlags)
Register the object in the DataStore.
TObject * obj() const
Returns the attached DataStore object, or nullptr if no valid object exists.
bool isValid() const
Check whether the object was registered and created.
PyStoreObj(const std::string &name, DataStore::EDurability durability=DataStore::EDurability::c_Event)
constructor.
static std::vector< std::string > list(DataStore::EDurability durability=DataStore::EDurability::c_Event)
Return list of available objects for given durability.
EStoreFlags
Flags describing behaviours of objects etc.
Wraps a stored array/object, stored under unique (name, durability) key.
static void printList(DataStore::EDurability durability=DataStore::EDurability::c_Event)
Print list of available objects for given durability.
Base class for StoreObjPtr and StoreArray for easier common treatment.
a (simplified) python wrapper for StoreObjPtr.
StoreEntry * m_storeEntry
Pointer to the DataStore entry - serves as an internal cache omitting repeated look up from the DataS...
TObject * operator->() const
Returns the attached DataStore object, or nullptr if no valid object exists.
bool hasValidClass() const
Check whether a TClass for the contained object could be determined.
void ensureAttached() const
Ensure that contained TObject has been attached to a memory location on the DataStore.
Abstract base class for different kinds of events.
bool isOptional(const std::string &name="")
Tell the DataStore about an optional input.
StoreAccessorBase m_storeAccessor
Store accessor to retrieve the object.
bool create(bool replace=false)
Create default constructed object in the DataStore.
TObject * ptr
The pointer to the returned object, either equal to 'object' or null, depending on wether the object ...
bool isRequired(const std::string &name="")
Ensure this object has been registered previously.
void attach() const
Lookup the store entry and cache a pointer to it.
bool assign(TObject *object, bool replace=false)
Assign 'object' to the accessor.
EDurability
Durability types.