31 {{
"unused",
"bad",
"warning",
"ok"}};
44 const uint32_t microseconds = (ctpps.
timestamp % 1000) * 1000;
57 s <<
"timeStamp: " << asctime(localtime(&ts));
58 s <<
"Roman pot states:" << std::endl;
60 for (uint8_t
i = 0;
i < CTPPSRecord::RomanPot::Last; ++
i) {
61 s <<
" " << std::setw(16) << std::left << ctpps.
romanPotName(
i)
const std::string & statusName(const uint8_t rp) const
Return the status as string.
std::ostream & operator<<(std::ostream &s, const CTPPSRecord &ctpps)
Pretty-print operator for CTPPSRecord.
static const RomanPotNames romanPotNames_
unsigned int unixTime() const
Time in seconds since January 1, 1970.
const std::string & romanPotName(const uint8_t rp) const
Return the name of the roman pot.
const edm::Timestamp & timestamp() const
Return the time of the last change.
unsigned long long uint64_t
std::array< std::string, Last > RomanPotNames
Get the names of all roman pots.
Class to contain CTPPS information from soft FED 1022.
static const std::array< std::string, 4 > statusNames_
edm::Timestamp timestamp_