CMS 3D CMS Logo

DIPLumiDetail.h
Go to the documentation of this file.
1 #ifndef RecoLuminosity_LumiProducer_DIPLumiDetail_h
2 #define RecoLuminosity_LumiProducer_DIPLumiDetail_h
3 #include <iosfwd>
4 #include <string>
7 class DIPLumiDetail {
8 public:
10  DIPLumiDetail();
11  typedef std::pair<std::vector<float>::const_iterator, std::vector<float>::const_iterator> ValueRange;
13  virtual ~DIPLumiDetail() {}
14  bool isNull() const;
15  float lumiValue(unsigned int bx) const;
16  ValueRange lumiValues() const;
17  void filldata(std::vector<float>& lumivalues);
18  void fillbxdata(unsigned int bxidx, float bxlumi);
19  unsigned int fromRun() const;
20  unsigned int fromLS() const;
21  void setOrigin(unsigned int runnumber, unsigned int ls);
22 
23 private:
24  unsigned int m_runnum;
25  unsigned int m_ls;
26  std::vector<float> m_lumiValues;
27 };
28 
29 std::ostream& operator<<(std::ostream& s, const DIPLumiDetail&);
30 
32 
33 #endif // RecoLuminosity_LuminosityProducer_DIPLumiDetail_h
ValueRange lumiValues() const
float lumiValue(unsigned int bx) const
unsigned int fromRun() const
unsigned int m_ls
Definition: DIPLumiDetail.h:25
#define EVENTSETUP_DATA_DEFAULT_RECORD(_data_, _record_)
std::ostream & operator<<(std::ostream &s, const DIPLumiDetail &)
std::pair< std::vector< float >::const_iterator, std::vector< float >::const_iterator > ValueRange
Definition: DIPLumiDetail.h:11
std::vector< float > m_lumiValues
Definition: DIPLumiDetail.h:26
DIPLumiDetail()
default constructor
Definition: DIPLumiDetail.cc:7
virtual ~DIPLumiDetail()
set default constructor
Definition: DIPLumiDetail.h:13
def ls(path, rec=False)
Definition: eostools.py:349
unsigned int m_runnum
Definition: DIPLumiDetail.h:24
void setOrigin(unsigned int runnumber, unsigned int ls)
void filldata(std::vector< float > &lumivalues)
bool isNull() const
Definition: DIPLumiDetail.cc:8
unsigned int fromLS() const
void fillbxdata(unsigned int bxidx, float bxlumi)