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_ =0
 
long okword2_ =0
 
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_, SEISXOK, and slot_.

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

Destructor.

Definition at line 33 of file DTuROSControlData.h.

33 {};

Member Function Documentation

int DTuROSROSData::getboardId ( ) const
inline

Definition at line 85 of file DTuROSControlData.h.

References getheader2().

Referenced by DTDataIntegrityTask::processuROS().

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

Definition at line 77 of file DTuROSControlData.h.

References error_.

Referenced by DTDataIntegrityTask::processuROS().

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

Definition at line 83 of file DTuROSControlData.h.

References error_.

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

Definition at line 79 of file DTuROSControlData.h.

References error_.

Referenced by DTDataIntegrityTask::processuROS().

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

Definition at line 75 of file DTuROSControlData.h.

References error_.

Referenced by DTDataIntegrityTask::processuROS().

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

Definition at line 81 of file DTuROSControlData.h.

References error_.

Referenced by DTDataIntegrityTask::processuROS().

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

Definition at line 73 of file DTuROSControlData.h.

References exword_.

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

Definition at line 71 of file DTuROSControlData.h.

References exword_.

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

Definition at line 55 of file DTuROSControlData.h.

References header1_.

Referenced by DTuROSFEDData::getBXId().

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

Definition at line 57 of file DTuROSControlData.h.

References header2_.

Referenced by getboardId(), and getuserWord().

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

Definition at line 65 of file DTuROSControlData.h.

References okword1_, okword2_, and globals_cff::x1.

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

Definition at line 61 of file DTuROSControlData.h.

References okword1_.

Referenced by DTuROSRawToDigi::process().

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

Definition at line 63 of file DTuROSControlData.h.

References okword2_.

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

Definition at line 69 of file DTuROSControlData.h.

References okxword_.

Referenced by DTDataIntegrityTask::processuROS().

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

Definition at line 67 of file DTuROSControlData.h.

References mps_fire::i, and okxword_.

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

Definition at line 53 of file DTuROSControlData.h.

References slot_.

Referenced by DTDataIntegrityTask::analyze().

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

Definition at line 59 of file DTuROSControlData.h.

References trailer_.

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

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

Definition at line 87 of file DTuROSControlData.h.

References getheader2().

Referenced by DTDataIntegrityTask::processuROS().

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

Definition at line 51 of file DTuROSControlData.h.

References error_.

Referenced by DTuROSRawToDigi::process().

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

Definition at line 49 of file DTuROSControlData.h.

References exword_.

Referenced by DTuROSRawToDigi::process().

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

Definition at line 37 of file DTuROSControlData.h.

References header1_.

Referenced by DTuROSRawToDigi::process().

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

Definition at line 39 of file DTuROSControlData.h.

References header2_.

Referenced by DTuROSRawToDigi::process().

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

Definition at line 43 of file DTuROSControlData.h.

References okword1_.

Referenced by DTuROSRawToDigi::process().

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

Definition at line 45 of file DTuROSControlData.h.

References okword2_.

Referenced by DTuROSRawToDigi::process().

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

Definition at line 47 of file DTuROSControlData.h.

References mps_fire::i, and okxword_.

Referenced by DTuROSRawToDigi::process().

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

Definition at line 35 of file DTuROSControlData.h.

References slot_.

Referenced by DTuROSRawToDigi::process().

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

Definition at line 41 of file DTuROSControlData.h.

References trailer_.

Referenced by DTuROSRawToDigi::process().

41 {trailer_ = dword;}

Member Data Documentation

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

Definition at line 97 of file DTuROSControlData.h.

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

long DTuROSROSData::header1_
private
long DTuROSROSData::header2_
private
long DTuROSROSData::okword1_ =0
private

Definition at line 95 of file DTuROSControlData.h.

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

long DTuROSROSData::okword2_ =0
private

Definition at line 95 of file DTuROSControlData.h.

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

long DTuROSROSData::okxword_[SEISXOK]
private

Definition at line 95 of file DTuROSControlData.h.

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

int DTuROSROSData::slot_
private

Definition at line 91 of file DTuROSControlData.h.

Referenced by DTuROSROSData(), getslot(), and setslot().

long DTuROSROSData::trailer_
private