CMS 3D CMS Logo

ScalersRaw.h
Go to the documentation of this file.
1 /*
2  * File: DataFormats/Scalers/interface/ScalersRaw.h (W.Badgett)
3  *
4  * Description of the raw data from the Scalers FED
5  *
6  */
7 
8 #ifndef SCALERSRAW_H
9 #define SCALERSRAW_H
10 
11 #include <ostream>
12 #include <vector>
13 
21 #pragma pack(push)
22 #pragma pack(4)
23 
26 
28 {
29  public:
30  enum
31  {
35  N_BX_v2 = 4,
36  N_BX_v6 = 8,
43  };
44 };
45 
47 {
50  unsigned int ORBIT_NUMBER; /* ORBITNR */
51  unsigned int LUMINOSITY_SEGMENT;
52  unsigned short BC_ERRORS;
53 
56  unsigned int TRIGGER_NR; /* TRIGNR_ */
57  unsigned int EVENT_NR; /* EVNR */
58  unsigned int FINOR_DISTRIBUTED; /* PHYS_L1A ?? */
59  unsigned int CAL_TRIGGER; /* CAL_L1A_ */
60  unsigned int RANDOM_TRIGGER; /* RNDM_L1A_ */
61  unsigned int TEST_TRIGGER; /* TECHTRIG_ */
62  unsigned int FINOR_GENERATED; /* FINOR_ ?? */
63  unsigned int FINOR_IN_INVALID_BC; /* LOST_BC_ ?? */
64  unsigned long long DEADTIME; /* DEADT_ */
65  unsigned long long LOST_FINOR; /* LOST_TRIG_ ?? */
66  unsigned long long DEADTIMEA; /* DEADT_A */
67  unsigned long long LOST_FINORA; /* LOST_TRIG_A ?? */
68  unsigned long long PRIV_DEADTIMEA; /* DEADT_PRIV_A */
69  unsigned long long PTCSTATUS_DEADTIMEA; /* DEADT_PSTATUS_A */
70  unsigned long long THROTTLE_DEADTIMEA; /* DEADT_THROTTLE_A */
71  unsigned long long CALIBRATION_DEADTIMEA; /* DEADT_CALIBR_A */
72  unsigned long long TIMESLOT_DEADTIMEA; /* */
73  unsigned int NR_OF_RESETS; /* NR_RESETS_ */
74 
77  unsigned int ALGO_RATE[ScalersRaw::N_L1_TRIGGERS_v1];
78  unsigned int TEST_RATE[ScalersRaw::N_L1_TEST_TRIGGERS_v1];
79 };
80 
82 {
83  unsigned int collectionTime_sec;
84  unsigned int collectionTime_nsec;
85  unsigned int lumiSegmentNr;
86  unsigned int lumiSegmentOrbits;
87  unsigned int orbitNr;
88  unsigned int gtResets;
89  unsigned int bunchCrossingErrors;
90  unsigned long long gtTriggers;
91  unsigned long long gtEvents;
93  float gtEventsRate;
96 
99  unsigned int lumiSegmentNrLumiSeg;
100  unsigned long long triggersPhysicsGeneratedFDL;
101  unsigned long long triggersPhysicsLost;
102  unsigned long long triggersPhysicsLostBeamActive;
104  unsigned long long l1AsPhysics;
105  unsigned long long l1AsRandom;
106  unsigned long long l1AsTest;
107  unsigned long long l1AsCalibration;
108  unsigned long long deadtime;
109  unsigned long long deadtimeBeamActive;
110  unsigned long long deadtimeBeamActiveTriggerRules;
111  unsigned long long deadtimeBeamActiveCalibration;
112  unsigned long long deadtimeBeamActivePrivateOrbit;
114  unsigned long long deadtimeBeamActiveTimeSlot;
115 
116  unsigned int gtAlgoCounts[ScalersRaw::N_L1_TRIGGERS_v1];
117  unsigned int gtTechCounts[ScalersRaw::N_L1_TEST_TRIGGERS_v1];
118 };
119 
121 {
122  unsigned int collectionTime_sec;
123  unsigned int collectionTime_nsec;
126 
127  float LumiFill;
128  float LumiRun;
130  float LiveLumiRun;
131  float InstantLumi;
133  unsigned char InstantLumiQlty;
134 
135  float LumiETFill;
136  float LumiETRun;
141  unsigned char InstantETLumiQlty;
142 
143  float LumiOccFill[ScalersRaw::N_LUMI_OCC_v1];
144  float LumiOccRun[ScalersRaw::N_LUMI_OCC_v1];
145  float LiveLumiOccFill[ScalersRaw::N_LUMI_OCC_v1];
146  float LiveLumiOccRun[ScalersRaw::N_LUMI_OCC_v1];
147  float InstantOccLumi[ScalersRaw::N_LUMI_OCC_v1];
148  float InstantOccLumiErr[ScalersRaw::N_LUMI_OCC_v1];
149  unsigned char InstantOccLumiQlty[ScalersRaw::N_LUMI_OCC_v1];
150  float lumiNoise[ScalersRaw::N_LUMI_OCC_v1];
151 
152  unsigned int sectionNumber;
153  unsigned int startOrbit;
154  unsigned int numOrbits;
155 };
156 
158 {
159  unsigned int collectionTime_sec;
160  unsigned int collectionTime_nsec;
161  float x;
162  float y;
163  float z;
164  float dxdz;
165  float dydz;
166  float err_x;
167  float err_y;
168  float err_z;
169  float err_dxdz;
170  float err_dydz;
171  float width_x;
172  float width_y;
173  float sigma_z;
174  float err_width_x;
175  float err_width_y;
176  float err_sigma_z;
177 };
178 
180 {
181  unsigned int collectionTime_sec;
182  unsigned int collectionTime_nsec;
183  unsigned int ready;
186 };
187 
189 {
190  unsigned long long header;
191  int version;
192  struct TriggerScalersRaw_v1 trig;
194  unsigned int filler;
195  unsigned long long trailer;
196 };
197 
199 {
200  unsigned long long header;
201  int version;
202  struct TriggerScalersRaw_v1 trig;
204  unsigned int filler;
205  unsigned long long bx[ScalersRaw::N_BX_v2];
206  unsigned long long trailer;
207 };
208 
210 {
211  unsigned long long header;
212  int version;
213  struct TriggerScalersRaw_v3 trig;
215  unsigned int filler;
216  unsigned long long bx[ScalersRaw::N_BX_v2];
217  unsigned long long trailer;
218 };
219 
221 {
222  unsigned long long header;
223  int version;
224  struct TriggerScalersRaw_v3 trig;
226  struct BeamSpotOnlineRaw_v4 beamSpotOnline;
227  struct DcsStatusRaw_v4 dcsStatus;
228  unsigned long long bx[ScalersRaw::N_BX_v2];
229  unsigned long long trailer;
230 };
231 
232 
234 {
235  unsigned long long header;
236  int version;
237  struct TriggerScalersRaw_v3 trig;
239  struct BeamSpotOnlineRaw_v4 beamSpotOnline;
240  struct DcsStatusRaw_v4 dcsStatus;
241  unsigned int lastOrbitCounter0;
242  unsigned int lastTestEnable;
243  unsigned int lastResync;
244  unsigned int lastStart;
245  unsigned int lastEventCounter0;
246  unsigned int lastHardReset;
247  unsigned long long spare[ScalersRaw::N_SPARE_v5];
248  unsigned long long bx[ScalersRaw::N_BX_v2];
249  unsigned long long trailer;
250 };
251 
253 {
254  unsigned long long header;
255  int version;
256  struct TriggerScalersRaw_v3 trig;
258  struct BeamSpotOnlineRaw_v4 beamSpotOnline;
259  struct DcsStatusRaw_v4 dcsStatus;
260  unsigned int lastOrbitCounter0;
261  unsigned int lastTestEnable;
262  unsigned int lastResync;
263  unsigned int lastStart;
264  unsigned int lastEventCounter0;
265  unsigned int lastHardReset;
266  unsigned long long spare[ScalersRaw::N_SPARE_v5];
267  unsigned long long bx[ScalersRaw::N_BX_v6];
268  unsigned long long trailer;
269 };
270 
271 #pragma pack(pop)
272 
273 #endif
unsigned char InstantETLumiQlty
Definition: ScalersRaw.h:141
unsigned int collectionTime_sec
Definition: ScalersRaw.h:122
unsigned int EVENT_NR
Definition: ScalersRaw.h:57
unsigned long long l1AsTest
Definition: ScalersRaw.h:106
unsigned int lastStart
Definition: ScalersRaw.h:263
unsigned int orbitNr
Definition: ScalersRaw.h:87
unsigned long long PRIV_DEADTIMEA
Definition: ScalersRaw.h:68
unsigned int lastResync
Definition: ScalersRaw.h:262
unsigned int collectionTime_nsec
Definition: ScalersRaw.h:160
unsigned int lastResync
Definition: ScalersRaw.h:243
unsigned int lastOrbitCounter0
Definition: ScalersRaw.h:260
unsigned long long l1AsRandom
Definition: ScalersRaw.h:105
unsigned long long header
Definition: ScalersRaw.h:190
unsigned int FINOR_GENERATED
Definition: ScalersRaw.h:62
unsigned int FINOR_IN_INVALID_BC
Definition: ScalersRaw.h:63
unsigned int collectionTime_sec
Definition: ScalersRaw.h:159
unsigned int LUMINOSITY_SEGMENT
Definition: ScalersRaw.h:51
unsigned long long trailer
Definition: ScalersRaw.h:249
unsigned int collectionTime_sec
Definition: ScalersRaw.h:83
unsigned int CAL_TRIGGER
Definition: ScalersRaw.h:59
unsigned int collectionTime_nsec
Definition: ScalersRaw.h:84
unsigned long long LOST_FINOR
Definition: ScalersRaw.h:65
unsigned int lastEventCounter0
Definition: ScalersRaw.h:264
unsigned long long header
Definition: ScalersRaw.h:200
float DeadtimeNormalization
Definition: ScalersRaw.h:124
unsigned long long header
Definition: ScalersRaw.h:222
unsigned long long l1AsCalibration
Definition: ScalersRaw.h:107
unsigned long long deadtimeBeamActivePartitionController
Definition: ScalersRaw.h:113
unsigned long long trailer
Definition: ScalersRaw.h:195
unsigned long long DEADTIMEA
Definition: ScalersRaw.h:66
unsigned long long deadtimeBeamActiveTimeSlot
Definition: ScalersRaw.h:114
unsigned int numOrbits
Definition: ScalersRaw.h:154
unsigned long long triggersPhysicsLostBeamInactive
Definition: ScalersRaw.h:103
unsigned int lastTestEnable
Definition: ScalersRaw.h:261
unsigned long long TIMESLOT_DEADTIMEA
Definition: ScalersRaw.h:72
unsigned long long deadtimeBeamActiveTriggerRules
Definition: ScalersRaw.h:110
unsigned int TRIGGER_NR
Definition: ScalersRaw.h:56
unsigned int ready
Definition: ScalersRaw.h:183
unsigned int collectionTimeLumiSeg_nsec
Definition: ScalersRaw.h:98
unsigned long long LOST_FINORA
Definition: ScalersRaw.h:67
unsigned int collectionTime_nsec
Definition: ScalersRaw.h:123
unsigned int collectionTime_sec
Definition: ScalersRaw.h:181
unsigned int collectionTimeSummary_sec
Definition: ScalersRaw.h:54
unsigned int lumiSegmentOrbits
Definition: ScalersRaw.h:86
unsigned int TEST_TRIGGER
Definition: ScalersRaw.h:61
unsigned short BC_ERRORS
Definition: ScalersRaw.h:52
unsigned long long trailer
Definition: ScalersRaw.h:268
unsigned int startOrbit
Definition: ScalersRaw.h:153
unsigned int collectionTimeSpecial_sec
Definition: ScalersRaw.h:48
unsigned int lastHardReset
Definition: ScalersRaw.h:265
unsigned int lastHardReset
Definition: ScalersRaw.h:246
unsigned int ORBIT_NUMBER
Definition: ScalersRaw.h:50
unsigned int lastStart
Definition: ScalersRaw.h:244
unsigned long long THROTTLE_DEADTIMEA
Definition: ScalersRaw.h:70
unsigned int lastEventCounter0
Definition: ScalersRaw.h:245
unsigned long long deadtimeBeamActivePrivateOrbit
Definition: ScalersRaw.h:112
unsigned int lastTestEnable
Definition: ScalersRaw.h:242
unsigned int FINOR_DISTRIBUTED
Definition: ScalersRaw.h:58
unsigned int collectionTimeSpecial_nsec
Definition: ScalersRaw.h:49
unsigned long long trailer
Definition: ScalersRaw.h:229
unsigned int collectionTimeDetails_nsec
Definition: ScalersRaw.h:76
unsigned long long triggersPhysicsLostBeamActive
Definition: ScalersRaw.h:102
unsigned int NR_OF_RESETS
Definition: ScalersRaw.h:73
unsigned long long PTCSTATUS_DEADTIMEA
Definition: ScalersRaw.h:69
unsigned int collectionTimeDetails_sec
Definition: ScalersRaw.h:75
unsigned int RANDOM_TRIGGER
Definition: ScalersRaw.h:60
unsigned long long gtEvents
Definition: ScalersRaw.h:91
unsigned long long deadtime
Definition: ScalersRaw.h:108
unsigned long long gtTriggers
Definition: ScalersRaw.h:90
unsigned int collectionTimeLumiSeg_sec
Definition: ScalersRaw.h:97
unsigned int lastOrbitCounter0
Definition: ScalersRaw.h:241
float magnetCurrent
Definition: ScalersRaw.h:184
unsigned long long deadtimeBeamActiveCalibration
Definition: ScalersRaw.h:111
unsigned int collectionTime_nsec
Definition: ScalersRaw.h:182
unsigned char InstantLumiQlty
Definition: ScalersRaw.h:133
unsigned int gtResets
Definition: ScalersRaw.h:88
unsigned long long trailer
Definition: ScalersRaw.h:206
unsigned long long header
Definition: ScalersRaw.h:235
unsigned int lumiSegmentNrLumiSeg
Definition: ScalersRaw.h:99
unsigned int collectionTimeSummary_nsec
Definition: ScalersRaw.h:55
unsigned long long deadtimeBeamActive
Definition: ScalersRaw.h:109
float magnetTemperature
Definition: ScalersRaw.h:185
unsigned long long triggersPhysicsGeneratedFDL
Definition: ScalersRaw.h:100
unsigned long long triggersPhysicsLost
Definition: ScalersRaw.h:101
float InstantETLumiErr
Definition: ScalersRaw.h:140
unsigned int bunchCrossingErrors
Definition: ScalersRaw.h:89
unsigned int lumiSegmentNr
Definition: ScalersRaw.h:85
unsigned long long header
Definition: ScalersRaw.h:211
unsigned long long trailer
Definition: ScalersRaw.h:217
unsigned long long DEADTIME
Definition: ScalersRaw.h:64
unsigned long long CALIBRATION_DEADTIMEA
Definition: ScalersRaw.h:71
unsigned long long l1AsPhysics
Definition: ScalersRaw.h:104
unsigned int sectionNumber
Definition: ScalersRaw.h:152
unsigned long long header
Definition: ScalersRaw.h:254