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

Definition at line 20 of file RunID.h.

Constructor & Destructor Documentation

◆ RunID() [1/2]

edm::RunID::RunID ( )
inline

Definition at line 22 of file RunID.h.

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

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

◆ RunID() [2/2]

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

Definition at line 23 of file RunID.h.

23 : run_(iRun) {}
RunNumber_t run_
Definition: RunID.h:52

Member Function Documentation

◆ firstValidRun()

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

Definition at line 48 of file RunID.h.

References RunID().

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

48 { return RunID(1); }
RunID()
Definition: RunID.h:22

◆ maxRunNumber()

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

Definition at line 46 of file RunID.h.

References mitigatedMETSequence_cff::U.

46 { return 0xFFFFFFFFU; }

◆ next()

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

Definition at line 29 of file RunID.h.

References run_, and RunID().

29 { return RunID(run_ + 1); }
RunNumber_t run_
Definition: RunID.h:52
RunID()
Definition: RunID.h:22

◆ operator!=()

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

Definition at line 38 of file RunID.h.

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

◆ operator<()

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

Definition at line 40 of file RunID.h.

References run_.

40 { return run_ < iRHS.run_; }
RunNumber_t run_
Definition: RunID.h:52

◆ operator<=()

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

Definition at line 41 of file RunID.h.

References run_.

41 { return run_ <= iRHS.run_; }
RunNumber_t run_
Definition: RunID.h:52

◆ operator==()

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

Definition at line 37 of file RunID.h.

References run_.

37 { return iRHS.run_ == run_; }
RunNumber_t run_
Definition: RunID.h:52

◆ operator>()

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

Definition at line 42 of file RunID.h.

References run_.

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

◆ operator>=()

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

Definition at line 43 of file RunID.h.

References run_.

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

◆ previous()

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

Definition at line 30 of file RunID.h.

References run_, and RunID().

30  {
31  if (run_ != 0) {
32  return RunID(run_ - 1);
33  }
34  return RunID(0);
35  }
RunNumber_t run_
Definition: RunID.h:52
RunID()
Definition: RunID.h:22

◆ run()

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

Member Data Documentation

◆ run_

RunNumber_t edm::RunID::run_
private

Definition at line 52 of file RunID.h.

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