test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
DataFormats
Luminosity
interface
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>
19
#include "
DataFormats/Luminosity/interface/LumiConstants.h
"
20
21
class
LumiInfoRunHeader
22
{
23
public
:
24
//----------------------------------------------------------------
25
27
LumiInfoRunHeader
() {}
28
30
LumiInfoRunHeader
(
std::string
& lumiProvider,
std::string
& fillingSchemeName,
31
std::bitset<LumiConstants::numBX>& fillingScheme);
32
34
~LumiInfoRunHeader
() {}
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
53
std::string
getLumiProvider
()
const
{
return
lumiProvider_
; }
54
56
std::string
getFillingSchemeName
()
const
{
return
fillingSchemeName_
; }
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
73
int
bunchSpacing_
;
74
75
void
setBunchSpacing
();
76
};
77
78
#endif
LumiConstants.h
LumiInfoRunHeader::getBunchFilled
bool getBunchFilled(unsigned int bunch) const
Get filling scheme for given bunch.
Definition:
LumiInfoRunHeader.h:59
LumiInfoRunHeader::~LumiInfoRunHeader
~LumiInfoRunHeader()
Destructor.
Definition:
LumiInfoRunHeader.h:34
LumiInfoRunHeader::bunchSpacing_
int bunchSpacing_
Definition:
LumiInfoRunHeader.h:73
LumiInfoRunHeader::fillingScheme_
std::bitset< LumiConstants::numBX > fillingScheme_
Definition:
LumiInfoRunHeader.h:72
connectstrParser.o
string o
Definition:
connectstrParser.py:70
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
LumiInfoRunHeader::getFillingScheme
const std::bitset< LumiConstants::numBX > & getFillingScheme() const
Get full filling scheme.
Definition:
LumiInfoRunHeader.h:62
LumiInfoRunHeader::getLumiProvider
std::string getLumiProvider() const
Get lumi provider.
Definition:
LumiInfoRunHeader.h:53
LumiInfoRunHeader::getBunchSpacing
int getBunchSpacing() const
Get bunch spacing (in ns).
Definition:
LumiInfoRunHeader.h:65
LumiInfoRunHeader::LumiInfoRunHeader
LumiInfoRunHeader()
Default constructor.
Definition:
LumiInfoRunHeader.h:27
LumiInfoRunHeader::setBunchSpacing
void setBunchSpacing()
Definition:
LumiInfoRunHeader.cc:29
LumiInfoRunHeader::lumiProvider_
std::string lumiProvider_
Definition:
LumiInfoRunHeader.h:70
LumiInfoRunHeader
Definition:
LumiInfoRunHeader.h:21
LumiInfoRunHeader::fillingSchemeName_
std::string fillingSchemeName_
Definition:
LumiInfoRunHeader.h:71
LumiInfoRunHeader::getFillingSchemeName
std::string getFillingSchemeName() const
Get filling scheme name.
Definition:
LumiInfoRunHeader.h:56
LumiInfoRunHeader::setLumiProvider
void setLumiProvider(const std::string &lumiProvider)
Set lumi provider.
Definition:
LumiInfoRunHeader.h:42
LumiInfoRunHeader::isProductEqual
bool isProductEqual(LumiInfoRunHeader const &o) const
Product compare function.
Definition:
LumiInfoRunHeader.cc:12
LumiInfoRunHeader::setFillingSchemeName
void setFillingSchemeName(const std::string &fillingSchemeName)
Set filling scheme name.
Definition:
LumiInfoRunHeader.h:45
LumiInfoRunHeader::setFillingScheme
void setFillingScheme(const std::bitset< LumiConstants::numBX > &fillingScheme)
Set filling scheme.
Definition:
LumiInfoRunHeader.cc:21
Generated for CMSSW Reference Manual by
1.8.5