CMS 3D CMS Logo

DIPLumiSummary.h
Go to the documentation of this file.
1 #ifndef RecoLuminosity_LumiProducer_DIPLumiSummary_h
2 #define RecoLuminosity_LumiProducer_DIPLumiSummary_h
3 #include <iosfwd>
4 #include <string>
8 public:
11  : m_runnum(0), m_ls(0), m_instlumi(0.0), m_dellumi(0.0), m_reclumi(0.0), m_deadfrac(1.0), m_cmsalive(false) {}
12 
14  DIPLumiSummary(float instlumi, float dellumi, float reclumi, unsigned short cmsalive)
15  : m_instlumi(instlumi), m_dellumi(dellumi), m_reclumi(reclumi), m_deadfrac(1.0), m_cmsalive(cmsalive) {
16  if (m_reclumi > 0.0) {
17  m_deadfrac = 1.0 - (m_reclumi / m_dellumi);
18  }
19  }
20 
23  bool isNull() const;
28  float instDelLumi() const;
33  float intgDelLumiByLS() const;
38  float intgRecLumiByLS() const;
43  float deadtimefraction() const;
47  int cmsalive() const;
48  //
49  //setters
50  //
54  unsigned int fromRun() const;
58  unsigned int fromLS() const;
59  void setOrigin(unsigned int runnumber, unsigned int ls);
60 
61 private:
62  unsigned int m_runnum;
63  unsigned int m_ls;
64  const float m_instlumi; //avg inst lumi in LS
65  const float m_dellumi; //integrated luminosity of this ls
66  const float m_reclumi;
67  float m_deadfrac;
68  const unsigned short m_cmsalive;
69 };
70 
71 std::ostream& operator<<(std::ostream& s, const DIPLumiSummary& diplumiSummary);
72 
74 
75 #endif // RecoLuminosity_LuminosityProducer_DIPLumiSummary_h
eostools.ls
def ls(path, rec=False)
Definition: eostools.py:349
funct::false
false
Definition: Factorize.h:29
DIPLumiSummary::m_runnum
unsigned int m_runnum
Definition: DIPLumiSummary.h:62
DIPLumiSummary::setOrigin
void setOrigin(unsigned int runnumber, unsigned int ls)
Definition: DIPLumiSummary.cc:32
DIPLumiSummary::fromLS
unsigned int fromLS() const
Definition: DIPLumiSummary.cc:31
DIPLumiSummary::DIPLumiSummary
DIPLumiSummary()
default constructor
Definition: DIPLumiSummary.h:10
DIPLumiSummary::deadtimefraction
float deadtimefraction() const
Definition: DIPLumiSummary.cc:25
DIPLumiSummary::instDelLumi
float instDelLumi() const
Definition: DIPLumiSummary.cc:12
DIPLumiSummary::DIPLumiSummary
DIPLumiSummary(float instlumi, float dellumi, float reclumi, unsigned short cmsalive)
set default constructor
Definition: DIPLumiSummary.h:14
DIPLumiSummary
Definition: DIPLumiSummary.h:7
alignCSCRings.s
s
Definition: alignCSCRings.py:92
EVENTSETUP_DATA_DEFAULT_RECORD
#define EVENTSETUP_DATA_DEFAULT_RECORD(_data_, _record_)
Definition: data_default_record_trait.h:77
DIPLumiSummary::m_cmsalive
const unsigned short m_cmsalive
Definition: DIPLumiSummary.h:68
DIPLumiSummary::m_deadfrac
float m_deadfrac
Definition: DIPLumiSummary.h:67
DIPLumiSummary::~DIPLumiSummary
~DIPLumiSummary()
destructor
Definition: DIPLumiSummary.h:22
DIPLumiSummary::isNull
bool isNull() const
Definition: DIPLumiSummary.cc:6
DIPLuminosityRcd
Definition: DIPLuminosityRcd.h:5
operator<<
std::ostream & operator<<(std::ostream &s, const DIPLumiSummary &diplumiSummary)
Definition: DIPLumiSummary.cc:37
cond::runnumber
Definition: Time.h:19
DIPLuminosityRcd.h
data_default_record_trait.h
DIPLumiSummary::intgRecLumiByLS
float intgRecLumiByLS() const
Definition: DIPLumiSummary.cc:19
DIPLumiSummary::cmsalive
int cmsalive() const
Definition: DIPLumiSummary.cc:26
DIPLumiSummary::m_reclumi
const float m_reclumi
Definition: DIPLumiSummary.h:66
DIPLumiSummary::m_dellumi
const float m_dellumi
Definition: DIPLumiSummary.h:65
DIPLumiSummary::fromRun
unsigned int fromRun() const
Definition: DIPLumiSummary.cc:27
DIPLumiSummary::m_ls
unsigned int m_ls
Definition: DIPLumiSummary.h:63
DIPLumiSummary::intgDelLumiByLS
float intgDelLumiByLS() const
Definition: DIPLumiSummary.cc:13
DIPLumiSummary::m_instlumi
const float m_instlumi
Definition: DIPLumiSummary.h:64