CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
edm::RunID Class Reference

#include <RunID.h>

Public Member Functions

RunID next () const
 
bool operator!= (RunID const &iRHS) const
 
bool operator< (RunID const &iRHS) const
 
bool operator<= (RunID const &iRHS) const
 
bool operator== (RunID const &iRHS) const
 
bool operator> (RunID const &iRHS) const
 
bool operator>= (RunID const &iRHS) const
 
RunID previous () const
 
RunNumber_t run () const
 
 RunID ()
 
 RunID (RunNumber_t iRun)
 

Static Public Member Functions

static RunID firstValidRun ()
 
static RunNumber_t maxRunNumber ()
 

Private Attributes

RunNumber_t run_
 

Detailed Description

Description: Holds run number

Usage: <usage>

Definition at line 28 of file RunID.h.

Constructor & Destructor Documentation

◆ RunID() [1/2]

edm::RunID::RunID ( )
inline

Definition at line 30 of file RunID.h.

Referenced by firstValidRun(), next(), and previous().

◆ RunID() [2/2]

edm::RunID::RunID ( RunNumber_t  iRun)
inlineexplicit

Definition at line 31 of file RunID.h.

31 : run_(iRun) {}

Member Function Documentation

◆ firstValidRun()

static RunID edm::RunID::firstValidRun ( )
inlinestatic

Definition at line 58 of file RunID.h.

58 { return RunID(1); }

References RunID().

Referenced by edm::SetRunHelper::overrideRunNumber().

◆ maxRunNumber()

static RunNumber_t edm::RunID::maxRunNumber ( )
inlinestatic

Definition at line 56 of file RunID.h.

56 { return 0xFFFFFFFFU; }

References mitigatedMETSequence_cff::U.

◆ next()

RunID edm::RunID::next ( void  ) const
inline

Definition at line 39 of file RunID.h.

39 { return RunID(run_ + 1); }

References run_, and RunID().

◆ operator!=()

bool edm::RunID::operator!= ( RunID const &  iRHS) const
inline

Definition at line 48 of file RunID.h.

48 { return !(*this == iRHS); }

◆ operator<()

bool edm::RunID::operator< ( RunID const &  iRHS) const
inline

Definition at line 50 of file RunID.h.

50 { return run_ < iRHS.run_; }

References run_.

◆ operator<=()

bool edm::RunID::operator<= ( RunID const &  iRHS) const
inline

Definition at line 51 of file RunID.h.

51 { return run_ <= iRHS.run_; }

References run_.

◆ operator==()

bool edm::RunID::operator== ( RunID const &  iRHS) const
inline

Definition at line 47 of file RunID.h.

47 { return iRHS.run_ == run_; }

References run_.

◆ operator>()

bool edm::RunID::operator> ( RunID const &  iRHS) const
inline

Definition at line 52 of file RunID.h.

52 { return run_ > iRHS.run_; }

References run_.

◆ operator>=()

bool edm::RunID::operator>= ( RunID const &  iRHS) const
inline

Definition at line 53 of file RunID.h.

53 { return run_ >= iRHS.run_; }

References run_.

◆ previous()

RunID edm::RunID::previous ( ) const
inline

Definition at line 40 of file RunID.h.

40  {
41  if (run_ != 0) {
42  return RunID(run_ - 1);
43  }
44  return RunID(0);
45  }

References run_, and RunID().

◆ run()

RunNumber_t edm::RunID::run ( ) const
inline

Member Data Documentation

◆ run_

RunNumber_t edm::RunID::run_
private

Definition at line 67 of file RunID.h.

Referenced by next(), operator<(), operator<=(), operator==(), operator>(), operator>=(), previous(), and run().

edm::invalidRunNumber
const RunNumber_t invalidRunNumber
Definition: RunLumiEventNumber.h:18
edm::RunID::RunID
RunID()
Definition: RunID.h:30
mitigatedMETSequence_cff.U
U
Definition: mitigatedMETSequence_cff.py:36
edm::RunID::run_
RunNumber_t run_
Definition: RunID.h:67