Belle II Software development
|
Base class for handling changing conditions during a run. More...
#include <IntraRunDependency.h>
Public Member Functions | |
IntraRunDependency (TObject *object=0, bool owner=true) | |
Constructor for intra run depenent conditions. | |
virtual | ~IntraRunDependency () |
Destructor. | |
TObject * | getObject (const EventMetaData &event) const |
Get the conditions object that is valid for the given event. | |
TObject * | getAnyObject () const |
Get any of the objects. | |
bool | isOwner () const |
Flag for ownership. | |
virtual const std::vector< unsigned int > & | getBoundaries () const =0 |
Get a vector with the intra-run boundaries. | |
Protected Member Functions | |
virtual int | getIndex (const EventMetaData &event) const =0 |
Get the index of the object that is valid for the given event. | |
ClassDef (IntraRunDependency, 1) | |
base class for intra run dependent conditions. | |
Protected Attributes | |
TObjArray | m_objects |
Array of intra-run dependent objects. | |
Base class for handling changing conditions during a run.
Note that the IntraRunDependency object takes ownership of the individual payload objects by default.
Definition at line 26 of file IntraRunDependency.h.
|
inlineexplicit |
Constructor for intra run depenent conditions.
object | the first valid object in the run. |
owner | flag that indicates whether the IntraRunDependency takes ownership of the payload objects or not. |
Definition at line 34 of file IntraRunDependency.h.
|
inlinevirtual |
Destructor.
Virtual because this is a base class.
Definition at line 40 of file IntraRunDependency.h.
|
inline |
Get any of the objects.
To be used only by the DBStore for type checking.
Definition at line 53 of file IntraRunDependency.h.
|
pure virtual |
Get a vector with the intra-run boundaries.
In case of no intra-run dependence, the vector is empty. In general for n payloads there are n-1 boundaries. The method must be implemented by the derived classes.
Implemented in EventDependency.
|
protectedpure virtual |
Get the index of the object that is valid for the given event.
event | meta data of the event for which we want to have the conditions. |
Implemented in EventDependency.
|
inline |
Get the conditions object that is valid for the given event.
event | meta data of the event for which we want to have the conditions. |
Definition at line 47 of file IntraRunDependency.h.
|
inline |
Flag for ownership.
Definition at line 59 of file IntraRunDependency.h.
|
protected |
Array of intra-run dependent objects.
Definition at line 70 of file IntraRunDependency.h.