Belle II Software  release-08-01-10

Mergeable object holding (unique) set of (exp,run) pairs. More...

#include <RunRange.h>

Inheritance diagram for RunRange:
Collaboration diagram for RunRange:

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. More...
 
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.
 

Detailed Description

Mergeable object holding (unique) set of (exp,run) pairs.

Definition at line 25 of file RunRange.h.

Member Function Documentation

◆ Reset()

void Reset ( )
inline

Root-like Reset function for "template compatibility" with ROOT objects.

Alias for clear().

Definition at line 112 of file RunRange.h.

112 {clear();}
virtual void clear()
Implementation of clearing - resets stored run set.
Definition: RunRange.h:46

The documentation for this class was generated from the following file: