15 "EBp",
"EBm",
"EEp",
"EEm",
"HBHEa",
"HBHEb",
"HBHEc",
"HF",
"HO",
"RPC",
"DT0",
"DTp",
"DTm",
16 "CSCp",
"CSCm",
"CASTOR",
"ZDC",
"TIBTID",
"TOB",
"TECp",
"TECm",
"BPIX",
"FPIX",
"ESp",
"ESm"};
24 collectionTime_(0, 0),
26 magnetCurrent_((
float)0.0),
27 magnetTemperature_((
float)0.0) {}
53 char zeit[kZeitBufferSize];
55 char line[kLineBufferSize];
58 s <<
"DcsStatus Version: " <<
c.version() <<
" SourceID: " <<
c.sourceID() << std::endl;
60 timespec ts =
c.collectionTime();
61 hora = gmtime(&ts.tv_sec);
62 strftime(zeit, kZeitBufferSize,
"%Y.%m.%d %H:%M:%S", hora);
63 snprintf(
line, kLineBufferSize,
" CollectionTime: %s.%9.9d", zeit, (
int)ts.tv_nsec);
64 s <<
line << std::endl;
68 " TrigType: %d EventID: %d BunchNumber: %d",
72 s <<
line << std::endl;
75 line, kLineBufferSize,
" MagnetCurrent: %e MagnetTemperature: %e",
c.magnetCurrent(),
c.magnetTemperature());
76 s <<
line << std::endl;
78 snprintf(
line, kLineBufferSize,
" Ready: %d 0x%8.8X",
c.ready(),
c.ready());
79 s <<
line << std::endl;
87 s <<
line << std::endl;
unsigned int bunchNumber_
void set_tv_nsec(long value)
unsigned long long header
unsigned int collectionTime_sec
static const char *const partitionName[]
unsigned int collectionTime_nsec
void set_tv_sec(long value)
struct DcsStatusRaw_v4 dcsStatus
std::ostream & operator<<(std::ostream &s, const DcsStatus &c)
Pretty-print operator for DcsStatus.
static const int partitionList[]