CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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

Definition at line 31 of file RunID.h.

Constructor & Destructor Documentation

edm::RunID::RunID ( )
inline

Definition at line 37 of file RunID.h.

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

37 : run_(0) {}
RunNumber_t run_
Definition: RunID.h:93
edm::RunID::RunID ( RunNumber_t  iRun)
inlineexplicit

Definition at line 38 of file RunID.h.

38  :
39  run_(iRun) {}
RunNumber_t run_
Definition: RunID.h:93

Member Function Documentation

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

Definition at line 82 of file RunID.h.

References RunID().

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

82  {
83  return RunID(1);
84  }
RunID()
Definition: RunID.h:37
static RunNumber_t edm::RunID::maxRunNumber ( )
inlinestatic

Definition at line 78 of file RunID.h.

78  {
79  return 0xFFFFFFFFU;
80  }
RunID edm::RunID::next ( void  ) const
inline

Definition at line 47 of file RunID.h.

References run_, and RunID().

47  {
48  return RunID(run_+1);
49  }
RunNumber_t run_
Definition: RunID.h:93
RunID()
Definition: RunID.h:37
bool edm::RunID::operator!= ( RunID const &  iRHS) const
inline

Definition at line 60 of file RunID.h.

60  {
61  return !(*this == iRHS);
62  }
bool edm::RunID::operator< ( RunID const &  iRHS) const
inline

Definition at line 64 of file RunID.h.

References run_.

64  {
65  return run_ < iRHS.run_;
66  }
RunNumber_t run_
Definition: RunID.h:93
bool edm::RunID::operator<= ( RunID const &  iRHS) const
inline

Definition at line 67 of file RunID.h.

References run_.

67  {
68  return run_ <= iRHS.run_;
69  }
RunNumber_t run_
Definition: RunID.h:93
bool edm::RunID::operator== ( RunID const &  iRHS) const
inline

Definition at line 57 of file RunID.h.

References run_.

57  {
58  return iRHS.run_ == run_;
59  }
RunNumber_t run_
Definition: RunID.h:93
bool edm::RunID::operator> ( RunID const &  iRHS) const
inline

Definition at line 70 of file RunID.h.

References run_.

70  {
71  return run_ > iRHS.run_;
72  }
RunNumber_t run_
Definition: RunID.h:93
bool edm::RunID::operator>= ( RunID const &  iRHS) const
inline

Definition at line 73 of file RunID.h.

References run_.

73  {
74  return run_ >= iRHS.run_;
75  }
RunNumber_t run_
Definition: RunID.h:93
RunID edm::RunID::previous ( ) const
inline

Definition at line 50 of file RunID.h.

References run_, and RunID().

50  {
51  if(run_ != 0) {
52  return RunID(run_-1);
53  }
54  return RunID(0);
55  }
RunNumber_t run_
Definition: RunID.h:93
RunID()
Definition: RunID.h:37
RunNumber_t edm::RunID::run ( ) const
inline

Member Data Documentation

RunNumber_t edm::RunID::run_
private

Definition at line 93 of file RunID.h.

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