test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DIPLumiSummary.cc
Go to the documentation of this file.
2 
3 #include <iomanip>
4 #include <ostream>
5 #include <iostream>
6 bool
8  if(m_runnum==0 && m_ls==0){
9  return true;
10  }
11  return false;
12 }
13 float
15  return m_instlumi;
16 }
17 float
19  if(m_dellumi<=0.0){return 0.0;}
20  return m_dellumi;
21 }
22 float
24  if(m_reclumi<=0.0){return 0.0;}
25  return m_reclumi;
26 }
27 float
29  return m_deadfrac;
30 }
31 int
33  return m_cmsalive;
34 }
35 unsigned int
37  return m_runnum;
38 }
42 unsigned int
44  return m_ls;
45 }
46 void
47 DIPLumiSummary::setOrigin(unsigned int runnumber,unsigned int ls){
49  m_ls=ls;
50 }
51 void setOrigin(unsigned int runnumber,unsigned int ls);
52 std::ostream& operator<<(std::ostream& s, const DIPLumiSummary& diplumiSummary) {
53  std::cout.setf(std::ios::fixed,std::ios::floatfield);
54  std::cout.setf(std::ios::showpoint);
55  s << "\nDumping DIPLumiSummary (/ub)\n\n";
56  s << std::setw(20) << "instDelLumi = " << std::setprecision(3) << diplumiSummary.instDelLumi();
57  s << std::setw(20) << "intgDelLumiByLS = " << std::setprecision(3) << diplumiSummary.intgDelLumiByLS();
58  s << std::setw(20) << "intgRecLumiByLS = " << std::setprecision(3) << diplumiSummary.intgRecLumiByLS();
59  s << std::setw(20) << "deadtimefraction = " << std::setprecision(3) << diplumiSummary.deadtimefraction();
60  s << std::setw(15) << "cmsalive = " << diplumiSummary.cmsalive();
61  s << "\n";
62  return s<<"\n";
63 }
float deadtimefraction() const
const float m_reclumi
const float m_instlumi
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
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
float intgDelLumiByLS() const
void setOrigin(unsigned int runnumber, unsigned int ls)
tuple cout
Definition: gather_cfg.py:121
float instDelLumi() const