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().

RunNumber_t run_
Definition: RunID.h:67
RunNumber_t const invalidRunNumber

◆ RunID() [2/2]

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

Definition at line 31 of file RunID.h.

31 : run_(iRun) {}
RunNumber_t run_
Definition: RunID.h:67

Member Function Documentation

◆ firstValidRun()

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

Definition at line 58 of file RunID.h.

References RunID().

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

58 { return RunID(1); }
RunID()
Definition: RunID.h:30

◆ maxRunNumber()

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

Definition at line 56 of file RunID.h.

References mitigatedMETSequence_cff::U.

56 { return 0xFFFFFFFFU; }

◆ next()

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

Definition at line 39 of file RunID.h.

References run_, and RunID().

39 { return RunID(run_ + 1); }
RunNumber_t run_
Definition: RunID.h:67
RunID()
Definition: RunID.h:30

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

References run_.

50 { return run_ < iRHS.run_; }
RunNumber_t run_
Definition: RunID.h:67

◆ operator<=()

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

Definition at line 51 of file RunID.h.

References run_.

51 { return run_ <= iRHS.run_; }
RunNumber_t run_
Definition: RunID.h:67

◆ operator==()

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

Definition at line 47 of file RunID.h.

References run_.

47 { return iRHS.run_ == run_; }
RunNumber_t run_
Definition: RunID.h:67

◆ operator>()

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

Definition at line 52 of file RunID.h.

References run_.

52 { return run_ > iRHS.run_; }
RunNumber_t run_
Definition: RunID.h:67

◆ operator>=()

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

Definition at line 53 of file RunID.h.

References run_.

53 { return run_ >= iRHS.run_; }
RunNumber_t run_
Definition: RunID.h:67

◆ previous()

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

Definition at line 40 of file RunID.h.

References run_, and RunID().

40  {
41  if (run_ != 0) {
42  return RunID(run_ - 1);
43  }
44  return RunID(0);
45  }
RunNumber_t run_
Definition: RunID.h:67
RunID()
Definition: RunID.h:30

◆ 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().