#include <DcsStatus.h>
Classes | |
class | h |
Persistable copy of online DcsStatus flag values. More... | |
Public Types | |
enum | { EBp = 0, EBm = 1, EEp = 2, EEm = 3, HBHEa = 5, HBHEb = 6, HBHEc = 7, HF = 8, HO = 9, RPC = 12, DT0 = 13, DTp = 14, DTm = 15, CSCp = 16, CSCm = 17, CASTOR = 20, ZDC = 22, TIBTID = 24, TOB = 25, TECp = 26, TECm = 27, BPIX = 28, FPIX = 29, ESp = 30, ESm = 31, nPartitions = 25 } |
Public Member Functions | |
unsigned int | bunchNumber () const |
timespec | collectionTime () const |
DcsStatus (const unsigned char *rawData) | |
DcsStatus () | |
bool | empty () const |
empty method (= false) | |
unsigned int | eventID () const |
float | magnetCurrent () const |
float | magnetTemperature () const |
std::string | name () const |
name method | |
int | operator!= (const DcsStatus &e) const |
inequality operator | |
int | operator== (const DcsStatus &e) const |
equality operator | |
bool | ready (int partitionNumber) const |
unsigned int | ready () const |
unsigned int | sourceID () const |
unsigned int | trigType () const |
int | version () const |
virtual | ~DcsStatus () |
Static Public Attributes | |
static const int | partitionList [] |
static const char * | partitionName [] |
Protected Attributes | |
unsigned int | bunchNumber_ |
TimeSpec | collectionTime_ |
unsigned int | eventID_ |
float | magnetCurrent_ |
float | magnetTemperature_ |
unsigned int | ready_ |
unsigned int | sourceID_ |
unsigned int | trigType_ |
int | version_ |
Definition at line 28 of file DcsStatus.h.
anonymous enum |
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 | |
nPartitions |
Definition at line 35 of file DcsStatus.h.
DcsStatus::DcsStatus | ( | ) |
Definition at line 64 of file DcsStatus.cc.
Referenced by DcsStatus().
: trigType_(0), eventID_(0), sourceID_(0), bunchNumber_(0), version_(0), collectionTime_(0,0), ready_(0), magnetCurrent_((float)0.0), magnetTemperature_((float)0.0) { }
DcsStatus::DcsStatus | ( | const unsigned char * | rawData | ) |
Definition at line 77 of file DcsStatus.cc.
References bunchNumber_, collectionTime_, DcsStatusRaw_v4::collectionTime_nsec, DcsStatusRaw_v4::collectionTime_sec, ScalersEventRecordRaw_v4::dcsStatus, DcsStatus(), eventID_, ScalersEventRecordRaw_v4::header, DcsStatusRaw_v4::magnetCurrent, magnetCurrent_, DcsStatusRaw_v4::magnetTemperature, magnetTemperature_, DcsStatusRaw_v4::ready, ready_, TimeSpec::set_tv_nsec(), TimeSpec::set_tv_sec(), sourceID_, trigType_, ScalersEventRecordRaw_v4::version, and version_.
{ DcsStatus(); struct ScalersEventRecordRaw_v4 * raw = (struct ScalersEventRecordRaw_v4 *)rawData; trigType_ = ( raw->header >> 56 ) & 0xFULL; eventID_ = ( raw->header >> 32 ) & 0x00FFFFFFULL; sourceID_ = ( raw->header >> 8 ) & 0x00000FFFULL; bunchNumber_ = ( raw->header >> 20 ) & 0xFFFULL; version_ = raw->version; if ( version_ >= 4 ) { collectionTime_.set_tv_sec(static_cast<long>(raw->dcsStatus.collectionTime_sec)); collectionTime_.set_tv_nsec(raw->dcsStatus.collectionTime_nsec); ready_ = raw->dcsStatus.ready; magnetCurrent_ = raw->dcsStatus.magnetCurrent; magnetTemperature_ = raw->dcsStatus.magnetTemperature; } }
DcsStatus::~DcsStatus | ( | ) | [virtual] |
Definition at line 99 of file DcsStatus.cc.
{ }
unsigned int DcsStatus::bunchNumber | ( | ) | const [inline] |
Definition at line 79 of file DcsStatus.h.
References bunchNumber_.
Referenced by operator<<().
{ return(bunchNumber_);}
timespec DcsStatus::collectionTime | ( | ) | const [inline] |
Definition at line 82 of file DcsStatus.h.
References collectionTime_, and TimeSpec::get_timespec().
Referenced by operator<<().
{ return(collectionTime_.get_timespec());}
bool DcsStatus::empty | ( | ) | const [inline] |
unsigned int DcsStatus::eventID | ( | ) | const [inline] |
Definition at line 77 of file DcsStatus.h.
References eventID_.
Referenced by operator<<().
{ return(eventID_);}
float DcsStatus::magnetCurrent | ( | ) | const [inline] |
Definition at line 89 of file DcsStatus.h.
References magnetCurrent_.
Referenced by operator<<().
{ return(magnetCurrent_);}
float DcsStatus::magnetTemperature | ( | ) | const [inline] |
Definition at line 90 of file DcsStatus.h.
References magnetTemperature_.
Referenced by operator<<().
{ return(magnetTemperature_);}
std::string DcsStatus::name | ( | ) | const [inline] |
int DcsStatus::operator!= | ( | const DcsStatus & | e | ) | const [inline] |
int DcsStatus::operator== | ( | const DcsStatus & | e | ) | const [inline] |
unsigned int DcsStatus::ready | ( | ) | const [inline] |
Definition at line 84 of file DcsStatus.h.
References ready_.
Referenced by operator<<().
{ return(ready_);}
bool DcsStatus::ready | ( | int | partitionNumber | ) | const [inline] |
Definition at line 86 of file DcsStatus.h.
References ready_.
{ return( (ready_ & ( 1 << partitionNumber )) != 0 );}
unsigned int DcsStatus::sourceID | ( | ) | const [inline] |
Definition at line 78 of file DcsStatus.h.
References sourceID_.
Referenced by operator<<().
{ return(sourceID_);}
unsigned int DcsStatus::trigType | ( | ) | const [inline] |
Definition at line 76 of file DcsStatus.h.
References trigType_.
Referenced by operator<<().
{ return(trigType_);}
int DcsStatus::version | ( | ) | const [inline] |
Definition at line 81 of file DcsStatus.h.
References version_.
Referenced by operator<<().
{ return(version_);}
unsigned int DcsStatus::bunchNumber_ [protected] |
Definition at line 103 of file DcsStatus.h.
Referenced by bunchNumber(), and DcsStatus().
TimeSpec DcsStatus::collectionTime_ [protected] |
Definition at line 107 of file DcsStatus.h.
Referenced by collectionTime(), and DcsStatus().
unsigned int DcsStatus::eventID_ [protected] |
Definition at line 101 of file DcsStatus.h.
Referenced by DcsStatus(), and eventID().
float DcsStatus::magnetCurrent_ [protected] |
Definition at line 109 of file DcsStatus.h.
Referenced by DcsStatus(), and magnetCurrent().
float DcsStatus::magnetTemperature_ [protected] |
Definition at line 110 of file DcsStatus.h.
Referenced by DcsStatus(), and magnetTemperature().
const int DcsStatus::partitionList [static] |
{ 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 }
Definition at line 32 of file DcsStatus.h.
Referenced by DetStatus::DetStatus(), DetStatus::filter(), and operator<<().
const char * DcsStatus::partitionName [static] |
{ "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" }
Definition at line 33 of file DcsStatus.h.
Referenced by DetStatus::DetStatus(), DetStatus::filter(), and operator<<().
unsigned int DcsStatus::ready_ [protected] |
Definition at line 108 of file DcsStatus.h.
Referenced by DcsStatus(), and ready().
unsigned int DcsStatus::sourceID_ [protected] |
Definition at line 102 of file DcsStatus.h.
Referenced by DcsStatus(), and sourceID().
unsigned int DcsStatus::trigType_ [protected] |
Definition at line 100 of file DcsStatus.h.
Referenced by DcsStatus(), and trigType().
int DcsStatus::version_ [protected] |
Definition at line 105 of file DcsStatus.h.
Referenced by DcsStatus(), and version().