CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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  private:
23  unsigned int m_runnum;
24  unsigned int m_ls;
25  std::vector<float> m_lumiValues;
26 };
27 
28 std::ostream& operator<<(std::ostream& s, const DIPLumiDetail&);
29 
31 
32 #endif // RecoLuminosity_LuminosityProducer_DIPLumiDetail_h
float lumiValue(unsigned int bx) const
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
unsigned int m_ls
Definition: DIPLumiDetail.h:24
bool isNull() const
ValueRange lumiValues() const
#define EVENTSETUP_DATA_DEFAULT_RECORD(_data_, _record_)
unsigned int fromRun() const
std::pair< std::vector< float >::const_iterator, std::vector< float >::const_iterator > ValueRange
Definition: DIPLumiDetail.h:11
unsigned int fromLS() const
std::vector< float > m_lumiValues
Definition: DIPLumiDetail.h:25
DIPLumiDetail()
default constructor
Definition: DIPLumiDetail.cc:7
virtual ~DIPLumiDetail()
set default constructor
Definition: DIPLumiDetail.h:13
unsigned int m_runnum
Definition: DIPLumiDetail.h:23
void setOrigin(unsigned int runnumber, unsigned int ls)
void filldata(std::vector< float > &lumivalues)
void fillbxdata(unsigned int bxidx, float bxlumi)