CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 
26 
30 {
31  public:
32 
33  enum
34  {
35  nL1Triggers = 128,
37  };
38 
40  L1TriggerScalers(const unsigned char * rawData);
41  virtual ~L1TriggerScalers();
42 
44  std::string name() const { return "L1TriggerScalers"; }
45 
47  bool empty() const { return false; }
48 
49  // Data accessor methods
50  int version() const { return(version_);}
51 
52  unsigned int trigType() const { return(trigType_);}
53  unsigned int eventID() const { return(eventID_);}
54  unsigned int sourceID() const { return(sourceID_);}
55  unsigned int bunchNumber() const { return(bunchNumber_);}
56 
57  timespec collectionTimeSpecial() const
59 
60  unsigned int orbitNumber() const
61  { return(orbitNumber_);}
62  unsigned int luminositySection() const
63  { return(luminositySection_);}
64  unsigned int bunchCrossingErrors() const
65  { return(bunchCrossingErrors_);}
66 
67  timespec collectionTimeSummary() const
69 
70  unsigned int triggerNumber() const
71  { return(triggerNumber_);}
72  unsigned int eventNumber() const
73  { return(eventNumber_);}
74  unsigned int finalTriggersDistributed() const
75  { return(finalTriggersDistributed_);}
76  unsigned int calibrationTriggers() const
77  { return(calibrationTriggers_);}
78  unsigned int randomTriggers() const
79  { return(randomTriggers_);}
80  unsigned int totalTestTriggers() const
81  { return(totalTestTriggers_);}
82  unsigned int finalTriggersGenerated() const
83  { return(finalTriggersGenerated_);}
84  unsigned int finalTriggersInvalidBC() const
85  { return(finalTriggersInvalidBC_);}
86 
87  unsigned long long deadTime() const
88  { return(deadTime_);}
89  unsigned long long lostFinalTriggers() const
90  { return(lostFinalTriggers_);}
91  unsigned long long deadTimeActive() const
92  { return(deadTimeActive_);}
93  unsigned long long lostFinalTriggersActive() const
94  { return(lostFinalTriggersActive_);}
95 
96  unsigned long long deadTimeActivePrivate() const
97  { return(deadTimeActivePrivate_);}
98  unsigned long long deadTimeActivePartition() const
99  { return(deadTimeActivePartition_);}
100  unsigned long long deadTimeActiveThrottle() const
101  { return(deadTimeActiveThrottle_);}
102  unsigned long long deadTimeActiveCalibration() const
103  { return(deadTimeActiveCalibration_);}
104  unsigned long long deadTimeActiveTimeSlot() const
105  { return(deadTimeActiveTimeSlot_);}
106  unsigned int numberResets() const
107  { return(numberResets_);}
108 
109  timespec collectionTimeDetails() const
111 
112  std::vector<unsigned int> triggers() const
113  { return(triggers_);}
114 
115  std::vector<unsigned int> testTriggers() const
116  { return(testTriggers_);}
117 
119  int operator==(const L1TriggerScalers& e) const { return false; }
120 
122  int operator!=(const L1TriggerScalers& e) const { return false; }
123 
124 protected:
125  int version_;
126 
127  unsigned int trigType_;
128  unsigned int eventID_;
129  unsigned int sourceID_;
130  unsigned int bunchNumber_;
131 
133  unsigned int orbitNumber_;
134  unsigned int luminositySection_;
135  unsigned short bunchCrossingErrors_;
136 
138  unsigned int triggerNumber_;
139  unsigned int eventNumber_;
141  unsigned int calibrationTriggers_;
142  unsigned int randomTriggers_;
143  unsigned int totalTestTriggers_;
146  unsigned long long deadTime_;
147  unsigned long long lostFinalTriggers_;
148  unsigned long long deadTimeActive_;
149  unsigned long long lostFinalTriggersActive_;
150  unsigned long long deadTimeActivePrivate_;
151  unsigned long long deadTimeActivePartition_;
152  unsigned long long deadTimeActiveThrottle_;
153  unsigned long long deadTimeActiveCalibration_;
154  unsigned long long deadTimeActiveTimeSlot_;
155  unsigned int numberResets_;
156 
158  std::vector<unsigned int> triggers_;
159  std::vector<unsigned int> testTriggers_;
160 };
161 
162 
164 std::ostream& operator<<(std::ostream& s, const L1TriggerScalers& c);
165 
166 typedef std::vector<L1TriggerScalers> L1TriggerScalersCollection;
167 
168 #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_
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:187
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
string s
Definition: asciidump.py:422
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_