CMS 3D CMS Logo

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