Class to contain DCS information from soft FED 1022. More...
#include <DCSRecord.h>
Public Types | |
typedef std::array< std::string, Last > | ParitionNames |
Get the names of all high-voltage partitions. More... | |
enum | Partition { EBp, EBm, EEp, EEm, HBHEa, HBHEb, HBHEc, HF, HO, RPC, DT0, DTp, DTm, CSCp, CSCm, CASTOR, ZDC, TIBTID, TOB, TECp, TECm, BPIX, FPIX, ESp, ESm, GEMp, GEMm, Last } |
Public Member Functions | |
DCSRecord () | |
DCSRecord (const online::DCS_v1 &) | |
DCSRecord (const online::DCS_v2 &) | |
bool | highVoltageReady (const uint8_t partitionNumber) const |
Return true if the high voltage of the given parition is ready. More... | |
bool | highVoltageValid (const uint8_t partitionNumber) const |
Return true if the high voltage bit of the given partition is valid. More... | |
float | magnetCurrent () const |
Return the current of the CMS magnet in A. More... | |
float | magneticField () const |
const ParitionNames & | paritionNames () const |
const std::string & | partitionName (const uint8_t partitionNumber) const |
Return the name of the high voltage of the given parition. More... | |
const edm::Timestamp & | timestamp () const |
Return the time of the last change. More... | |
virtual | ~DCSRecord () |
Private Attributes | |
std::bitset< Partition::Last > | highVoltageReady_ |
std::bitset< Partition::Last > | highVoltageValid_ |
float | magnetCurrent_ |
edm::Timestamp | timestamp_ |
Static Private Attributes | |
static const ParitionNames | partitionNames_ |
Class to contain DCS information from soft FED 1022.
Definition at line 20 of file DCSRecord.h.
typedef std::array<std::string, Last> DCSRecord::ParitionNames |
Get the names of all high-voltage partitions.
Definition at line 64 of file DCSRecord.h.
enum DCSRecord::Partition |
Enumerator | |
---|---|
EBp | |
EBm | |
EEp | |
EEm | |
HBHEa | |
HBHEb | |
HBHEc | |
HF | |
HO | |
RPC | |
DT0 | |
DTp | |
DTm | |
CSCp | |
CSCm | |
CASTOR | |
ZDC | |
TIBTID | |
TOB | |
TECp | |
TECm | |
BPIX | |
FPIX | |
ESp | |
ESm | |
GEMp | |
GEMm | |
Last |
Definition at line 24 of file DCSRecord.h.
DCSRecord::DCSRecord | ( | ) |
Definition at line 11 of file DCSRecord.cc.
|
explicit |
Definition at line 13 of file DCSRecord.cc.
References online::DCS_v1::highVoltageReady, highVoltageReady_, highVoltageValid_, online::DCS_v1::magnetCurrent, magnetCurrent_, seconds(), online::DCS_v1::timestamp, and timestamp_.
|
explicit |
Definition at line 24 of file DCSRecord.cc.
References online::DCS_v2::highVoltageReady, highVoltageReady_, online::DCS_v2::highVoltageValid, highVoltageValid_, online::DCS_v2::magnetCurrent, magnetCurrent_, seconds(), online::DCS_v2::timestamp, and timestamp_.
|
virtual |
Definition at line 34 of file DCSRecord.cc.
|
inline |
Return true if the high voltage of the given parition is ready.
Definition at line 71 of file DCSRecord.h.
References highVoltageReady_.
Referenced by operator<<().
|
inline |
Return true if the high voltage bit of the given partition is valid.
Definition at line 74 of file DCSRecord.h.
References highVoltageValid_.
Referenced by operator<<().
|
inline |
Return the current of the CMS magnet in A.
Definition at line 77 of file DCSRecord.h.
References magnetCurrent_.
Referenced by operator<<().
|
inline |
Return the magnetic field of the CMS magnet in T The precision is 0.6 to 1.8 mT in the range of a current from 9500 to 18164 A (from Vyach) esla v.Kly ukhi n@cer n.ch
Definition at line 81 of file DCSRecord.h.
References magnetCurrent_.
|
inline |
|
inline |
Return the name of the high voltage of the given parition.
Definition at line 68 of file DCSRecord.h.
References partitionNames_.
Referenced by operator<<().
|
inline |
Return the time of the last change.
Definition at line 61 of file DCSRecord.h.
References timestamp_.
Referenced by operator<<().
|
private |
Definition at line 85 of file DCSRecord.h.
Referenced by DCSRecord(), and highVoltageReady().
|
private |
Definition at line 86 of file DCSRecord.h.
Referenced by DCSRecord(), and highVoltageValid().
|
private |
Definition at line 87 of file DCSRecord.h.
Referenced by DCSRecord(), magnetCurrent(), and magneticField().
|
staticprivate |
Definition at line 88 of file DCSRecord.h.
Referenced by paritionNames(), and partitionName().
|
private |
Definition at line 84 of file DCSRecord.h.
Referenced by DCSRecord(), and timestamp().