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",
122 c.trigType(),
c.eventID(),
c.bunchNumber());
123 s << line << std::endl;
125 timespec secondsToHeaven =
c.collectionTimeSummary();
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;
132 timespec secondsToHell=
c.collectionTimeSpecial();
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;
139 timespec secondsToLimbo=
c.collectionTimeDetails();
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",
148 c.luminositySection(),
c.bunchCrossingErrors());
149 s << line << std::endl;
152 " TriggerNumber: %15d EventNumber: %15d",
153 c.triggerNumber(),
c.eventNumber());
154 s << line << std::endl;
157 " TriggersDistributed: %10d TriggersGenerated: %15d",
158 c.finalTriggersDistributed(),
159 c.finalTriggersGenerated());
160 s << line << std::endl;
163 " TriggersInvalidBC: %15d CalibrationTriggers: %15d",
164 c.finalTriggersInvalidBC(),
c.calibrationTriggers());
165 s << line << std::endl;
168 " TestTriggers: %15d RandomTriggers: %15d",
169 c.totalTestTriggers(),
c.randomTriggers());
170 s << line << std::endl;
173 " DeadTime: %15d DeadTimeActiveTimeSlot: %15ld",
174 c.numberResets(), (
long int)
c.deadTime());
175 s << line << std::endl;
178 " DeadTimeActive: %15ld DeadTimeActiveCalibration:%15ld",
179 (
long int)
c.deadTimeActive(),
180 (
long int)
c.deadTimeActiveCalibration());
181 s << line << std::endl;
184 " LostTriggers: %15ld DeadTimeActivePartition: %15ld",
185 (
long int)
c.lostFinalTriggers(),
186 (
long int)
c.deadTimeActivePartition());
187 s << line << std::endl;
190 " LostTriggersActive:%15ld DeadTimeActiveThrottle: %15ld",
191 (
long int)
c.lostFinalTriggersActive(),
192 (
long int)
c.deadTimeActiveThrottle());
193 s << line << std::endl;
196 " NumberResets: %15d DeadTimeActivePrivate: %15ld",
198 (
long int)
c.deadTimeActivePrivate());
199 s << line << std::endl;
201 s <<
"Physics Triggers" << std::endl;
202 std::vector<unsigned int>
triggers =
c.triggers();
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;
215 std::vector<unsigned int> testTriggers =
c.testTriggers();
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;