72 magnetCurrent_((
float)0.0),
73 magnetTemperature_((
float)0.0)
106 char zeit[kZeitBufferSize];
108 char line[kLineBufferSize];
111 s <<
"DcsStatus Version: " << c.
version() <<
112 " SourceID: "<< c.
sourceID() << std::endl;
115 hora = gmtime(&ts.tv_sec);
116 strftime(zeit, kZeitBufferSize,
"%Y.%m.%d %H:%M:%S", hora);
117 snprintf(line, kLineBufferSize,
" CollectionTime: %s.%9.9d", zeit,
119 s << line << std::endl;
121 snprintf(line, kLineBufferSize,
" TrigType: %d EventID: %d BunchNumber: %d",
123 s << line << std::endl;
125 snprintf(line, kLineBufferSize,
" MagnetCurrent: %e MagnetTemperature: %e",
127 s << line << std::endl;
129 snprintf(line,kLineBufferSize,
" Ready: %d 0x%8.8X", c.
ready(), c.
ready());
130 s << line << std::endl;
142 s << line << std::endl;
unsigned int trigType() const
timespec collectionTime() const
unsigned int bunchNumber_
void set_tv_nsec(long value)
unsigned int bunchNumber() const
float magnetTemperature() const
unsigned long long header
unsigned int ready() const
unsigned int sourceID() const
unsigned int collectionTime_sec
static const char *const partitionName[]
unsigned int collectionTime_nsec
void set_tv_sec(long value)
struct DcsStatusRaw_v4 dcsStatus
float magnetCurrent() const
unsigned int eventID() const
std::ostream & operator<<(std::ostream &s, const DcsStatus &c)
Pretty-print operator for DcsStatus.
static const int partitionList[]