14 collectionTimeSpecial_(0,0),
16 luminositySection_(0),
17 bunchCrossingErrors_(0),
18 collectionTimeSummary_(0,0),
21 finalTriggersDistributed_(0),
22 calibrationTriggers_(0),
24 totalTestTriggers_(0),
25 finalTriggersGenerated_(0),
26 finalTriggersInvalidBC_(0),
28 lostFinalTriggers_(0),
30 lostFinalTriggersActive_(0),
31 deadTimeActivePrivate_(0),
32 deadTimeActivePartition_(0),
33 deadTimeActiveThrottle_(0),
34 deadTimeActiveCalibration_(0),
35 deadTimeActiveTimeSlot_(0),
37 collectionTimeDetails_(0,0),
38 triggers_(nL1Triggers),
39 testTriggers_(nL1TestTriggers)
111 s <<
"L1TriggerScalers Version:" << c.
version() <<
112 " SourceID: " << c.
sourceID() << std::endl;
114 char zeitHeaven[128];
117 struct tm * horaHeaven;
118 struct tm * horaHell;
119 struct tm * horaLimbo;
121 sprintf(line,
" TrigType: %d EventID: %d BunchNumber: %d",
123 s << line << std::endl;
126 horaHeaven = gmtime(&secondsToHeaven.tv_sec);
127 strftime(zeitHeaven,
sizeof(zeitHeaven),
"%Y.%m.%d %H:%M:%S", horaHeaven);
128 sprintf(line,
" CollectionTimeSummary: %s.%9.9d" ,
129 zeitHeaven, (
int)secondsToHeaven.tv_nsec);
130 s << line << std::endl;
133 horaHell = gmtime(&secondsToHell.tv_sec);
134 strftime(zeitHell,
sizeof(zeitHell),
"%Y.%m.%d %H:%M:%S", horaHell);
135 sprintf(line,
" CollectionTimeSpecial: %s.%9.9d" ,
136 zeitHell, (
int)secondsToHell.tv_nsec);
137 s << line << std::endl;
140 horaLimbo = gmtime(&secondsToLimbo.tv_sec);
141 strftime(zeitLimbo,
sizeof(zeitLimbo),
"%Y.%m.%d %H:%M:%S", horaLimbo);
142 sprintf(line,
" CollectionTimeDetails: %s.%9.9d" ,
143 zeitLimbo, (
int)secondsToLimbo.tv_nsec);
144 s << line << std::endl;
147 " LuminositySection: %15d BunchCrossingErrors: %15d",
149 s << line << std::endl;
152 " TriggerNumber: %15d EventNumber: %15d",
154 s << line << std::endl;
157 " TriggersDistributed: %10d TriggersGenerated: %15d",
160 s << line << std::endl;
163 " TriggersInvalidBC: %15d CalibrationTriggers: %15d",
165 s << line << std::endl;
168 " TestTriggers: %15d RandomTriggers: %15d",
170 s << line << std::endl;
173 " DeadTime: %15d DeadTimeActiveTimeSlot: %15ld",
175 s << line << std::endl;
178 " DeadTimeActive: %15ld DeadTimeActiveCalibration:%15ld",
181 s << line << std::endl;
184 " LostTriggers: %15ld DeadTimeActivePartition: %15ld",
187 s << line << std::endl;
190 " LostTriggersActive:%15ld DeadTimeActiveThrottle: %15ld",
193 s << line << std::endl;
196 " NumberResets: %15d DeadTimeActivePrivate: %15ld",
199 s << line << std::endl;
201 s <<
"Physics Triggers" << std::endl;
203 int length = triggers.size() / 4;
204 for (
int i=0;
i<length;
i++)
206 sprintf(line,
" %3.3d: %10d %3.3d: %10d %3.3d: %10d %3.3d: %10d",
208 (i+length), triggers[i+length],
209 (i+(length*2)), triggers[i+(length*2)],
210 (i+(length*3)), triggers[i+(length*3)]);
211 s << line << std::endl;
214 s <<
"Test Triggers" << std::endl;
216 length = testTriggers.size() / 4;
217 for (
int i=0;
i<length;
i++)
219 sprintf(line,
" %3.3d: %10d %3.3d: %10d %3.3d: %10d %3.3d: %10d",
221 (i+length), testTriggers[i+length],
222 (i+(length*2)), testTriggers[i+(length*2)],
223 (i+(length*3)), testTriggers[i+(length*3)]);
224 s << line << std::endl;
unsigned long long deadTimeActive_
unsigned long long deadTimeActivePrivate_
unsigned long long PRIV_DEADTIMEA
TimeSpec collectionTimeSpecial_
unsigned long long deadTimeActivePartition() const
unsigned long long deadTimeActivePartition_
unsigned long long lostFinalTriggers() const
unsigned int eventNumber() const
void set_tv_nsec(long value)
timespec collectionTimeSpecial() const
timespec collectionTimeSummary() const
unsigned int numberResets() const
unsigned long long header
unsigned int FINOR_GENERATED
unsigned int FINOR_IN_INVALID_BC
unsigned int eventID() const
unsigned int totalTestTriggers() const
unsigned int LUMINOSITY_SEGMENT
unsigned int triggerNumber() const
unsigned int ALGO_RATE[ScalersRaw::N_L1_TRIGGERS_v1]
unsigned long long LOST_FINOR
struct TriggerScalersRaw_v1 trig
unsigned long long deadTimeActiveThrottle() const
unsigned int finalTriggersDistributed_
unsigned int eventNumber_
unsigned int numberResets_
unsigned int orbitNumber_
unsigned long long DEADTIMEA
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
unsigned long long TIMESLOT_DEADTIMEA
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
unsigned long long LOST_FINORA
TimeSpec collectionTimeDetails_
unsigned int collectionTimeSummary_sec
unsigned int TEST_TRIGGER
unsigned int luminositySection_
unsigned int collectionTimeSpecial_sec
unsigned int ORBIT_NUMBER
unsigned long long THROTTLE_DEADTIMEA
unsigned long long deadTimeActiveCalibration_
unsigned int trigType() const
std::ostream & operator<<(std::ostream &s, L1TriggerScalers const &c)
Pretty-print operator for L1TriggerScalers.
unsigned int triggerNumber_
unsigned int FINOR_DISTRIBUTED
unsigned int collectionTimeSpecial_nsec
unsigned int bunchCrossingErrors() const
unsigned long long deadTimeActiveThrottle_
unsigned int collectionTimeDetails_nsec
unsigned long long lostFinalTriggers_
unsigned int finalTriggersInvalidBC_
unsigned int NR_OF_RESETS
unsigned long long PTCSTATUS_DEADTIMEA
unsigned int collectionTimeDetails_sec
unsigned int RANDOM_TRIGGER
unsigned long long deadTime_
unsigned int bunchNumber_
std::vector< unsigned int > triggers() const
unsigned int calibrationTriggers() const
unsigned int TEST_RATE[ScalersRaw::N_L1_TEST_TRIGGERS_v1]
void set_tv_sec(long value)
TimeSpec collectionTimeSummary_
unsigned int collectionTimeSummary_nsec
unsigned int calibrationTriggers_
unsigned int finalTriggersInvalidBC() const
unsigned long long lostFinalTriggersActive_
unsigned int randomTriggers_
unsigned long long deadTimeActivePrivate() const
unsigned long long DEADTIME
unsigned long long CALIBRATION_DEADTIMEA
unsigned int finalTriggersGenerated_
unsigned short bunchCrossingErrors_
std::vector< unsigned int > triggers_