Class for handling changing conditions as a function of event number.
More...
#include <EventDependency.h>
|
| EventDependency (TObject *object=0, bool owner=true) |
| Constructor for event depenent conditions. More...
|
|
void | add (unsigned int event, TObject *object) |
| Add an object to the intra run dependency. More...
|
|
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. More...
|
|
TObject * | getObject (const EventMetaData &event) const |
| Get the conditions object that is valid for the given event. More...
|
|
TObject * | getAnyObject () const |
| Get any of the objects. More...
|
|
bool | isOwner () const |
| Flag for ownership. More...
|
|
|
TObjArray | m_objects |
| Array of intra-run dependent objects.
|
|
|
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.
◆ EventDependency()
Constructor for event depenent conditions.
- Parameters
-
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.
IntraRunDependency(TObject *object=0, bool owner=true)
Constructor for intra run depenent conditions.
◆ add()
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.
- Parameters
-
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.
std::vector< unsigned int > m_eventNumbers
Vector of event number boundaries.
TObjArray m_objects
Array of intra-run dependent objects.
◆ getAnyObject()
TObject* getAnyObject |
( |
| ) |
const |
|
inlineinherited |
Get any of the objects.
To be used only by the DBStore for type checking.
- Returns
- any of the intra-run dependent objects.
Definition at line 53 of file IntraRunDependency.h.
◆ getIndex()
Get the index of the object that is valid for the given event.
- Parameters
-
event | meta data of the event for which we want to have the conditions. |
- Returns
- array index of the object valid for the given event.
Implements IntraRunDependency.
Definition at line 21 of file EventDependency.cc.
◆ getObject()
Get the conditions object that is valid for the given event.
- Parameters
-
event | meta data of the event for which we want to have the conditions. |
- Returns
- object valid for the given event.
Definition at line 47 of file IntraRunDependency.h.
◆ getObjectByIndex()
TObject* getObjectByIndex |
( |
int |
indx | ) |
const |
|
inline |
Get the stored object according to indx.
- Parameters
-
Definition at line 51 of file EventDependency.h.
◆ isOwner()
The documentation for this class was generated from the following files: