Go to the source code of this file.
◆ operator<<()
Pretty-print operator for Level1TriggerRates.
Definition at line 133 of file Level1TriggerRates.cc.
134 constexpr
size_t kLineBufferSize = 164;
135 char line[kLineBufferSize];
136 char zeitHeaven[128];
137 struct tm* horaHeaven;
139 s <<
"Level1TriggerRates Version: " <<
c.version() <<
" Rates in Hz, DeltaT: ";
141 if (
c.deltaNS() > 0) {
142 s <<
c.deltaT() <<
" sec" << std::endl;
144 s <<
"n/a" << std::endl;
147 struct timespec secondsToHeaven =
c.collectionTime();
148 horaHeaven = gmtime(&secondsToHeaven.tv_sec);
149 strftime(zeitHeaven,
sizeof(zeitHeaven),
"%Y.%m.%d %H:%M:%S", horaHeaven);
150 snprintf(
line, kLineBufferSize,
" CollectionTime: %s.%9.9d", zeitHeaven, (
int)secondsToHeaven.tv_nsec);
151 s <<
line << std::endl;
153 snprintf(
line, kLineBufferSize,
" GtTriggersRate: %22.3f Hz",
c.gtTriggersRate());
154 s <<
line << std::endl;
156 snprintf(
line, kLineBufferSize,
" GtEventsRate: %22.3f Hz",
c.gtEventsRate());
157 s <<
line << std::endl;
159 secondsToHeaven =
c.collectionTimeLumiSeg();
160 horaHeaven = gmtime(&secondsToHeaven.tv_sec);
161 strftime(zeitHeaven,
sizeof(zeitHeaven),
"%Y.%m.%d %H:%M:%S", horaHeaven);
162 snprintf(
line, kLineBufferSize,
" CollectionTimeLumiSeg: %s.%9.9d", zeitHeaven, (
int)secondsToHeaven.tv_nsec);
163 s <<
line << std::endl;
167 " TriggersPhysicsGeneratedFDLRate: %22.3f Hz",
168 c.triggersPhysicsGeneratedFDLRate());
169 s <<
line << std::endl;
172 line, kLineBufferSize,
" TriggersPhysicsLostRate: %22.3f Hz",
c.triggersPhysicsLostRate());
173 s <<
line << std::endl;
177 " TriggersPhysicsLostBeamActiveRate: %22.3f Hz",
178 c.triggersPhysicsLostBeamActiveRate());
179 s <<
line << std::endl;
183 " TriggersPhysicsLostBeamInactiveRate: %22.3f Hz",
184 c.triggersPhysicsLostBeamInactiveRate());
185 s <<
line << std::endl;
187 snprintf(
line, kLineBufferSize,
" L1AsPhysicsRate: %22.3f Hz",
c.l1AsPhysicsRate());
188 s <<
line << std::endl;
190 snprintf(
line, kLineBufferSize,
" L1AsRandomRate: %22.3f Hz",
c.l1AsRandomRate());
191 s <<
line << std::endl;
193 snprintf(
line, kLineBufferSize,
" L1AsTestRate: %22.3f Hz",
c.l1AsTestRate());
194 s <<
line << std::endl;
196 snprintf(
line, kLineBufferSize,
" L1AsCalibrationRate: %22.3f Hz",
c.l1AsCalibrationRate());
197 s <<
line << std::endl;
199 snprintf(
line, kLineBufferSize,
" DeadtimePercent: %22.3f %%",
c.deadtimePercent());
200 s <<
line << std::endl;
203 line, kLineBufferSize,
" DeadtimeBeamActivePercent: %22.3f %%",
c.deadtimeBeamActivePercent());
204 s <<
line << std::endl;
208 " DeadtimeBeamActiveTriggerRulesPercent: %22.3f %%",
209 c.deadtimeBeamActiveTriggerRulesPercent());
210 s <<
line << std::endl;
214 " DeadtimeBeamActiveCalibrationPercent: %22.3f %%",
215 c.deadtimeBeamActiveCalibrationPercent());
216 s <<
line << std::endl;
220 " DeadtimeBeamActivePrivateOrbitPercent: %22.3f %%",
221 c.deadtimeBeamActivePrivateOrbitPercent());
222 s <<
line << std::endl;
226 " DeadtimeBeamActivePartitionControllerPercent:%22.3f %%",
227 c.deadtimeBeamActivePartitionControllerPercent());
228 s <<
line << std::endl;
232 " DeadtimeBeamActiveTimeSlotPercent: %22.3f %%",
233 c.deadtimeBeamActiveTimeSlotPercent());
234 s <<
line << std::endl;
236 s <<
"Physics GtAlgoCountsRate, Hz" << std::endl;
237 const std::vector<double> gtAlgoCountsRate =
c.gtAlgoCountsRate();
238 int length = gtAlgoCountsRate.size() / 4;
239 for (
int i = 0;
i < length;
i++) {
242 " %3.3d: %12.3f %3.3d: %12.3f %3.3d: %12.3f %3.3d: %12.3f",
246 gtAlgoCountsRate[
i + length],
248 gtAlgoCountsRate[
i + (length * 2)],
250 gtAlgoCountsRate[
i + (length * 3)]);
251 s <<
line << std::endl;
254 s <<
"Test GtTechCountsRate, Hz" << std::endl;
255 const std::vector<double> gtTechCountsRate =
c.gtTechCountsRate();
256 length = gtTechCountsRate.size() / 4;
257 for (
int i = 0;
i < length;
i++) {
260 " %3.3d: %12.3f %3.3d: %12.3f %3.3d: %12.3f %3.3d: %12.3f",
264 gtTechCountsRate[
i + length],
266 gtTechCountsRate[
i + (length * 2)],
268 gtTechCountsRate[
i + (length * 3)]);
269 s <<
line << std::endl;
References HltBtagPostValidation_cff::c, mps_fire::i, mps_splice::line, and alignCSCRings::s.