CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
DTuROSROSData Class Reference

#include <DTuROSControlData.h>

Public Member Functions

 DTuROSROSData ()
 Constructor. More...
 
int getboardId () const
 
int geterror (int i) const
 
int geterrorFlag (int i) const
 
int geterrorROBID (int i) const
 
std::vector< int > geterrors () const
 
int geterrorTDCID (int i) const
 
long getexword (int i) const
 
std::vector< long > getexwords () const
 
long getheader1 () const
 
long getheader2 () const
 
int getokflag (int i) const
 
long getokword1 () const
 
long getokword2 () const
 
int getokxflag (int i) const
 
long getokxword (int i) const
 
int getslot () const
 
long gettrailer () const
 
int getuserWord () const
 
void seterror (int error)
 
void setexword (long exword)
 
void setheader1 (long dword)
 
void setheader2 (long dword)
 
void setokword1 (long okword)
 
void setokword2 (long okword)
 
void setokxword (int i, long okxword)
 
void setslot (int slot)
 
void settrailer (long dword)
 
 ~DTuROSROSData ()
 Destructor. More...
 

Private Attributes

std::vector< int > error_
 
std::vector< long > exword_
 
long header1_
 
long header2_
 
long okword1_
 
long okword2_
 
long okxword_ [SEISXOK]
 
int slot_
 
long trailer_
 

Detailed Description

Definition at line 22 of file DTuROSControlData.h.

Constructor & Destructor Documentation

DTuROSROSData::DTuROSROSData ( )
inline

Constructor.

Definition at line 27 of file DTuROSControlData.h.

References mps_fire::i, okxword_, and SEISXOK.

27  : slot_(-1), header1_(0), header2_(0),
28  trailer_(0), okword1_(0), okword2_(0)
29  { for (int i=0; i<SEISXOK; i++) okxword_[i] = 0; }
static const int SEISXOK
long okxword_[SEISXOK]
DTuROSROSData::~DTuROSROSData ( )
inline

Destructor.

Definition at line 32 of file DTuROSControlData.h.

32 {};

Member Function Documentation

int DTuROSROSData::getboardId ( ) const
inline

Definition at line 84 of file DTuROSControlData.h.

References getheader2().

Referenced by DTDataIntegrityTask::processuROS().

84 {return (getheader2())&0xFFFF;}
long getheader2() const
int DTuROSROSData::geterror ( int  i) const
inline

Definition at line 76 of file DTuROSControlData.h.

References error_.

Referenced by DTDataIntegrityTask::processuROS().

76 {return error_.at(i);}
std::vector< int > error_
int DTuROSROSData::geterrorFlag ( int  i) const
inline

Definition at line 82 of file DTuROSControlData.h.

References error_.

82 {return (error_.at(i))&0x7FFF;}
std::vector< int > error_
int DTuROSROSData::geterrorROBID ( int  i) const
inline

Definition at line 78 of file DTuROSControlData.h.

References error_.

Referenced by DTDataIntegrityTask::processuROS().

78 {return (error_.at(i) >> 21)&0x7F;}
std::vector< int > error_
std::vector<int> DTuROSROSData::geterrors ( ) const
inline

Definition at line 74 of file DTuROSControlData.h.

References error_.

Referenced by DTDataIntegrityTask::processuROS().

74 {return error_;}
std::vector< int > error_
int DTuROSROSData::geterrorTDCID ( int  i) const
inline

Definition at line 80 of file DTuROSControlData.h.

References error_.

Referenced by DTDataIntegrityTask::processuROS().

80 {return (error_.at(i) >> 19)&0x3;}
std::vector< int > error_
long DTuROSROSData::getexword ( int  i) const
inline

Definition at line 72 of file DTuROSControlData.h.

References exword_.

72 {return exword_.at(i);}
std::vector< long > exword_
std::vector<long> DTuROSROSData::getexwords ( ) const
inline

Definition at line 70 of file DTuROSControlData.h.

References exword_.

70 {return exword_;}
std::vector< long > exword_
long DTuROSROSData::getheader1 ( ) const
inline

Definition at line 54 of file DTuROSControlData.h.

References header1_.

Referenced by DTuROSFEDData::getBXId().

54 {return header1_;}
long DTuROSROSData::getheader2 ( ) const
inline

Definition at line 56 of file DTuROSControlData.h.

References header2_.

Referenced by getboardId(), and getuserWord().

56 {return header2_;}
int DTuROSROSData::getokflag ( int  i) const
inline

Definition at line 64 of file DTuROSControlData.h.

References okword1_, okword2_, and globals_cff::x1.

64 {if (i < 60) return ((okword1_ >> i)&0x1); return ((okword2_ >> (i-60))&0x1);}
long DTuROSROSData::getokword1 ( ) const
inline

