25 err_dxdz_((
float)0.0),
26 err_dydz_((
float)0.0),
30 err_width_x_((
float)0.0),
31 err_width_y_((
float)0.0),
32 err_sigma_z_((
float)0.0)
79 char line[kLineBufferSize];
82 s <<
"BeamSpotOnline Version: " << c.
version() <<
83 " SourceID: "<< c.
sourceID() << std::endl;
86 hora = gmtime(&ts.tv_sec);
87 strftime(zeit,
sizeof(zeit),
"%Y.%m.%d %H:%M:%S", hora);
88 snprintf(line, kLineBufferSize,
89 " CollectionTime: %s.%9.9d", zeit,
91 s << line << std::endl;
93 snprintf(line, kLineBufferSize,
94 " TrigType: %d EventID: %d BunchNumber: %d",
96 s << line << std::endl;
98 snprintf(line, kLineBufferSize,
99 " x: %e +/- %e width: %e +/- %e",
101 s << line << std::endl;
103 snprintf(line, kLineBufferSize,
104 " y: %e +/- %e width: %e +/- %e",
106 s << line << std::endl;
108 snprintf(line, kLineBufferSize,
109 " z: %e +/- %e sigma: %e +/- %e",
111 s << line << std::endl;
113 snprintf(line, kLineBufferSize,
114 " dxdy: %e +/- %e dydz: %e +/- %e",
116 s << line << std::endl;
virtual ~BeamSpotOnline()
void set_tv_nsec(long value)
unsigned int collectionTime_nsec
unsigned int collectionTime_sec
struct BeamSpotOnlineRaw_v4 beamSpotOnline
float err_width_y() const
unsigned long long header
unsigned int sourceID() const
unsigned int bunchNumber() const
float err_width_x() const
timespec collectionTime() const
unsigned int eventID() const
void set_tv_sec(long value)
std::ostream & operator<<(std::ostream &s, const BeamSpotOnline &c)
Pretty-print operator for BeamSpotOnline.
unsigned int trigType() const
float err_sigma_z() const
unsigned int bunchNumber_