CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
13  DIPLumiSummary(float instlumi,float dellumi,float reclumi,unsigned short cmsalive):m_instlumi(instlumi),m_dellumi(dellumi),m_reclumi(reclumi),m_deadfrac(1.0),m_cmsalive(cmsalive)
14  {
15  if(m_reclumi>0.0){m_deadfrac=1.0-(m_reclumi/m_dellumi);}
16  }
17 
20  bool isNull()const;
25  float instDelLumi() const;
30  float intgDelLumiByLS()const;
35  float intgRecLumiByLS()const;
40  float deadtimefraction() const;
44  int cmsalive()const;
45  //
46  //setters
47  //
51  unsigned int fromRun()const;
55  unsigned int fromLS()const;
56  void setOrigin(unsigned int runnumber,unsigned int ls);
57  private :
58  unsigned int m_runnum;
59  unsigned int m_ls;
60  const float m_instlumi;//avg inst lumi in LS
61  const float m_dellumi;//integrated luminosity of this ls
62  const float m_reclumi;
63  float m_deadfrac;
64  const unsigned short m_cmsalive;
65 };
66 
67 std::ostream& operator<<(std::ostream& s, const DIPLumiSummary& diplumiSummary);
68 
70 
71 #endif // RecoLuminosity_LuminosityProducer_DIPLumiSummary_h
float deadtimefraction() const
DIPLumiSummary()
default constructor
const float m_reclumi
const float m_instlumi
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
~DIPLumiSummary()
destructor
float intgRecLumiByLS() const
DIPLumiSummary(float instlumi, float dellumi, float reclumi, unsigned short cmsalive)
set default constructor
#define EVENTSETUP_DATA_DEFAULT_RECORD(_data_, _record_)
list reclumi
Definition: lumiPlot.py:555
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
volatile std::atomic< bool > shutdown_flag false
float instDelLumi() const