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 }
float deadtimefraction() const
const float m_reclumi
const float m_instlumi
float intgRecLumiByLS() const
const unsigned short m_cmsalive
const float m_dellumi
int cmsalive() const
unsigned int fromLS() const
unsigned int m_ls
unsigned int m_runnum
bool isNull() const
void setOrigin(unsigned int runnumber, unsigned int ls)
unsigned int fromRun() const
def ls(path, rec=False)
Definition: eostools.py:349
float intgDelLumiByLS() const
std::ostream & operator<<(std::ostream &s, const DIPLumiSummary &diplumiSummary)
float instDelLumi() const