Go to the source code of this file.
◆ operator<<()
std::ostream& operator<< |
( |
std::ostream & |
s, |
|
|
const BeamSpotOnline & |
c |
|
) |
| |
Pretty-print operator for BeamSpotOnline.
Definition at line 69 of file BeamSpotOnline.cc.
References DummyCfis::c, ALPAKA_ACCELERATOR_NAMESPACE::brokenline::constexpr(), mps_splice::line, and alignCSCRings::s.
72 char line[kLineBufferSize];
75 s <<
"BeamSpotOnline Version: " <<
c.version() <<
" SourceID: " <<
c.sourceID() << std::endl;
77 timespec ts =
c.collectionTime();
78 hora = gmtime(&ts.tv_sec);
79 strftime(zeit,
sizeof(zeit),
"%Y.%m.%d %H:%M:%S", hora);
80 snprintf(
line, kLineBufferSize,
" CollectionTime: %s.%9.9d", zeit, (
int)ts.tv_nsec);
81 s <<
line << std::endl;
85 " TrigType: %d EventID: %d BunchNumber: %d",
89 s <<
line << std::endl;
92 line, kLineBufferSize,
" x: %e +/- %e width: %e +/- %e",
c.x(),
c.err_x(),
c.width_x(),
c.err_width_x());
93 s <<
line << std::endl;
96 line, kLineBufferSize,
" y: %e +/- %e width: %e +/- %e",
c.y(),
c.err_y(),
c.width_y(),
c.err_width_y());
97 s <<
line << std::endl;
100 line, kLineBufferSize,
" z: %e +/- %e sigma: %e +/- %e",
c.z(),
c.err_z(),
c.sigma_z(),
c.err_sigma_z());
101 s <<
line << std::endl;
104 line, kLineBufferSize,
" dxdy: %e +/- %e dydz: %e +/- %e",
c.dxdz(),
c.err_dxdz(),
c.dydz(),
c.err_dydz());
105 s <<
line << std::endl;