CMS 3D CMS Logo

DIPLumiSummary.cc
Go to the documentation of this file.
2 
3 #include <iomanip>
4 #include <ostream>
5 #include <iostream>
6 bool DIPLumiSummary::isNull() const {
7  if (m_runnum == 0 && m_ls == 0) {
8  return true;
9  }
10  return false;
11 }
12 float DIPLumiSummary::instDelLumi() const { return m_instlumi; }
14  if (m_dellumi <= 0.0) {
15  return 0.0;
16  }
17  return m_dellumi;
18 }
20  if (m_reclumi <= 0.0) {
21  return 0.0;
22  }
23  return m_reclumi;
24 }
26 int DIPLumiSummary::cmsalive() const { return m_cmsalive; }
27 unsigned int DIPLumiSummary::fromRun() const { return m_runnum; }
31 unsigned int DIPLumiSummary::fromLS() const { return m_ls; }
32 void DIPLumiSummary::setOrigin(unsigned int runnumber, unsigned int ls) {
34  m_ls = ls;
35 }
36 void setOrigin(unsigned int runnumber, unsigned int ls);
37 std::ostream& operator<<(std::ostream& s, const DIPLumiSummary& diplumiSummary) {
38  std::cout.setf(std::ios::fixed, std::ios::floatfield);
39  std::cout.setf(std::ios::showpoint);
40  s << "\nDumping DIPLumiSummary (/ub)\n\n";
41  s << std::setw(20) << "instDelLumi = " << std::setprecision(3) << diplumiSummary.instDelLumi();
42  s << std::setw(20) << "intgDelLumiByLS = " << std::setprecision(3) << diplumiSummary.intgDelLumiByLS();
43  s << std::setw(20) << "intgRecLumiByLS = " << std::setprecision(3) << diplumiSummary.intgRecLumiByLS();
44  s << std::setw(20) << "deadtimefraction = " << std::setprecision(3) << diplumiSummary.deadtimefraction();
45  s << std::setw(15) << "cmsalive = " << diplumiSummary.cmsalive();
46  s << "\n";
47  return s << "\n";
48 }
eostools.ls
def ls(path, rec=False)
Definition: eostools.py:349
alignBH_cfg.fixed
fixed
Definition: alignBH_cfg.py:54
DIPLumiSummary::m_runnum
unsigned int m_runnum
Definition: DIPLumiSummary.h:62
DIPLumiSummary.h
DIPLumiSummary::setOrigin
void setOrigin(unsigned int runnumber, unsigned int ls)
Definition: DIPLumiSummary.cc:32
DIPLumiSummary::fromLS
unsigned int fromLS() const
Definition: DIPLumiSummary.cc:31
gather_cfg.cout
cout
Definition: gather_cfg.py:144
DIPLumiSummary::deadtimefraction
float deadtimefraction() const
Definition: DIPLumiSummary.cc:25
DIPLumiSummary::instDelLumi
float instDelLumi() const
Definition: DIPLumiSummary.cc:12
DIPLumiSummary
Definition: DIPLumiSummary.h:7
alignCSCRings.s
s
Definition: alignCSCRings.py:92
DIPLumiSummary::m_cmsalive
const unsigned short m_cmsalive
Definition: DIPLumiSummary.h:68
DIPLumiSummary::m_deadfrac
float m_deadfrac
Definition: DIPLumiSummary.h:67
DIPLumiSummary::isNull
bool isNull() const
Definition: DIPLumiSummary.cc:6
cond::runnumber
Definition: Time.h:19
setOrigin
void setOrigin(unsigned int runnumber, unsigned int ls)
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
operator<<
std::ostream & operator<<(std::ostream &s, const DIPLumiSummary &diplumiSummary)
Definition: DIPLumiSummary.cc:37