Class to contain CTPPS information from soft FED 1022. More...
#include <CTPPSRecord.h>
Public Types | |
enum | RomanPot { RP_45_210_FR_BT, RP_45_210_FR_HR, RP_45_210_FR_TP, RP_45_220_C1, RP_45_220_FR_BT, RP_45_220_FR_HR, RP_45_220_FR_TP, RP_45_220_NR_BT, RP_45_220_NR_TP, RP_56_210_FR_BT, RP_56_210_FR_HR, RP_56_210_FR_TP, RP_56_220_C1, RP_56_220_FR_BT, RP_56_220_FR_HR, RP_56_220_FR_TP, RP_56_220_NR_BT, RP_56_220_NR_TP, Last } |
typedef std::array < std::string, Last > | RomanPotNames |
Get the names of all roman pots. More... | |
enum | Status { unused, bad, warning, ok } |
Public Member Functions | |
CTPPSRecord () | |
CTPPSRecord (const online::CTPPS_v1 &) | |
const std::string & | romanPotName (const uint8_t rp) const |
Return the name of the roman pot. More... | |
const RomanPotNames & | romanPotNames () const |
Status | status (const uint8_t rp) const |
Return the status of the given roman pot. More... | |
const std::string & | statusName (const uint8_t rp) const |
Return the status as string. More... | |
const edm::Timestamp & | timestamp () const |
Return the time of the last change. More... | |
virtual | ~CTPPSRecord () |
Private Attributes | |
uint64_t | status_ |
edm::Timestamp | timestamp_ |
Static Private Attributes | |
static const RomanPotNames | romanPotNames_ |
static const std::array < std::string, 4 > | statusNames_ = {{"unused", "bad", "warning", "ok"}} |
Class to contain CTPPS information from soft FED 1022.
Definition at line 20 of file CTPPSRecord.h.
typedef std::array<std::string, Last> CTPPSRecord::RomanPotNames |
Get the names of all roman pots.
Definition at line 54 of file CTPPSRecord.h.
Definition at line 22 of file CTPPSRecord.h.
enum CTPPSRecord::Status |
Enumerator | |
---|---|
unused | |
bad | |
warning | |
ok |
Definition at line 44 of file CTPPSRecord.h.
CTPPSRecord::CTPPSRecord | ( | ) |
Definition at line 28 of file CTPPSRecord.cc.
|
explicit |
Definition at line 30 of file CTPPSRecord.cc.
References seconds(), online::CTPPS_v1::status, status_, online::CTPPS_v1::timestamp, and timestamp_.
|
virtual |
Definition at line 38 of file CTPPSRecord.cc.
|
inline |
Return the name of the roman pot.
Definition at line 58 of file CTPPSRecord.h.
References romanPotNames_.
Referenced by operator<<().
|
inline |
|
inline |
Return the status of the given roman pot.
Definition at line 61 of file CTPPSRecord.h.
References status_.
Referenced by statusName().
|
inline |
Return the status as string.
Definition at line 64 of file CTPPSRecord.h.
References status(), and statusNames_.
Referenced by operator<<().
|
inline |
Return the time of the last change.
Definition at line 51 of file CTPPSRecord.h.
References timestamp_.
Referenced by operator<<().
|
staticprivate |
Definition at line 70 of file CTPPSRecord.h.
Referenced by romanPotName(), and romanPotNames().
|
private |
Definition at line 68 of file CTPPSRecord.h.
Referenced by CTPPSRecord(), and status().
|
staticprivate |
Definition at line 69 of file CTPPSRecord.h.
Referenced by statusName().
|
private |
Definition at line 67 of file CTPPSRecord.h.
Referenced by CTPPSRecord(), and timestamp().