CMS 3D CMS Logo

L1TriggerScalers.h
Go to the documentation of this file.
1 /*
2  * File: DataFormats/Scalers/interface/L1TriggerScalers.h (W.Badgett)
3  *
4  * Various Level 1 Trigger Scalers from the GT/TS
5  *
6  */
7 
8 #ifndef DATAFORMATS_SCALERS_L1TRIGGERSCALERS_H
9 #define DATAFORMATS_SCALERS_L1TRIGGERSCALERS_H
10 
12 
13 #include <ctime>
14 #include <iosfwd>
15 #include <string>
16 #include <vector>
17 
25 
29 public:
30  enum { nL1Triggers = 128, nL1TestTriggers = 64 };
31 
33  L1TriggerScalers(const unsigned char* rawData);
34  virtual ~L1TriggerScalers();
35 
37  std::string name() const { return "L1TriggerScalers"; }
38 
40  bool empty() const { return false; }
41 
42  // Data accessor methods
43  int version() const { return (version_); }
44 
45  unsigned int trigType() const { return (trigType_); }
46  unsigned int eventID() const { return (eventID_); }
47  unsigned int sourceID() const { return (sourceID_); }
48  unsigned int bunchNumber() const { return (bunchNumber_); }
49 
51 
52  unsigned int orbitNumber() const { return (orbitNumber_); }
53  unsigned int luminositySection() const { return (luminositySection_); }
54  unsigned int bunchCrossingErrors() const { return (bunchCrossingErrors_); }
55 
57 
58  unsigned int triggerNumber() const { return (triggerNumber_); }
59  unsigned int eventNumber() const { return (eventNumber_); }
60  unsigned int finalTriggersDistributed() const { return (finalTriggersDistributed_); }
61  unsigned int calibrationTriggers() const { return (calibrationTriggers_); }
62  unsigned int randomTriggers() const { return (randomTriggers_); }
63  unsigned int totalTestTriggers() const { return (totalTestTriggers_); }
64  unsigned int finalTriggersGenerated() const { return (finalTriggersGenerated_); }
65  unsigned int finalTriggersInvalidBC() const { return (finalTriggersInvalidBC_); }
66 
67  unsigned long long deadTime() const { return (deadTime_); }
68  unsigned long long lostFinalTriggers() const { return (lostFinalTriggers_); }
69  unsigned long long deadTimeActive() const { return (deadTimeActive_); }
70  unsigned long long lostFinalTriggersActive() const { return (lostFinalTriggersActive_); }
71 
72  unsigned long long deadTimeActivePrivate() const { return (deadTimeActivePrivate_); }
73  unsigned long long deadTimeActivePartition() const { return (deadTimeActivePartition_); }
74  unsigned long long deadTimeActiveThrottle() const { return (deadTimeActiveThrottle_); }
75  unsigned long long deadTimeActiveCalibration() const { return (deadTimeActiveCalibration_); }
76  unsigned long long deadTimeActiveTimeSlot() const { return (deadTimeActiveTimeSlot_); }
77  unsigned int numberResets() const { return (numberResets_); }
78 
80 
81  std::vector<unsigned int> triggers() const { return (triggers_); }
82 
83  std::vector<unsigned int> testTriggers() const { return (testTriggers_); }
84 
86  int operator==(const L1TriggerScalers& e) const { return false; }
87 
89  int operator!=(const L1TriggerScalers& e) const { return false; }
90 
91 protected:
92  int version_;
93 
94  unsigned int trigType_;
95  unsigned int eventID_;
96  unsigned int sourceID_;
97  unsigned int bunchNumber_;
98 
100  unsigned int orbitNumber_;
101  unsigned int luminositySection_;
102  unsigned short bunchCrossingErrors_;
103 
105  unsigned int triggerNumber_;
106  unsigned int eventNumber_;
108  unsigned int calibrationTriggers_;
109  unsigned int randomTriggers_;
110  unsigned int totalTestTriggers_;
113  unsigned long long deadTime_;
114  unsigned long long lostFinalTriggers_;
115  unsigned long long deadTimeActive_;
116  unsigned long long lostFinalTriggersActive_;
117  unsigned long long deadTimeActivePrivate_;
118  unsigned long long deadTimeActivePartition_;
119  unsigned long long deadTimeActiveThrottle_;
120  unsigned long long deadTimeActiveCalibration_;
121  unsigned long long deadTimeActiveTimeSlot_;
122  unsigned int numberResets_;
123 
125  std::vector<unsigned int> triggers_;
126  std::vector<unsigned int> testTriggers_;
127 };
128 
130 std::ostream& operator<<(std::ostream& s, const L1TriggerScalers& c);
131 
132 typedef std::vector<L1TriggerScalers> L1TriggerScalersCollection;
133 
134 #endif
L1TriggerScalers::~L1TriggerScalers
virtual ~L1TriggerScalers()
Definition: L1TriggerScalers.cc:96
L1TriggerScalers::testTriggers
std::vector< unsigned int > testTriggers() const
Definition: L1TriggerScalers.h:83
L1TriggerScalers::operator!=
int operator!=(const L1TriggerScalers &e) const
inequality operator
Definition: L1TriggerScalers.h:89
L1TriggerScalers::totalTestTriggers
unsigned int totalTestTriggers() const
Definition: L1TriggerScalers.h:63
L1TriggerScalers::totalTestTriggers_
unsigned int totalTestTriggers_
Definition: L1TriggerScalers.h:110
L1TriggerScalers::deadTimeActive
unsigned long long deadTimeActive() const
Definition: L1TriggerScalers.h:69
L1TriggerScalers::deadTimeActiveCalibration
unsigned long long deadTimeActiveCalibration() const
Definition: L1TriggerScalers.h:75
L1TriggerScalers::collectionTimeDetails_
TimeSpec collectionTimeDetails_
Definition: L1TriggerScalers.h:124
L1TriggerScalers::deadTimeActiveTimeSlot
unsigned long long deadTimeActiveTimeSlot() const
Definition: L1TriggerScalers.h:76
L1TriggerScalers::luminositySection_
unsigned int luminositySection_
Definition: L1TriggerScalers.h:101
L1TriggerScalers::name
std::string name() const
name method
Definition: L1TriggerScalers.h:37
L1TriggerScalersCollection
std::vector< L1TriggerScalers > L1TriggerScalersCollection
Definition: L1TriggerScalers.h:132
L1TriggerScalers::finalTriggersInvalidBC_
unsigned int finalTriggersInvalidBC_
Definition: L1TriggerScalers.h:112
l1tstage2_dqm_sourceclient-live_cfg.rawData
rawData
Definition: l1tstage2_dqm_sourceclient-live_cfg.py:162
L1TriggerScalers::deadTime_
unsigned long long deadTime_
Definition: L1TriggerScalers.h:113
L1TriggerScalers::lostFinalTriggersActive
unsigned long long lostFinalTriggersActive() const
Definition: L1TriggerScalers.h:70
L1TriggerScalers::deadTimeActiveCalibration_
unsigned long long deadTimeActiveCalibration_
Definition: L1TriggerScalers.h:120
L1TriggerScalers::collectionTimeDetails
timespec collectionTimeDetails() const
Definition: L1TriggerScalers.h:79
TimeSpec::get_timespec
timespec get_timespec() const
Definition: TimeSpec.cc:4
L1TriggerScalers::triggerNumber_
unsigned int triggerNumber_
Definition: L1TriggerScalers.h:105
L1TriggerScalers::deadTimeActivePartition
unsigned long long deadTimeActivePartition() const
Definition: L1TriggerScalers.h:73
L1TriggerScalers::sourceID_
unsigned int sourceID_
Definition: L1TriggerScalers.h:96
L1TriggerScalers::deadTimeActiveThrottle_
unsigned long long deadTimeActiveThrottle_
Definition: L1TriggerScalers.h:119
L1TriggerScalers::lostFinalTriggers_
unsigned long long lostFinalTriggers_
Definition: L1TriggerScalers.h:114
L1TriggerScalers::bunchNumber
unsigned int bunchNumber() const
Definition: L1TriggerScalers.h:48
L1TriggerScalers::orbitNumber
unsigned int orbitNumber() const
Definition: L1TriggerScalers.h:52
L1TriggerScalers::finalTriggersInvalidBC
unsigned int finalTriggersInvalidBC() const
Definition: L1TriggerScalers.h:65
L1TriggerScalers::collectionTimeSpecial
timespec collectionTimeSpecial() const
Definition: L1TriggerScalers.h:50
L1TriggerScalers::L1TriggerScalers
L1TriggerScalers()
Definition: L1TriggerScalers.cc:12
L1TriggerScalers::sourceID
unsigned int sourceID() const
Definition: L1TriggerScalers.h:47
alignCSCRings.s
s
Definition: alignCSCRings.py:92
L1TriggerScalers::triggerNumber
unsigned int triggerNumber() const
Definition: L1TriggerScalers.h:58
L1TriggerScalers::collectionTimeSummary_
TimeSpec collectionTimeSummary_
Definition: L1TriggerScalers.h:104
L1TriggerScalers::collectionTimeSummary
timespec collectionTimeSummary() const
Definition: L1TriggerScalers.h:56
L1TriggerScalers::nL1TestTriggers
Definition: L1TriggerScalers.h:30
L1TriggerScalers::bunchNumber_
unsigned int bunchNumber_
Definition: L1TriggerScalers.h:97
operator<<
std::ostream & operator<<(std::ostream &s, const L1TriggerScalers &c)
Pretty-print operator for L1TriggerScalers.
Definition: L1TriggerScalers.cc:99
L1TriggerScalers::lostFinalTriggersActive_
unsigned long long lostFinalTriggersActive_
Definition: L1TriggerScalers.h:116
L1TriggerScalers::empty
bool empty() const
empty method (= false)
Definition: L1TriggerScalers.h:40
L1TriggerScalers::numberResets
unsigned int numberResets() const
Definition: L1TriggerScalers.h:77
L1TriggerScalers::finalTriggersGenerated_
unsigned int finalTriggersGenerated_
Definition: L1TriggerScalers.h:111
L1TriggerScalers::trigType
unsigned int trigType() const
Definition: L1TriggerScalers.h:45
L1TriggerScalers::calibrationTriggers_
unsigned int calibrationTriggers_
Definition: L1TriggerScalers.h:108
L1TriggerScalers::eventNumber
unsigned int eventNumber() const
Definition: L1TriggerScalers.h:59
L1TriggerScalers::finalTriggersDistributed
unsigned int finalTriggersDistributed() const
Definition: L1TriggerScalers.h:60
L1TriggerScalers::randomTriggers_
unsigned int randomTriggers_
Definition: L1TriggerScalers.h:109
L1TriggerScalers::collectionTimeSpecial_
TimeSpec collectionTimeSpecial_
Definition: L1TriggerScalers.h:99
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
L1TriggerScalers::operator==
int operator==(const L1TriggerScalers &e) const
equality operator
Definition: L1TriggerScalers.h:86
L1TriggerScalers::randomTriggers
unsigned int randomTriggers() const
Definition: L1TriggerScalers.h:62
L1TriggerScalers::bunchCrossingErrors_
unsigned short bunchCrossingErrors_
Definition: L1TriggerScalers.h:102
L1TriggerScalers::triggers_
std::vector< unsigned int > triggers_
Definition: L1TriggerScalers.h:125
L1TriggerScalers::deadTimeActiveThrottle
unsigned long long deadTimeActiveThrottle() const
Definition: L1TriggerScalers.h:74
L1TriggerScalers::deadTimeActive_
unsigned long long deadTimeActive_
Definition: L1TriggerScalers.h:115
L1TriggerScalers::deadTime
unsigned long long deadTime() const
Definition: L1TriggerScalers.h:67
L1TriggerScalers::deadTimeActivePrivate_
unsigned long long deadTimeActivePrivate_
Definition: L1TriggerScalers.h:117
L1TriggerScalers::eventID_
unsigned int eventID_
Definition: L1TriggerScalers.h:95
L1TriggerScalers::deadTimeActivePartition_
unsigned long long deadTimeActivePartition_
Definition: L1TriggerScalers.h:118
L1TriggerScalers::bunchCrossingErrors
unsigned int bunchCrossingErrors() const
Definition: L1TriggerScalers.h:54
L1TriggerScalers::triggers
std::vector< unsigned int > triggers() const
Definition: L1TriggerScalers.h:81
L1TriggerScalers::version_
int version_
Definition: L1TriggerScalers.h:92
L1TriggerScalers::eventID
unsigned int eventID() const
Definition: L1TriggerScalers.h:46
TimeSpec.h
L1TriggerScalers::deadTimeActivePrivate
unsigned long long deadTimeActivePrivate() const
Definition: L1TriggerScalers.h:72
L1TriggerScalers::finalTriggersDistributed_
unsigned int finalTriggersDistributed_
Definition: L1TriggerScalers.h:107
L1TriggerScalers::eventNumber_
unsigned int eventNumber_
Definition: L1TriggerScalers.h:106
L1TriggerScalers::trigType_
unsigned int trigType_
Definition: L1TriggerScalers.h:94
L1TriggerScalers::luminositySection
unsigned int luminositySection() const
Definition: L1TriggerScalers.h:53
L1TriggerScalers::lostFinalTriggers
unsigned long long lostFinalTriggers() const
Definition: L1TriggerScalers.h:68
TimeSpec
Definition: TimeSpec.h:7
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:46
L1TriggerScalers::calibrationTriggers
unsigned int calibrationTriggers() const
Definition: L1TriggerScalers.h:61
L1TriggerScalers::numberResets_
unsigned int numberResets_
Definition: L1TriggerScalers.h:122
L1TriggerScalers::deadTimeActiveTimeSlot_
unsigned long long deadTimeActiveTimeSlot_
Definition: L1TriggerScalers.h:121
L1TriggerScalers::nL1Triggers
Definition: L1TriggerScalers.h:30
L1TriggerScalers::orbitNumber_
unsigned int orbitNumber_
Definition: L1TriggerScalers.h:100
L1TriggerScalers::finalTriggersGenerated
unsigned int finalTriggersGenerated() const
Definition: L1TriggerScalers.h:64
L1TriggerScalers
Definition: L1TriggerScalers.h:28
L1TriggerScalers::version
int version() const
Definition: L1TriggerScalers.h:43
L1TriggerScalers::testTriggers_
std::vector< unsigned int > testTriggers_
Definition: L1TriggerScalers.h:126
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37