Belle II Software development
|
Mergeable object holding (unique) set of (exp,run) pairs. More...
#include <RunRange.h>
Public Member Functions | |
RunRange () | |
Constructor. | |
RunRange (std::vector< Calibration::ExpRun > expRuns) | |
Constructor from vector of ExpRun objects. | |
virtual | ~RunRange () |
Destructor. | |
virtual void | clear () |
Implementation of clearing - resets stored run set. | |
virtual void | merge (const RunRange *other) |
Implementation of merging - other is added to the set (union) | |
void | add (int exp, int run) |
Add an experiment and run number to the set. | |
const std::set< Calibration::ExpRun > & | getExpRunSet () |
Get access to the stored set. | |
IntervalOfValidity | getIntervalOfValidity () |
Make IntervalOfValidity from the set, spanning all runs. Works because sets are sorted by default. | |
Long64_t | Merge (TCollection *hlist) |
Allow merging using TFileMerger if saved directly to a file. | |
void | setGranularity (const std::string &granularity) |
Set the m_granularity to an allowed value. | |
std::string | getGranularity () const |
Gets the m_granularity. | |
void | Reset () |
Root-like Reset function for "template compatibility" with ROOT objects. | |
void | SetDirectory (TDirectory *) |
Root-like SetDirectory function for "template compatibility" with ROOT objects. Does nothing. | |
bool | operator< (const RunRange &other) const |
Comparison operator so that we can use RunRange in a map as a key. | |
Private Attributes | |
std::set< Calibration::ExpRun > | m_expRunSet = {} |
The set of (exp,run) stored in object. | |
std::string | m_granularity = "run" |
granularity used by the collector storing the information. | |
Mergeable object holding (unique) set of (exp,run) pairs.
Definition at line 25 of file RunRange.h.
|
inline |
|
inlineexplicit |
Constructor from vector of ExpRun objects.
Definition at line 32 of file RunRange.h.
|
inlinevirtual |
Destructor.
Definition at line 40 of file RunRange.h.
|
inline |
Add an experiment and run number to the set.
Definition at line 58 of file RunRange.h.
|
inlinevirtual |
Implementation of clearing - resets stored run set.
Definition at line 46 of file RunRange.h.
|
inline |
Get access to the stored set.
Definition at line 64 of file RunRange.h.
|
inline |
Gets the m_granularity.
Definition at line 110 of file RunRange.h.
|
inline |
Make IntervalOfValidity from the set, spanning all runs. Works because sets are sorted by default.
Definition at line 70 of file RunRange.h.
|
inlinevirtual |
Implementation of merging - other is added to the set (union)
Definition at line 52 of file RunRange.h.
|
inline |
Allow merging using TFileMerger if saved directly to a file.
Definition at line 82 of file RunRange.h.
|
inline |
Comparison operator so that we can use RunRange in a map as a key.
Definition at line 117 of file RunRange.h.
|
inline |
Root-like Reset function for "template compatibility" with ROOT objects.
Alias for clear().
Definition at line 112 of file RunRange.h.
|
inline |
Root-like SetDirectory function for "template compatibility" with ROOT objects. Does nothing.
Definition at line 114 of file RunRange.h.
|
inline |
Set the m_granularity to an allowed value.
Definition at line 100 of file RunRange.h.
|
private |
The set of (exp,run) stored in object.
Definition at line 127 of file RunRange.h.
|
private |
granularity used by the collector storing the information.
Definition at line 130 of file RunRange.h.