 |
Belle II Software
release-05-02-19
|
27 class IntervalOfValidity final {
51 bool contains(
const EventMetaData& event)
const;
80 return !(*
this == other);
A class that describes the interval of experiments/runs for which an object in the database is valid.
bool overlaps(const IntervalOfValidity &iov) const
Function that checks the validity interval overlaps with another interval of validity.
static IntervalOfValidity always()
Function that returns an interval of validity that is always valid, c.f.
int checkUpperBound(int experiment, int run) const
Helper function to check whether a given experiment/run number is above or below the upper bound of t...
int checkLowerBound(int experiment, int run) const
Helper function to check whether a given experiment/run number is above or below the lower bound of t...
int m_experimentLow
Lowest experiment number.
IntervalOfValidity()
Default constructor which will create an empty iov.
friend std::istream & operator>>(std::istream &input, IntervalOfValidity &iov)
Input stream operator for reading IoV data from a text file.
~IntervalOfValidity()=default
Destructor.
int m_experimentHigh
Highest experiment number.
IntervalOfValidity overlap(const IntervalOfValidity &iov) const
Function that determines the overlap of the validity interval with another interval of validity.
bool operator==(const IntervalOfValidity &other) const
Check whether two intervals of validity are identical.
int m_runLow
Lowest run number.
Abstract base class for different kinds of events.
bool contains(const EventMetaData &event) const
Function that checks whether the event is inside the validity interval.
int getRunLow() const
Getter for lowest run number.
int m_runHigh
Highest run number.
ClassDefNV(IntervalOfValidity, 2)
describes the interval of experiments/runs for which an object in the database is valid.
bool trimOverlap(IntervalOfValidity &iov, bool trimOlder=true)
Remove the overlap between two intervals of validity by shortening one of them.
bool operator!=(const IntervalOfValidity &other) const
Check whether two intervals of validity are different.
int getExperimentHigh() const
Getter for highest experiment number.
friend std::ostream & operator<<(std::ostream &output, const IntervalOfValidity &iov)
Output stream operator for writing IoV data to a text file.
bool empty() const
Function that checks whether the validity interval is empty.
int getRunHigh() const
Getter for highest run number.
void makeValid()
Helper function to set the interval to empty if the upper bound is below the lower one.
int getExperimentLow() const
Getter for lowest experiment number.