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  if(m_reclumi>0.0){
31  }
32  return m_deadfrac;
33 }
34 int
36  return m_cmsalive;
37 }
38 unsigned int
40  return m_runnum;
41 }
45 unsigned int
47  return m_ls;
48 }
49 void
50 DIPLumiSummary::setOrigin(unsigned int runnumber,unsigned int ls){
52  m_ls=ls;
53 }
54 void setOrigin(unsigned int runnumber,unsigned int ls);
55 std::ostream& operator<<(std::ostream& s, const DIPLumiSummary& diplumiSummary) {
56  std::cout.setf(std::ios::fixed,std::ios::floatfield);
57  std::cout.setf(std::ios::showpoint);
58  s << "\nDumping DIPLumiSummary (/ub)\n\n";
59  s << std::setw(20) << "instDelLumi = " << std::setprecision(3) << diplumiSummary.instDelLumi();
60  s << std::setw(20) << "intgDelLumiByLS = " << std::setprecision(3) << diplumiSummary.intgDelLumiByLS();
61  s << std::setw(20) << "intgRecLumiByLS = " << std::setprecision(3) << diplumiSummary.intgRecLumiByLS();
62  s << std::setw(20) << "deadtimefraction = " << std::setprecision(3) << diplumiSummary.deadtimefraction();
63  s << std::setw(15) << "cmsalive = " << diplumiSummary.cmsalive();
64  s << "\n";
65  return s<<"\n";
66 }
float deadtimefraction() const
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
unsigned short m_cmsalive
float intgRecLumiByLS() const
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