CMS 3D CMS Logo

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
~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_)
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
std::ostream & operator<<(std::ostream &s, const DIPLumiSummary &diplumiSummary)
def ls(path, rec=False)
Definition: eostools.py:349
float intgDelLumiByLS() const
float instDelLumi() const