CMS 3D CMS Logo

LumiInfoRunHeader.h
Go to the documentation of this file.
1 #ifndef DataFormats_Luminosity_LumiInfoRunHeader_h
2 #define DataFormats_Luminosity_LumiInfoRunHeader_h
3 
17 #include <string>
18 #include <bitset>
20 
22 public:
23  //----------------------------------------------------------------
24 
27 
29  LumiInfoRunHeader(std::string& lumiProvider,
30  std::string& fillingSchemeName,
31  std::bitset<LumiConstants::numBX>& fillingScheme);
32 
35 
37  bool isProductEqual(LumiInfoRunHeader const& o) const;
38 
39  //----------------------------------------------------------------
40 
42  void setLumiProvider(const std::string& lumiProvider) { lumiProvider_ = lumiProvider; }
43 
45  void setFillingSchemeName(const std::string& fillingSchemeName) { fillingSchemeName_ = fillingSchemeName; }
46 
48  void setFillingScheme(const std::bitset<LumiConstants::numBX>& fillingScheme);
49 
50  //----------------------------------------------------------------
51 
54 
57 
59  bool getBunchFilled(unsigned int bunch) const { return fillingScheme_[bunch]; }
60 
62  const std::bitset<LumiConstants::numBX>& getFillingScheme() const { return fillingScheme_; }
63 
65  int getBunchSpacing() const { return bunchSpacing_; }
66 
67  //----------------------------------------------------------------
68 
69 private:
70  std::string lumiProvider_; // string with name of lumi provider
71  std::string fillingSchemeName_; // name of filling scheme
72  std::bitset<LumiConstants::numBX> fillingScheme_; // filling scheme
74 
75  void setBunchSpacing();
76 };
77 
78 #endif
LumiInfoRunHeader::isProductEqual
bool isProductEqual(LumiInfoRunHeader const &o) const
Product compare function.
Definition: LumiInfoRunHeader.cc:10
LumiConstants.h
LumiInfoRunHeader::~LumiInfoRunHeader
~LumiInfoRunHeader()
Destructor.
Definition: LumiInfoRunHeader.h:34
EcalTangentSkim_cfg.o
o
Definition: EcalTangentSkim_cfg.py:36
LumiInfoRunHeader::bunchSpacing_
int bunchSpacing_
Definition: LumiInfoRunHeader.h:73
LumiInfoRunHeader::setBunchSpacing
void setBunchSpacing()
Definition: LumiInfoRunHeader.cc:25
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
LumiInfoRunHeader
Definition: LumiInfoRunHeader.h:21
LumiInfoRunHeader::getFillingSchemeName
std::string getFillingSchemeName() const
Get filling scheme name.
Definition: LumiInfoRunHeader.h:56
LumiInfoRunHeader::getBunchFilled
bool getBunchFilled(unsigned int bunch) const
Get filling scheme for given bunch.
Definition: LumiInfoRunHeader.h:59
LumiInfoRunHeader::LumiInfoRunHeader
LumiInfoRunHeader()
Default constructor.
Definition: LumiInfoRunHeader.h:26
LumiInfoRunHeader::setFillingSchemeName
void setFillingSchemeName(const std::string &fillingSchemeName)
Set filling scheme name.
Definition: LumiInfoRunHeader.h:45
LumiInfoRunHeader::fillingSchemeName_
std::string fillingSchemeName_
Definition: LumiInfoRunHeader.h:71
LumiInfoRunHeader::setFillingScheme
void setFillingScheme(const std::bitset< LumiConstants::numBX > &fillingScheme)
Set filling scheme.
Definition: LumiInfoRunHeader.cc:17
LumiInfoRunHeader::getFillingScheme
const std::bitset< LumiConstants::numBX > & getFillingScheme() const
Get full filling scheme.
Definition: LumiInfoRunHeader.h:62
LumiInfoRunHeader::setLumiProvider
void setLumiProvider(const std::string &lumiProvider)
Set lumi provider.
Definition: LumiInfoRunHeader.h:42
LumiInfoRunHeader::getBunchSpacing
int getBunchSpacing() const
Get bunch spacing (in ns).
Definition: LumiInfoRunHeader.h:65
LumiInfoRunHeader::lumiProvider_
std::string lumiProvider_
Definition: LumiInfoRunHeader.h:70
LumiInfoRunHeader::fillingScheme_
std::bitset< LumiConstants::numBX > fillingScheme_
Definition: LumiInfoRunHeader.h:72
LumiInfoRunHeader::getLumiProvider
std::string getLumiProvider() const
Get lumi provider.
Definition: LumiInfoRunHeader.h:53