CMS 3D CMS Logo

Classes | Public Types | Public Member Functions | Static Public Attributes | Protected Attributes

DcsStatus Class Reference

#include <DcsStatus.h>

List of all members.

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_

Detailed Description

Definition at line 28 of file DcsStatus.h.


Member Enumeration Documentation

anonymous enum
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 
nPartitions 

Definition at line 35 of file DcsStatus.h.

  {
    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
  };

Constructor & Destructor Documentation

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)
DcsStatus::~DcsStatus ( ) [virtual]

Definition at line 99 of file DcsStatus.cc.

{ } 

Member Function Documentation

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<<().

bool DcsStatus::empty ( ) const [inline]

empty method (= false)

Definition at line 74 of file DcsStatus.h.

{ return false; }
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]

name method

Definition at line 71 of file DcsStatus.h.

{ return "DcsStatus"; }
int DcsStatus::operator!= ( const DcsStatus e) const [inline]

inequality operator

Definition at line 96 of file DcsStatus.h.

{ return false; }
int DcsStatus::operator== ( const DcsStatus e) const [inline]

equality operator

Definition at line 93 of file DcsStatus.h.

{ return false; }
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_);}

Member Data Documentation

unsigned int DcsStatus::bunchNumber_ [protected]

Definition at line 103 of file DcsStatus.h.

Referenced by bunchNumber(), and DcsStatus().

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]
Initial value:
 {
  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]
Initial value:
 {
  "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().