CMS 3D CMS Logo

LumiScalers.h
Go to the documentation of this file.
1 /*
2  * File: DataFormats/Scalers/interface/LumiScalers.h (W.Badgett)
3  *
4  * Various Luminosity Scalers from the HF Lumi System
5  *
6  */
7 
8 #ifndef DATAFORMATS_SCALERS_LUMISCALERS_H
9 #define DATAFORMATS_SCALERS_LUMISCALERS_H
10 
12 
13 #include <ctime>
14 #include <iosfwd>
15 #include <vector>
16 #include <string>
17 
25 
28 class LumiScalers {
29 public:
30  LumiScalers();
31  LumiScalers(const unsigned char* rawData);
32  virtual ~LumiScalers();
33 
34  enum { nOcc = 2 };
35 
37  std::string name() const { return "LumiScalers"; }
38 
40  bool empty() const { return false; }
41 
42  unsigned int trigType() const { return (trigType_); }
43  unsigned int eventID() const { return (eventID_); }
44  unsigned int sourceID() const { return (sourceID_); }
45  unsigned int bunchNumber() const { return (bunchNumber_); }
46 
47  int version() const { return (version_); }
48  timespec collectionTime() const { return (collectionTime_.get_timespec()); }
49  float normalization() const { return (normalization_); }
50  float deadTimeNormalization() const { return (deadTimeNormalization_); }
51 
52  float lumiFill() const { return (lumiFill_); }
53  float lumiRun() const { return (lumiRun_); }
54  float liveLumiFill() const { return (liveLumiFill_); }
55  float liveLumiRun() const { return (liveLumiRun_); }
56  float instantLumi() const { return (instantLumi_); }
57  float instantLumiErr() const { return (instantLumiErr_); }
58  unsigned char instantLumiQlty() const { return (instantLumiQlty_); }
59 
60  float lumiETFill() const { return (lumiETFill_); }
61  float lumiETRun() const { return (lumiETRun_); }
62  float liveLumiETFill() const { return (liveLumiETFill_); }
63  float liveLumiETRun() const { return (liveLumiETRun_); }
64  float instantETLumi() const { return (instantETLumi_); }
65  float instantETLumiErr() const { return (instantETLumiErr_); }
66  unsigned char instantETLumiQlty() const { return (instantETLumiQlty_); }
67 
68  std::vector<float> lumiOccFill() const { return (lumiOccFill_); }
69  std::vector<float> lumiOccRun() const { return (lumiOccRun_); }
70  std::vector<float> liveLumiOccFill() const { return (liveLumiOccFill_); }
71  std::vector<float> liveLumiOccRun() const { return (liveLumiOccRun_); }
72  std::vector<float> instantOccLumi() const { return (instantOccLumi_); }
73  std::vector<float> instantOccLumiErr() const { return (instantOccLumiErr_); }
74  std::vector<unsigned char> instantOccLumiQlty() const { return (instantOccLumiQlty_); }
75  std::vector<float> lumiNoise() const { return (lumiNoise_); }
76 
77  unsigned int sectionNumber() const { return (sectionNumber_); }
78  unsigned int startOrbit() const { return (startOrbit_); }
79  unsigned int numOrbits() const { return (numOrbits_); }
80 
81  float pileup() const { return (pileup_); }
82  float pileupRMS() const { return (pileupRMS_); }
83  float bunchLumi() const { return (bunchLumi_); }
84  float spare() const { return (spare_); }
85 
87  int operator==(const LumiScalers& e) const { return false; }
88 
90  int operator!=(const LumiScalers& e) const { return false; }
91 
92 protected:
93  unsigned int trigType_;
94  unsigned int eventID_;
95  unsigned int sourceID_;
96  unsigned int bunchNumber_;
97 
98  int version_;
99 
101 
104 
105  float lumiFill_;
106  float lumiRun_;
111  unsigned char instantLumiQlty_;
112 
113  float lumiETFill_;
114  float lumiETRun_;
119 
120  unsigned char instantETLumiQlty_;
121 
122  std::vector<float> lumiOccFill_;
123  std::vector<float> lumiOccRun_;
124  std::vector<float> liveLumiOccFill_;
125  std::vector<float> liveLumiOccRun_;
126  std::vector<float> instantOccLumi_;
127  std::vector<float> instantOccLumiErr_;
128  std::vector<unsigned char> instantOccLumiQlty_;
129  std::vector<float> lumiNoise_;
130 
131  unsigned int sectionNumber_;
132  unsigned int startOrbit_;
133  unsigned int numOrbits_;
134 
135  float pileup_;
136  float pileupRMS_;
137  float bunchLumi_;
138  float spare_;
139 };
140 
142 std::ostream& operator<<(std::ostream& s, const LumiScalers& c);
143 
144 typedef std::vector<LumiScalers> LumiScalersCollection;
145 
146 #endif
LumiScalers::instantLumiQlty
unsigned char instantLumiQlty() const
Definition: LumiScalers.h:58
LumiScalers::lumiETRun_
float lumiETRun_
Definition: LumiScalers.h:114
LumiScalers::operator!=
int operator!=(const LumiScalers &e) const
inequality operator
Definition: LumiScalers.h:90
LumiScalers::bunchNumber
unsigned int bunchNumber() const
Definition: LumiScalers.h:45
LumiScalers::pileupRMS
float pileupRMS() const
Definition: LumiScalers.h:82
LumiScalers::sourceID
unsigned int sourceID() const
Definition: LumiScalers.h:44
LumiScalers::collectionTime
timespec collectionTime() const
Definition: LumiScalers.h:48
LumiScalers::instantETLumiErr
float instantETLumiErr() const
Definition: LumiScalers.h:65
LumiScalers::numOrbits_
unsigned int numOrbits_
Definition: LumiScalers.h:133
LumiScalers
Definition: LumiScalers.h:28
LumiScalers::liveLumiOccRun
std::vector< float > liveLumiOccRun() const
Definition: LumiScalers.h:71
LumiScalers::startOrbit_
unsigned int startOrbit_
Definition: LumiScalers.h:132
LumiScalers::eventID
unsigned int eventID() const
Definition: LumiScalers.h:43
l1tstage2_dqm_sourceclient-live_cfg.rawData
rawData
Definition: l1tstage2_dqm_sourceclient-live_cfg.py:162
LumiScalers::pileup_
float pileup_
Definition: LumiScalers.h:135
LumiScalers::trigType_
unsigned int trigType_
Definition: LumiScalers.h:93
LumiScalers::normalization
float normalization() const
Definition: LumiScalers.h:49
TimeSpec::get_timespec
timespec get_timespec() const
Definition: TimeSpec.cc:4
LumiScalers::instantLumiQlty_
unsigned char instantLumiQlty_
Definition: LumiScalers.h:111
LumiScalers::LumiScalers
LumiScalers()
Definition: LumiScalers.cc:11
operator<<
std::ostream & operator<<(std::ostream &s, const LumiScalers &c)
Pretty-print operator for LumiScalers.
Definition: LumiScalers.cc:124
LumiScalers::lumiETFill_
float lumiETFill_
Definition: LumiScalers.h:113
LumiScalers::sectionNumber_
unsigned int sectionNumber_
Definition: LumiScalers.h:131
LumiScalers::lumiNoise
std::vector< float > lumiNoise() const
Definition: LumiScalers.h:75
LumiScalers::instantOccLumiQlty_
std::vector< unsigned char > instantOccLumiQlty_
Definition: LumiScalers.h:128
LumiScalers::pileupRMS_
float pileupRMS_
Definition: LumiScalers.h:136
LumiScalers::normalization_
float normalization_
Definition: LumiScalers.h:102
LumiScalers::liveLumiFill_
float liveLumiFill_
Definition: LumiScalers.h:107
alignCSCRings.s
s
Definition: alignCSCRings.py:92
LumiScalers::lumiRun
float lumiRun() const
Definition: LumiScalers.h:53
LumiScalers::instantOccLumiErr_
std::vector< float > instantOccLumiErr_
Definition: LumiScalers.h:127
LumiScalers::instantETLumi
float instantETLumi() const
Definition: LumiScalers.h:64
LumiScalers::liveLumiETFill
float liveLumiETFill() const
Definition: LumiScalers.h:62
LumiScalers::pileup
float pileup() const
Definition: LumiScalers.h:81
LumiScalers::instantETLumiQlty_
unsigned char instantETLumiQlty_
Definition: LumiScalers.h:120
LumiScalers::lumiOccRun_
std::vector< float > lumiOccRun_
Definition: LumiScalers.h:123
LumiScalers::version_
int version_
Definition: LumiScalers.h:98
LumiScalers::spare_
float spare_
Definition: LumiScalers.h:138
LumiScalers::deadTimeNormalization
float deadTimeNormalization() const
Definition: LumiScalers.h:50
LumiScalers::instantOccLumi_
std::vector< float > instantOccLumi_
Definition: LumiScalers.h:126
LumiScalers::liveLumiETRun_
float liveLumiETRun_
Definition: LumiScalers.h:116
LumiScalers::lumiOccFill
std::vector< float > lumiOccFill() const
Definition: LumiScalers.h:68
LumiScalers::instantLumiErr
float instantLumiErr() const
Definition: LumiScalers.h:57
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
LumiScalers::name
std::string name() const
name method
Definition: LumiScalers.h:37
LumiScalersCollection
std::vector< LumiScalers > LumiScalersCollection
Definition: LumiScalers.h:144
LumiScalers::instantLumi_
float instantLumi_
Definition: LumiScalers.h:109
LumiScalers::bunchNumber_
unsigned int bunchNumber_
Definition: LumiScalers.h:96
LumiScalers::liveLumiETFill_
float liveLumiETFill_
Definition: LumiScalers.h:115
LumiScalers::lumiFill
float lumiFill() const
Definition: LumiScalers.h:52
LumiScalers::lumiETRun
float lumiETRun() const
Definition: LumiScalers.h:61
LumiScalers::collectionTime_
TimeSpec collectionTime_
Definition: LumiScalers.h:100
LumiScalers::deadTimeNormalization_
float deadTimeNormalization_
Definition: LumiScalers.h:103
LumiScalers::liveLumiRun_
float liveLumiRun_
Definition: LumiScalers.h:108
LumiScalers::lumiFill_
float lumiFill_
Definition: LumiScalers.h:105
LumiScalers::lumiOccRun
std::vector< float > lumiOccRun() const
Definition: LumiScalers.h:69
LumiScalers::liveLumiOccFill
std::vector< float > liveLumiOccFill() const
Definition: LumiScalers.h:70
LumiScalers::lumiNoise_
std::vector< float > lumiNoise_
Definition: LumiScalers.h:129
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
LumiScalers::instantOccLumiErr
std::vector< float > instantOccLumiErr() const
Definition: LumiScalers.h:73
LumiScalers::nOcc
Definition: LumiScalers.h:34
LumiScalers::eventID_
unsigned int eventID_
Definition: LumiScalers.h:94
LumiScalers::instantLumiErr_
float instantLumiErr_
Definition: LumiScalers.h:110
LumiScalers::instantETLumiErr_
float instantETLumiErr_
Definition: LumiScalers.h:118
LumiScalers::lumiETFill
float lumiETFill() const
Definition: LumiScalers.h:60
LumiScalers::trigType
unsigned int trigType() const
Definition: LumiScalers.h:42
LumiScalers::spare
float spare() const
Definition: LumiScalers.h:84
LumiScalers::sectionNumber
unsigned int sectionNumber() const
Definition: LumiScalers.h:77
LumiScalers::bunchLumi_
float bunchLumi_
Definition: LumiScalers.h:137
LumiScalers::bunchLumi
float bunchLumi() const
Definition: LumiScalers.h:83
LumiScalers::instantETLumi_
float instantETLumi_
Definition: LumiScalers.h:117
TimeSpec.h
LumiScalers::instantOccLumiQlty
std::vector< unsigned char > instantOccLumiQlty() const
Definition: LumiScalers.h:74
LumiScalers::instantLumi
float instantLumi() const
Definition: LumiScalers.h:56
LumiScalers::operator==
int operator==(const LumiScalers &e) const
equality operator
Definition: LumiScalers.h:87
LumiScalers::sourceID_
unsigned int sourceID_
Definition: LumiScalers.h:95
LumiScalers::startOrbit
unsigned int startOrbit() const
Definition: LumiScalers.h:78
LumiScalers::instantETLumiQlty
unsigned char instantETLumiQlty() const
Definition: LumiScalers.h:66
LumiScalers::instantOccLumi
std::vector< float > instantOccLumi() const
Definition: LumiScalers.h:72
LumiScalers::liveLumiRun
float liveLumiRun() const
Definition: LumiScalers.h:55
LumiScalers::lumiRun_
float lumiRun_
Definition: LumiScalers.h:106
TimeSpec
Definition: TimeSpec.h:7
LumiScalers::empty
bool empty() const
empty method (= false)
Definition: LumiScalers.h:40
LumiScalers::version
int version() const
Definition: LumiScalers.h:47
LumiScalers::liveLumiOccFill_
std::vector< float > liveLumiOccFill_
Definition: LumiScalers.h:124
LumiScalers::numOrbits
unsigned int numOrbits() const
Definition: LumiScalers.h:79
LumiScalers::liveLumiFill
float liveLumiFill() const
Definition: LumiScalers.h:54
LumiScalers::lumiOccFill_
std::vector< float > lumiOccFill_
Definition: LumiScalers.h:122
LumiScalers::~LumiScalers
virtual ~LumiScalers()
Definition: LumiScalers.cc:121
LumiScalers::liveLumiETRun
float liveLumiETRun() const
Definition: LumiScalers.h:63
LumiScalers::liveLumiOccRun_
std::vector< float > liveLumiOccRun_
Definition: LumiScalers.h:125
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37