Belle II Software light-2406-ragdoll
|
Class for handling changing conditions as a function of event number. More...
#include <EventDependency.h>
Public Member Functions | |
EventDependency (TObject *object=0, bool owner=true) | |
Constructor for event depenent conditions. | |
void | add (unsigned int event, TObject *object) |
Add an object to the intra run dependency. | |
const std::vector< unsigned int > & | getEventNumbers () const |
Get a vector with event number boundaries In case of no intra-run dependence, the vector is empty In general for n payloads there are n-1 boundaries. | |
TObject * | getObjectByIndex (int indx) const |
Get the stored object according to indx. | |
const std::vector< unsigned int > & | getBoundaries () const override |
Get a vector with the intra-run boundaries (in this case, event numbers). | |
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. | |
Protected Member Functions | |
virtual int | getIndex (const EventMetaData &event) const override |
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. | |
Private Member Functions | |
ClassDefOverride (EventDependency, 1) | |
class for event number dependent conditions. | |
Private Attributes | |
std::vector< unsigned int > | m_eventNumbers |
Vector of event number boundaries. | |
Class for handling changing conditions as a function of event number.
Definition at line 22 of file EventDependency.h.
|
inlineexplicit |
Constructor for event depenent conditions.
object | the first valid object in the run. |
owner | flag that indicates whether the EventDependency takes ownership of the payload objects or not. |
Definition at line 30 of file EventDependency.h.
void add | ( | unsigned int | event, |
TObject * | object | ||
) |
Add an object to the intra run dependency.
Note that the EventDependency object takes ownership of the added object by default.
event | the event number from which on the given conditions object is valid. |
object | the object which is valid starting from the given event number. |
Definition at line 14 of file EventDependency.cc.
|
inlineinherited |
Get any of the objects.
To be used only by the DBStore for type checking.
Definition at line 53 of file IntraRunDependency.h.
|
inlineoverridevirtual |
Get a vector with the intra-run boundaries (in this case, event numbers).
In case of no intra-run dependence, the vector is empty. In general for n payloads there are n-1 boundaries.
Implements IntraRunDependency.
Definition at line 58 of file EventDependency.h.
|
inline |
Get a vector with event number boundaries In case of no intra-run dependence, the vector is empty In general for n payloads there are n-1 boundaries.
Definition at line 45 of file EventDependency.h.
|
overrideprotectedvirtual |
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. |
Implements IntraRunDependency.
Definition at line 21 of file EventDependency.cc.
|
inlineinherited |
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 |
Get the stored object according to indx.
indx | index which can have values from 0 to getEventNumbers() - 1 |
Definition at line 51 of file EventDependency.h.
|
inlineinherited |
Flag for ownership.
Definition at line 59 of file IntraRunDependency.h.
|
private |
Vector of event number boundaries.
Definition at line 70 of file EventDependency.h.
|
protectedinherited |
Array of intra-run dependent objects.
Definition at line 70 of file IntraRunDependency.h.