Definition at line 60 of file DTuROSControlData.h.

References okword1_.

Referenced by DTuROSRawToDigi::process().

60 {return okword1_;}
long DTuROSROSData::getokword2 ( ) const
inline

Definition at line 62 of file DTuROSControlData.h.

References okword2_.

62 {return okword2_;}
int DTuROSROSData::getokxflag ( int  i) const
inline

Definition at line 68 of file DTuROSControlData.h.

References okxword_.

Referenced by DTDataIntegrityTask::processuROS().

68 {return ((okxword_[i/12] >> (5*(i%12)))&0x1F);}
long okxword_[SEISXOK]
long DTuROSROSData::getokxword ( int  i) const
inline

Definition at line 66 of file DTuROSControlData.h.

References mps_fire::i, and okxword_.

66 {return okxword_[i];}
long okxword_[SEISXOK]
int DTuROSROSData::getslot ( ) const
inline

Definition at line 52 of file DTuROSControlData.h.

References slot_.

Referenced by DTDataIntegrityTask::analyze().

52 {return slot_;}
long DTuROSROSData::gettrailer ( ) const
inline

Definition at line 58 of file DTuROSControlData.h.

References trailer_.

Referenced by DTuROSFEDData::getTTS(), and DTDataIntegrityTask::processuROS().

58 {return trailer_;}
int DTuROSROSData::getuserWord ( ) const
inline

Definition at line 86 of file DTuROSControlData.h.

References getheader2().

Referenced by DTDataIntegrityTask::processuROS().

86 {return (getheader2() >> 32)&0xFFFFFFFF;}
long getheader2() const
void DTuROSROSData::seterror ( int  error)
inline

Definition at line 50 of file DTuROSControlData.h.

References error_.

Referenced by DTuROSRawToDigi::process().

50 {error_.push_back(error);}
std::vector< int > error_
void DTuROSROSData::setexword ( long  exword)
inline

Definition at line 48 of file DTuROSControlData.h.

References exword_.

Referenced by DTuROSRawToDigi::process().

48 {exword_.push_back(exword);}
std::vector< long > exword_
void DTuROSROSData::setheader1 ( long  dword)
inline

Definition at line 36 of file DTuROSControlData.h.

References header1_.

Referenced by DTuROSRawToDigi::process().

36 {header1_ = dword;}
void DTuROSROSData::setheader2 ( long  dword)
inline

Definition at line 38 of file DTuROSControlData.h.

References header2_.

Referenced by DTuROSRawToDigi::process().

38 {header2_ = dword;}
void DTuROSROSData::setokword1 ( long  okword)
inline

Definition at line 42 of file DTuROSControlData.h.

References okword1_.

Referenced by DTuROSRawToDigi::process().

42 {okword1_ = okword;}
void DTuROSROSData::setokword2 ( long  okword)
inline

Definition at line 44 of file DTuROSControlData.h.

References okword2_.

Referenced by DTuROSRawToDigi::process().

44 {okword2_ = okword;}
void DTuROSROSData::setokxword ( int  i,
long  okxword 
)
inline

Definition at line 46 of file DTuROSControlData.h.

References mps_fire::i, and okxword_.

Referenced by DTuROSRawToDigi::process().

46 {okxword_[i] = okxword;}
long okxword_[SEISXOK]
void DTuROSROSData::setslot ( int  slot)
inline

Definition at line 34 of file DTuROSControlData.h.

References slot_.

Referenced by DTuROSRawToDigi::process().

34 {slot_ = slot;}
void DTuROSROSData::settrailer ( long  dword)
inline

Definition at line 40 of file DTuROSControlData.h.

References trailer_.

Referenced by DTuROSRawToDigi::process().

40 {trailer_ = dword;}

Member Data Documentation

std::vector<int> DTuROSROSData::error_
private
std::vector<long> DTuROSROSData::exword_
private

Definition at line 96 of file DTuROSControlData.h.

Referenced by getexword(), getexwords(), and setexword().

long DTuROSROSData::header1_
private
long DTuROSROSData::header2_
private
long DTuROSROSData::okword1_
private

Definition at line 94 of file DTuROSControlData.h.

Referenced by getokflag(), getokword1(), and setokword1().

long DTuROSROSData::okword2_
private

Definition at line 94 of file DTuROSControlData.h.

Referenced by getokflag(), getokword2(), and setokword2().

long DTuROSROSData::okxword_[SEISXOK]
private

Definition at line 94 of file DTuROSControlData.h.

Referenced by DTuROSROSData(), getokxflag(), getokxword(), and setokxword().

int DTuROSROSData::slot_
private

Definition at line 90 of file DTuROSControlData.h.

Referenced by getslot(), and setslot().

long DTuROSROSData::trailer_
private