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
eostools.ls
def ls(path, rec=False)
Definition: eostools.py:349
DIPLumiDetail::fromLS
unsigned int fromLS() const
Definition: DIPLumiDetail.cc:21
DIPLumiDetail::lumiValue
float lumiValue(unsigned int bx) const
Definition: DIPLumiDetail.cc:14
l1GtPatternGenerator_cfi.bx
bx
Definition: l1GtPatternGenerator_cfi.py:18
DIPLumiDetail::fillbxdata
void fillbxdata(unsigned int bxidx, float bxlumi)
Definition: DIPLumiDetail.cc:19
DIPLumiDetail::~DIPLumiDetail
virtual ~DIPLumiDetail()
set default constructor
Definition: DIPLumiDetail.h:13
DIPLumiDetail::m_ls
unsigned int m_ls
Definition: DIPLumiDetail.h:25
alignCSCRings.s
s
Definition: alignCSCRings.py:92
EVENTSETUP_DATA_DEFAULT_RECORD
#define EVENTSETUP_DATA_DEFAULT_RECORD(_data_, _record_)
Definition: data_default_record_trait.h:77
DIPLumiDetail::ValueRange
std::pair< std::vector< float >::const_iterator, std::vector< float >::const_iterator > ValueRange
Definition: DIPLumiDetail.h:11
DIPLuminosityRcd
Definition: DIPLuminosityRcd.h:5
operator<<
std::ostream & operator<<(std::ostream &s, const DIPLumiDetail &)
Definition: DIPLumiDetail.cc:26
cond::runnumber
Definition: Time.h:19
DIPLumiDetail::setOrigin
void setOrigin(unsigned int runnumber, unsigned int ls)
Definition: DIPLumiDetail.cc:22
DIPLumiDetail::lumiValues
ValueRange lumiValues() const
Definition: DIPLumiDetail.cc:15
DIPLumiDetail::fromRun
unsigned int fromRun() const
Definition: DIPLumiDetail.cc:20
DIPLuminosityRcd.h
data_default_record_trait.h
DIPLumiDetail::isNull
bool isNull() const
Definition: DIPLumiDetail.cc:8
DIPLumiDetail
Definition: DIPLumiDetail.h:7
DIPLumiDetail::m_runnum
unsigned int m_runnum
Definition: DIPLumiDetail.h:24
DIPLumiDetail::DIPLumiDetail
DIPLumiDetail()
default constructor
Definition: DIPLumiDetail.cc:7
DIPLumiDetail::filldata
void filldata(std::vector< float > &lumivalues)
Definition: DIPLumiDetail.cc:18
DIPLumiDetail::m_lumiValues
std::vector< float > m_lumiValues
Definition: DIPLumiDetail.h:26