Go to the source code of this file.
◆ operator<<()
std::ostream& operator<< |
( |
std::ostream & |
s, |
|
|
const LumiScalers & |
c |
|
) |
| |
Pretty-print operator for LumiScalers.
Definition at line 124 of file LumiScalers.cc.
126 constexpr
size_t kLineBufferSize = 157;
127 char line[kLineBufferSize];
130 s <<
"LumiScalers Version: " <<
c.version() <<
" SourceID: " <<
c.sourceID() << std::endl;
132 timespec ts =
c.collectionTime();
133 hora = gmtime(&ts.tv_sec);
134 strftime(zeit,
sizeof(zeit),
"%Y.%m.%d %H:%M:%S", hora);
135 snprintf(
line, kLineBufferSize,
" CollectionTime: %s.%9.9d", zeit, (
int)ts.tv_nsec);
136 s <<
line << std::endl;
140 " TrigType: %d EventID: %d BunchNumber: %d",
144 s <<
line << std::endl;
148 " SectionNumber: %10d StartOrbit: %10d NumOrbits: %10d",
152 s <<
line << std::endl;
156 " Normalization: %e DeadTimeNormalization: %e",
158 c.deadTimeNormalization());
159 s <<
line << std::endl;
163 snprintf(
line, kLineBufferSize,
" LumiFill: %e LumiRun: %e",
c.lumiFill(),
c.lumiRun());
164 s <<
line << std::endl;
166 line, kLineBufferSize,
" LiveLumiFill: %e LiveLumiRun: %e",
c.liveLumiFill(),
c.liveLumiRun());
167 s <<
line << std::endl;
169 snprintf(
line, kLineBufferSize,
" LumiETFill: %e LumiETRun: %e",
c.lumiFill(),
c.lumiRun());
170 s <<
line << std::endl;
173 line, kLineBufferSize,
" LiveLumiETFill: %e LiveLumETiRun: %e",
c.liveLumiETFill(),
c.liveLumiETRun());
174 s <<
line << std::endl;
176 int length =
c.instantOccLumi().size();
177 for (
int i = 0;
i < length;
i++) {
180 " LumiOccFill[%d]: %e LumiOccRun[%d]: %e",
185 s <<
line << std::endl;
189 " LiveLumiOccFill[%d]: %e LiveLumiOccRun[%d]: %e",
191 c.liveLumiOccFill()[
i],
193 c.liveLumiOccRun()[
i]);
194 s <<
line << std::endl;
201 " InstantLumi: %e Err: %e Qlty: %d",
204 c.instantLumiQlty());
205 s <<
line << std::endl;
209 " InstantETLumi: %e Err: %e Qlty: %d",
211 c.instantETLumiErr(),
212 c.instantETLumiQlty());
213 s <<
line << std::endl;
215 for (
int i = 0;
i < length;
i++) {
218 " InstantOccLumi[%d]: %e Err: %e Qlty: %d",
220 c.instantOccLumi()[
i],
221 c.instantOccLumiErr()[
i],
222 c.instantOccLumiQlty()[
i]);
223 s <<
line << std::endl;
224 snprintf(
line, kLineBufferSize,
" LumiNoise[%d]: %e",
i,
c.lumiNoise()[
i]);
225 s <<
line << std::endl;
228 snprintf(
line, kLineBufferSize,
" Pileup: %f PileupRMS: %f",
c.pileup(),
c.pileupRMS());
229 s <<
line << std::endl;
231 snprintf(
line, kLineBufferSize,
" BunchLumi: %f Spare: %f",
c.bunchLumi(),
c.spare());
232 s <<
line << std::endl;
References c, mps_fire::i, mps_splice::line, and alignCSCRings::s.