222 s <<
"Level1TriggerScalers Version:" << c.
version() <<
223 " SourceID: " << c.
sourceID() << std::endl;
225 char zeitHeaven[128];
226 struct tm * horaHeaven;
228 sprintf(line,
" TrigType: %d EventID: %d BunchNumber: %d",
230 s << line << std::endl;
233 horaHeaven = gmtime(&secondsToHeaven.tv_sec);
234 strftime(zeitHeaven,
sizeof(zeitHeaven),
"%Y.%m.%d %H:%M:%S", horaHeaven);
235 sprintf(line,
" CollectionTime: %s.%9.9d" ,
236 zeitHeaven, (
int)secondsToHeaven.tv_nsec);
237 s << line << std::endl;
240 " LumiSegmentNr: %10u LumiSegmentOrbits: %10u",
242 s << line << std::endl;
245 " LumiSegmentNrLumiSeg: %10u OrbitNr: %10u ",
247 s << line << std::endl;
250 " GtResets: %10u BunchCrossingErrors: %10u",
252 s << line << std::endl;
255 " PrescaleIndexAlgo: %10d PrescaleIndexTech: %10d",
257 s << line << std::endl;
259 sprintf(line,
" GtTriggers: %20llu %22.3f Hz",
261 s << line << std::endl;
263 sprintf(line,
" GtEvents: %20llu %22.3f Hz",
265 s << line << std::endl;
268 horaHeaven = gmtime(&secondsToHeaven.tv_sec);
269 strftime(zeitHeaven,
sizeof(zeitHeaven),
"%Y.%m.%d %H:%M:%S", horaHeaven);
270 sprintf(line,
" CollectionTimeLumiSeg: %s.%9.9d" ,
271 zeitHeaven, (
int)secondsToHeaven.tv_nsec);
272 s << line << std::endl;
275 sprintf(line,
" TriggersPhysicsGeneratedFDL: %20llu %22.3f Hz",
278 s << line << std::endl;
280 sprintf(line,
" TriggersPhysicsLost: %20llu %22.3f Hz",
283 s << line << std::endl;
285 sprintf(line,
" TriggersPhysicsLostBeamActive: %20llu %22.3f Hz",
288 s << line << std::endl;
290 sprintf(line,
" TriggersPhysicsLostBeamInactive: %20llu %22.3f Hz",
293 s << line << std::endl;
295 sprintf(line,
" L1AsPhysics: %20llu %22.3f Hz",
298 s << line << std::endl;
300 sprintf(line,
" L1AsRandom: %20llu %22.3f Hz",
303 s << line << std::endl;
305 sprintf(line,
" L1AsTest: %20llu %22.3f Hz",
308 s << line << std::endl;
310 sprintf(line,
" L1AsCalibration: %20llu %22.3f Hz",
313 s << line << std::endl;
315 sprintf(line,
" Deadtime: %20llu %17.3f%%",
318 s << line << std::endl;
320 sprintf(line,
" DeadtimeBeamActive: %20llu %17.3f%%",
323 s << line << std::endl;
325 sprintf(line,
" DeadtimeBeamActiveTriggerRules: %20llu %17.3f%%",
328 s << line << std::endl;
330 sprintf(line,
" DeadtimeBeamActiveCalibration: %20llu %17.3f%%",
333 s << line << std::endl;
335 sprintf(line,
" DeadtimeBeamActivePrivateOrbit: %20llu %17.3f%%",
338 s << line << std::endl;
340 sprintf(line,
" DeadtimeBeamActivePartitionController:%20llu %17.3f%%",
343 s << line << std::endl;
345 sprintf(line,
" DeadtimeBeamActiveTimeSlot: %20llu %17.3f%%",
348 s << line << std::endl;
350 s <<
"Physics GtAlgoCounts" << std::endl;
351 const std::vector<unsigned int> gtAlgoCounts = c.
gtAlgoCounts();
352 int length = gtAlgoCounts.size() / 4;
353 for (
int i=0;
i<length;
i++)
355 sprintf(line,
" %3.3d: %10u %3.3d: %10u %3.3d: %10u %3.3d: %10u",
357 (i+length), gtAlgoCounts[i+length],
358 (i+(length*2)), gtAlgoCounts[i+(length*2)],
359 (i+(length*3)), gtAlgoCounts[i+(length*3)]);
360 s << line << std::endl;
363 s <<
"Test GtTechCounts" << std::endl;
364 const std::vector<unsigned int> gtTechCounts = c.
gtTechCounts();
365 length = gtTechCounts.size() / 4;
366 for (
int i=0; i<length; i++)
368 sprintf(line,
" %3.3d: %10u %3.3d: %10u %3.3d: %10u %3.3d: %10u",
370 (i+length), gtTechCounts[i+length],
371 (i+(length*2)), gtTechCounts[i+(length*2)],
372 (i+(length*3)), gtTechCounts[i+(length*3)]);
373 s << line << std::endl;
380 s << line << std::endl;
384 s << line << std::endl;
386 sprintf(line,
" LastResync: %10u 0x%8.8X", c.
lastResync(),
388 s << line << std::endl;
390 sprintf(line,
" LastStart: %10u 0x%8.8X", c.
lastStart(),
392 s << line << std::endl;
396 s << line << std::endl;
398 sprintf(line,
" LastHardReset: %10u 0x%8.8X", c.
lastHardReset(),
400 s << line << std::endl;
float gtEventsRate() const
static double rateLS(unsigned long long counts)
unsigned long long gtEvents() const
unsigned long long deadtimeBeamActive() const
unsigned long long deadtimeBeamActivePrivateOrbit() const
unsigned long long triggersPhysicsGeneratedFDL() const
unsigned int bunchNumber() const
unsigned int lastTestEnable() const
int prescaleIndexAlgo() const
unsigned long long l1AsRandom() const
unsigned int lastResync() const
std::vector< unsigned int > gtTechCounts() const
unsigned int trigType() const
unsigned long long triggersPhysicsLost() const
unsigned long long triggersPhysicsLostBeamActive() const
unsigned int lastStart() const
unsigned int gtResets() const
unsigned long long l1AsCalibration() const
unsigned int bunchCrossingErrors() const
unsigned int orbitNr() const
unsigned int lastEventCounter0() const
std::vector< unsigned int > gtAlgoCounts() const
unsigned long long l1AsPhysics() const
unsigned int lumiSegmentOrbits() const
static double percentLSActive(unsigned long long counts)
unsigned long long deadtimeBeamActiveTriggerRules() const
unsigned int lastHardReset() const
unsigned long long l1AsTest() const
unsigned int lastOrbitCounter0() const
unsigned int lumiSegmentNr() const
unsigned long long deadtime() const
unsigned long long gtTriggers() const
static double percentLS(unsigned long long counts)
unsigned int eventID() const
float gtTriggersRate() const
unsigned int sourceID() const
struct timespec collectionTimeLumiSeg() const
unsigned long long deadtimeBeamActiveTimeSlot() const
int prescaleIndexTech() const
unsigned long long deadtimeBeamActiveCalibration() const
unsigned long long triggersPhysicsLostBeamInactive() const
unsigned long long deadtimeBeamActivePartitionController() const
unsigned int lumiSegmentNrLumiSeg() const
struct timespec collectionTime() const