168 char zeitHeaven[128];
169 struct tm * horaHeaven;
171 s <<
"Level1TriggerRates Version: " << c.
version()
172 <<
" Rates in Hz, DeltaT: ";
176 s << c.
deltaT() <<
" sec" << std::endl;
180 s <<
"n/a" << std::endl;
184 horaHeaven = gmtime(&secondsToHeaven.tv_sec);
185 strftime(zeitHeaven,
sizeof(zeitHeaven),
"%Y.%m.%d %H:%M:%S", horaHeaven);
186 sprintf(line,
" CollectionTime: %s.%9.9d" ,
187 zeitHeaven, (
int)secondsToHeaven.tv_nsec);
188 s << line << std::endl;
190 sprintf(line,
" GtTriggersRate: %22.3f Hz",
192 s << line << std::endl;
194 sprintf(line,
" GtEventsRate: %22.3f Hz",
196 s << line << std::endl;
199 horaHeaven = gmtime(&secondsToHeaven.tv_sec);
200 strftime(zeitHeaven,
sizeof(zeitHeaven),
"%Y.%m.%d %H:%M:%S", horaHeaven);
201 sprintf(line,
" CollectionTimeLumiSeg: %s.%9.9d" ,
202 zeitHeaven, (
int)secondsToHeaven.tv_nsec);
203 s << line << std::endl;
205 sprintf(line,
" TriggersPhysicsGeneratedFDLRate: %22.3f Hz",
207 s << line << std::endl;
209 sprintf(line,
" TriggersPhysicsLostRate: %22.3f Hz",
211 s << line << std::endl;
213 sprintf(line,
" TriggersPhysicsLostBeamActiveRate: %22.3f Hz",
215 s << line << std::endl;
217 sprintf(line,
" TriggersPhysicsLostBeamInactiveRate: %22.3f Hz",
219 s << line << std::endl;
221 sprintf(line,
" L1AsPhysicsRate: %22.3f Hz",
223 s << line << std::endl;
225 sprintf(line,
" L1AsRandomRate: %22.3f Hz",
227 s << line << std::endl;
229 sprintf(line,
" L1AsTestRate: %22.3f Hz",
231 s << line << std::endl;
233 sprintf(line,
" L1AsCalibrationRate: %22.3f Hz",
235 s << line << std::endl;
237 sprintf(line,
" DeadtimePercent: %22.3f %%",
239 s << line << std::endl;
241 sprintf(line,
" DeadtimeBeamActivePercent: %22.3f %%",
243 s << line << std::endl;
245 sprintf(line,
" DeadtimeBeamActiveTriggerRulesPercent: %22.3f %%",
247 s << line << std::endl;
249 sprintf(line,
" DeadtimeBeamActiveCalibrationPercent: %22.3f %%",
251 s << line << std::endl;
253 sprintf(line,
" DeadtimeBeamActivePrivateOrbitPercent: %22.3f %%",
255 s << line << std::endl;
257 sprintf(line,
" DeadtimeBeamActivePartitionControllerPercent:%22.3f %%",
259 s << line << std::endl;
261 sprintf(line,
" DeadtimeBeamActiveTimeSlotPercent: %22.3f %%",
263 s << line << std::endl;
265 s <<
"Physics GtAlgoCountsRate, Hz" << std::endl;
267 int length = gtAlgoCountsRate.size() / 4;
268 for (
int i=0;
i<length;
i++)
271 " %3.3d: %12.3f %3.3d: %12.3f %3.3d: %12.3f %3.3d: %12.3f",
272 i, gtAlgoCountsRate[
i],
273 (i+length), gtAlgoCountsRate[i+length],
274 (i+(length*2)), gtAlgoCountsRate[i+(length*2)],
275 (i+(length*3)), gtAlgoCountsRate[i+(length*3)]);
276 s << line << std::endl;
279 s <<
"Test GtTechCountsRate, Hz" << std::endl;
281 length = gtTechCountsRate.size() / 4;
282 for (
int i=0; i<length; i++)
285 " %3.3d: %12.3f %3.3d: %12.3f %3.3d: %12.3f %3.3d: %12.3f",
286 i, gtTechCountsRate[i],
287 (i+length), gtTechCountsRate[i+length],
288 (i+(length*2)), gtTechCountsRate[i+(length*2)],
289 (i+(length*3)), gtTechCountsRate[i+(length*3)]);
290 s << line << std::endl;
double l1AsTestRate() const
double deadtimeBeamActivePartitionControllerPercent() const
double triggersPhysicsGeneratedFDLRate() const
timespec collectionTime()
double l1AsRandomRate() const
double triggersPhysicsLostBeamActiveRate() const
double gtTriggersRate() const
std::vector< double > gtAlgoCountsRate() const
int version() const
get the data
double triggersPhysicsLostBeamInactiveRate() const
double deadtimeBeamActivePercent() const
double deadtimeBeamActiveTriggerRulesPercent() const
double deadtimeBeamActivePrivateOrbitPercent() const
unsigned long long deltaNS() const
timespec collectionTimeLumiSeg()
double deadtimeBeamActiveTimeSlotPercent() const
double gtEventsRate() const
double deadtimePercent() const
double triggersPhysicsLostRate() const
double deadtimeBeamActiveCalibrationPercent() const
std::vector< double > gtTechCountsRate() const
double l1AsCalibrationRate() const
double l1AsPhysicsRate() const