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 
17  bool isNull()const;
22  float instDelLumi() const;
27  float intgDelLumiByLS()const;
32  float intgRecLumiByLS()const;
37  float deadtimefraction() const;
41  int cmsalive()const;
42  //
43  //setters
44  //
48  unsigned int fromRun()const;
52  unsigned int fromLS()const;
53  void setOrigin(unsigned int runnumber,unsigned int ls);
54  private :
55  unsigned int m_runnum;
56  unsigned int m_ls;
57  float m_instlumi;//avg inst lumi in LS
58  float m_dellumi;//integrated luminosity of this ls
59  float m_reclumi;
60  mutable float m_deadfrac;
61  unsigned short m_cmsalive;
62 };
63 
64 std::ostream& operator<<(std::ostream& s, const DIPLumiSummary& diplumiSummary);
65 
67 
68 #endif // RecoLuminosity_LuminosityProducer_DIPLumiSummary_h
float deadtimefraction() const
DIPLumiSummary()
default constructor
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
unsigned short m_cmsalive
~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
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
float instDelLumi() const