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 
27 class ScalersRaw {
28 public:
29  enum {
33  N_BX_v2 = 4,
34  N_BX_v6 = 8,
41  };
42 };
43 
47  unsigned int ORBIT_NUMBER; /* ORBITNR */
48  unsigned int LUMINOSITY_SEGMENT;
49  unsigned short BC_ERRORS;
50 
53  unsigned int TRIGGER_NR; /* TRIGNR_ */
54  unsigned int EVENT_NR; /* EVNR */
55  unsigned int FINOR_DISTRIBUTED; /* PHYS_L1A ?? */
56  unsigned int CAL_TRIGGER; /* CAL_L1A_ */
57  unsigned int RANDOM_TRIGGER; /* RNDM_L1A_ */
58  unsigned int TEST_TRIGGER; /* TECHTRIG_ */
59  unsigned int FINOR_GENERATED; /* FINOR_ ?? */
60  unsigned int FINOR_IN_INVALID_BC; /* LOST_BC_ ?? */
61  unsigned long long DEADTIME; /* DEADT_ */
62  unsigned long long LOST_FINOR; /* LOST_TRIG_ ?? */
63  unsigned long long DEADTIMEA; /* DEADT_A */
64  unsigned long long LOST_FINORA; /* LOST_TRIG_A ?? */
65  unsigned long long PRIV_DEADTIMEA; /* DEADT_PRIV_A */
66  unsigned long long PTCSTATUS_DEADTIMEA; /* DEADT_PSTATUS_A */
67  unsigned long long THROTTLE_DEADTIMEA; /* DEADT_THROTTLE_A */
68  unsigned long long CALIBRATION_DEADTIMEA; /* DEADT_CALIBR_A */
69  unsigned long long TIMESLOT_DEADTIMEA; /* */
70  unsigned int NR_OF_RESETS; /* NR_RESETS_ */
71 
74  unsigned int ALGO_RATE[ScalersRaw::N_L1_TRIGGERS_v1];
75  unsigned int TEST_RATE[ScalersRaw::N_L1_TEST_TRIGGERS_v1];
76 };
77 
79  unsigned int collectionTime_sec;
80  unsigned int collectionTime_nsec;
81  unsigned int lumiSegmentNr;
82  unsigned int lumiSegmentOrbits;
83  unsigned int orbitNr;
84  unsigned int gtResets;
85  unsigned int bunchCrossingErrors;
86  unsigned long long gtTriggers;
87  unsigned long long gtEvents;
89  float gtEventsRate;
92 
95  unsigned int lumiSegmentNrLumiSeg;
96  unsigned long long triggersPhysicsGeneratedFDL;
97  unsigned long long triggersPhysicsLost;
98  unsigned long long triggersPhysicsLostBeamActive;
99  unsigned long long triggersPhysicsLostBeamInactive;
100  unsigned long long l1AsPhysics;
101  unsigned long long l1AsRandom;
102  unsigned long long l1AsTest;
103  unsigned long long l1AsCalibration;
104  unsigned long long deadtime;
105  unsigned long long deadtimeBeamActive;
106  unsigned long long deadtimeBeamActiveTriggerRules;
107  unsigned long long deadtimeBeamActiveCalibration;
108  unsigned long long deadtimeBeamActivePrivateOrbit;
110  unsigned long long deadtimeBeamActiveTimeSlot;
111 
112  unsigned int gtAlgoCounts[ScalersRaw::N_L1_TRIGGERS_v1];
113  unsigned int gtTechCounts[ScalersRaw::N_L1_TEST_TRIGGERS_v1];
114 };
115 
117  unsigned int collectionTime_sec;
118  unsigned int collectionTime_nsec;
121 
122  float LumiFill;
123  float LumiRun;
125  float LiveLumiRun;
126  float InstantLumi;
128  unsigned char InstantLumiQlty;
129 
130  float LumiETFill;
131  float LumiETRun;
136  unsigned char InstantETLumiQlty;
137 
138  float LumiOccFill[ScalersRaw::N_LUMI_OCC_v1];
139  float LumiOccRun[ScalersRaw::N_LUMI_OCC_v1];
140  float LiveLumiOccFill[ScalersRaw::N_LUMI_OCC_v1];
141  float LiveLumiOccRun[ScalersRaw::N_LUMI_OCC_v1];
142  float InstantOccLumi[ScalersRaw::N_LUMI_OCC_v1];
143  float InstantOccLumiErr[ScalersRaw::N_LUMI_OCC_v1];
144  unsigned char InstantOccLumiQlty[ScalersRaw::N_LUMI_OCC_v1];
145  float lumiNoise[ScalersRaw::N_LUMI_OCC_v1];
146 
147  unsigned int sectionNumber;
148  unsigned int startOrbit;
149  unsigned int numOrbits;
150 };
151 
153  unsigned int collectionTime_sec;
154  unsigned int collectionTime_nsec;
155  float x;
156  float y;
157  float z;
158  float dxdz;
159  float dydz;
160  float err_x;
161  float err_y;
162  float err_z;
163  float err_dxdz;
164  float err_dydz;
165  float width_x;
166  float width_y;
167  float sigma_z;
168  float err_width_x;
169  float err_width_y;
170  float err_sigma_z;
171 };
172 
174  unsigned int collectionTime_sec;
175  unsigned int collectionTime_nsec;
176  unsigned int ready;
179 };
180 
182  unsigned long long header;
183  int version;
186  unsigned int filler;
187  unsigned long long trailer;
188 };
189 
191  unsigned long long header;
192  int version;
195  unsigned int filler;
196  unsigned long long bx[ScalersRaw::N_BX_v2];
197  unsigned long long trailer;
198 };
199 
201  unsigned long long header;
202  int version;
205  unsigned int filler;
206  unsigned long long bx[ScalersRaw::N_BX_v2];
207  unsigned long long trailer;
208 };
209 
211  unsigned long long header;
212  int version;
215  struct BeamSpotOnlineRaw_v4 beamSpotOnline;
216  struct DcsStatusRaw_v4 dcsStatus;
217  unsigned long long bx[ScalersRaw::N_BX_v2];
218  unsigned long long trailer;
219 };
220 
222  unsigned long long header;
223  int version;
226  struct BeamSpotOnlineRaw_v4 beamSpotOnline;
227  struct DcsStatusRaw_v4 dcsStatus;
228  unsigned int lastOrbitCounter0;
229  unsigned int lastTestEnable;
230  unsigned int lastResync;
231  unsigned int lastStart;
232  unsigned int lastEventCounter0;
233  unsigned int lastHardReset;
234  unsigned long long spare[ScalersRaw::N_SPARE_v5];
235  unsigned long long bx[ScalersRaw::N_BX_v2];
236  unsigned long long trailer;
237 };
238 
240  unsigned long long header;
241  int version;
244  struct BeamSpotOnlineRaw_v4 beamSpotOnline;
245  struct DcsStatusRaw_v4 dcsStatus;
246  unsigned int lastOrbitCounter0;
247  unsigned int lastTestEnable;
248  unsigned int lastResync;
249  unsigned int lastStart;
250  unsigned int lastEventCounter0;
251  unsigned int lastHardReset;
252  unsigned long long spare[ScalersRaw::N_SPARE_v5];
253  unsigned long long bx[ScalersRaw::N_BX_v6];
254  unsigned long long trailer;
255 };
256 
257 #pragma pack(pop)
258 
259 #endif
unsigned char InstantETLumiQlty
Definition: ScalersRaw.h:136
unsigned int collectionTime_sec
Definition: ScalersRaw.h:117
unsigned int EVENT_NR
Definition: ScalersRaw.h:54
unsigned long long l1AsTest
Definition: ScalersRaw.h:102
unsigned int lastStart
Definition: ScalersRaw.h:249
unsigned int orbitNr
Definition: ScalersRaw.h:83
unsigned long long PRIV_DEADTIMEA
Definition: ScalersRaw.h:65
unsigned int lastResync
Definition: ScalersRaw.h:248
unsigned int collectionTime_nsec
Definition: ScalersRaw.h:154
unsigned int lastResync
Definition: ScalersRaw.h:230
unsigned int lastOrbitCounter0
Definition: ScalersRaw.h:246
unsigned long long l1AsRandom
Definition: ScalersRaw.h:101
unsigned long long header
Definition: ScalersRaw.h:182
unsigned int FINOR_GENERATED
Definition: ScalersRaw.h:59
unsigned int FINOR_IN_INVALID_BC
Definition: ScalersRaw.h:60
unsigned int collectionTime_sec
Definition: ScalersRaw.h:153
unsigned int LUMINOSITY_SEGMENT
Definition: ScalersRaw.h:48
unsigned long long trailer
Definition: ScalersRaw.h:236
unsigned int collectionTime_sec
Definition: ScalersRaw.h:79
unsigned int CAL_TRIGGER
Definition: ScalersRaw.h:56
unsigned int collectionTime_nsec
Definition: ScalersRaw.h:80
unsigned long long LOST_FINOR
Definition: ScalersRaw.h:62
unsigned int lastEventCounter0
Definition: ScalersRaw.h:250
unsigned long long header
Definition: ScalersRaw.h:191
float DeadtimeNormalization
Definition: ScalersRaw.h:119
unsigned long long header
Definition: ScalersRaw.h:211
unsigned long long l1AsCalibration
Definition: ScalersRaw.h:103
unsigned long long deadtimeBeamActivePartitionController
Definition: ScalersRaw.h:109
unsigned long long trailer
Definition: ScalersRaw.h:187
unsigned long long DEADTIMEA
Definition: ScalersRaw.h:63
unsigned long long deadtimeBeamActiveTimeSlot
Definition: ScalersRaw.h:110
unsigned int numOrbits
Definition: ScalersRaw.h:149
unsigned long long triggersPhysicsLostBeamInactive
Definition: ScalersRaw.h:99
unsigned int lastTestEnable
Definition: ScalersRaw.h:247
unsigned long long TIMESLOT_DEADTIMEA
Definition: ScalersRaw.h:69
unsigned long long deadtimeBeamActiveTriggerRules
Definition: ScalersRaw.h:106
unsigned int TRIGGER_NR
Definition: ScalersRaw.h:53
unsigned int ready
Definition: ScalersRaw.h:176
unsigned int collectionTimeLumiSeg_nsec
Definition: ScalersRaw.h:94
unsigned long long LOST_FINORA
Definition: ScalersRaw.h:64
unsigned int collectionTime_nsec
Definition: ScalersRaw.h:118
unsigned int collectionTime_sec
Definition: ScalersRaw.h:174
unsigned int collectionTimeSummary_sec
Definition: ScalersRaw.h:51
unsigned int lumiSegmentOrbits
Definition: ScalersRaw.h:82
unsigned int TEST_TRIGGER
Definition: ScalersRaw.h:58
unsigned short BC_ERRORS
Definition: ScalersRaw.h:49
unsigned long long trailer
Definition: ScalersRaw.h:254
unsigned int startOrbit
Definition: ScalersRaw.h:148
unsigned int collectionTimeSpecial_sec
Definition: ScalersRaw.h:45
unsigned int lastHardReset
Definition: ScalersRaw.h:251
unsigned int lastHardReset
Definition: ScalersRaw.h:233
unsigned int ORBIT_NUMBER
Definition: ScalersRaw.h:47
unsigned int lastStart
Definition: ScalersRaw.h:231
unsigned long long THROTTLE_DEADTIMEA
Definition: ScalersRaw.h:67
unsigned int lastEventCounter0
Definition: ScalersRaw.h:232
unsigned long long deadtimeBeamActivePrivateOrbit
Definition: ScalersRaw.h:108
unsigned int lastTestEnable
Definition: ScalersRaw.h:229
unsigned int FINOR_DISTRIBUTED
Definition: ScalersRaw.h:55
unsigned int collectionTimeSpecial_nsec
Definition: ScalersRaw.h:46
unsigned long long trailer
Definition: ScalersRaw.h:218
unsigned int collectionTimeDetails_nsec
Definition: ScalersRaw.h:73
unsigned long long triggersPhysicsLostBeamActive
Definition: ScalersRaw.h:98
unsigned int NR_OF_RESETS
Definition: ScalersRaw.h:70
unsigned long long PTCSTATUS_DEADTIMEA
Definition: ScalersRaw.h:66
unsigned int collectionTimeDetails_sec
Definition: ScalersRaw.h:72
unsigned int RANDOM_TRIGGER
Definition: ScalersRaw.h:57
unsigned long long gtEvents
Definition: ScalersRaw.h:87
unsigned long long deadtime
Definition: ScalersRaw.h:104
unsigned long long gtTriggers
Definition: ScalersRaw.h:86
unsigned int collectionTimeLumiSeg_sec
Definition: ScalersRaw.h:93
unsigned int lastOrbitCounter0
Definition: ScalersRaw.h:228
float magnetCurrent
Definition: ScalersRaw.h:177
unsigned long long deadtimeBeamActiveCalibration
Definition: ScalersRaw.h:107
unsigned int collectionTime_nsec
Definition: ScalersRaw.h:175
unsigned char InstantLumiQlty
Definition: ScalersRaw.h:128
unsigned int gtResets
Definition: ScalersRaw.h:84
unsigned long long trailer
Definition: ScalersRaw.h:197
unsigned long long header
Definition: ScalersRaw.h:222
unsigned int lumiSegmentNrLumiSeg
Definition: ScalersRaw.h:95
unsigned int collectionTimeSummary_nsec
Definition: ScalersRaw.h:52
unsigned long long deadtimeBeamActive
Definition: ScalersRaw.h:105
float magnetTemperature
Definition: ScalersRaw.h:178
unsigned long long triggersPhysicsGeneratedFDL
Definition: ScalersRaw.h:96
unsigned long long triggersPhysicsLost
Definition: ScalersRaw.h:97
float InstantETLumiErr
Definition: ScalersRaw.h:135
unsigned int bunchCrossingErrors
Definition: ScalersRaw.h:85
unsigned int lumiSegmentNr
Definition: ScalersRaw.h:81
unsigned long long header
Definition: ScalersRaw.h:201
unsigned long long trailer
Definition: ScalersRaw.h:207
unsigned long long DEADTIME
Definition: ScalersRaw.h:61
unsigned long long CALIBRATION_DEADTIMEA
Definition: ScalersRaw.h:68
unsigned long long l1AsPhysics
Definition: ScalersRaw.h:100
unsigned int sectionNumber
Definition: ScalersRaw.h:147
unsigned long long header
Definition: ScalersRaw.h:240