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
unsigned int trigType() const
unsigned long long deadTimeActive_
unsigned long long deadTime() const
unsigned int finalTriggersDistributed() const
unsigned long long deadTimeActivePrivate_
TimeSpec collectionTimeSpecial_
unsigned int randomTriggers() const
unsigned int eventID_
unsigned long long deadTimeActivePartition_
unsigned long long deadTimeActiveThrottle() const
unsigned int eventID() const
unsigned int bunchCrossingErrors() const
std::vector< unsigned int > triggers() const
unsigned int trigType_
unsigned long long lostFinalTriggers() const
unsigned long long deadTimeActivePrivate() const
unsigned int finalTriggersDistributed_
unsigned int eventNumber_
unsigned int luminositySection() const
unsigned int numberResets_
unsigned int orbitNumber_
virtual ~L1TriggerScalers()
unsigned long long deadTimeActiveTimeSlot_
unsigned int calibrationTriggers() const
unsigned int totalTestTriggers_
unsigned int finalTriggersGenerated() const
int version() const
unsigned long long deadTimeActive() const
unsigned long long deadTimeActiveCalibration() const
std::vector< unsigned int > testTriggers_
TimeSpec collectionTimeDetails_
unsigned int luminositySection_
std::vector< unsigned int > testTriggers() const
std::string name() const
name method
int operator!=(const L1TriggerScalers &e) const
inequality operator
unsigned int totalTestTriggers() const
unsigned long long deadTimeActiveTimeSlot() const
unsigned long long deadTimeActiveCalibration_
std::ostream & operator<<(std::ostream &s, const L1TriggerScalers &c)
Pretty-print operator for L1TriggerScalers.
timespec collectionTimeDetails() const
unsigned int triggerNumber_
unsigned long long deadTimeActiveThrottle_
unsigned long long lostFinalTriggers_
unsigned int finalTriggersInvalidBC_
unsigned int orbitNumber() const
unsigned int finalTriggersInvalidBC() const
timespec get_timespec() const
Definition: TimeSpec.cc:4
unsigned long long deadTime_
timespec collectionTimeSpecial() const
unsigned long long lostFinalTriggersActive() const
unsigned long long deadTimeActivePartition() const
unsigned int sourceID_
timespec collectionTimeSummary() const
unsigned int bunchNumber() const
unsigned int bunchNumber_
unsigned int numberResets() const
std::vector< L1TriggerScalers > L1TriggerScalersCollection
unsigned int sourceID() const
TimeSpec collectionTimeSummary_
unsigned int triggerNumber() const
unsigned int calibrationTriggers_
bool empty() const
empty method (= false)
unsigned int eventNumber() const
unsigned long long lostFinalTriggersActive_
unsigned int randomTriggers_
int operator==(const L1TriggerScalers &e) const
equality operator
unsigned int finalTriggersGenerated_
unsigned short bunchCrossingErrors_
std::vector< unsigned int > triggers_