CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 25 of file DTuROSControlData.h.

References mps_fire::i, okxword_, and SEISXOK.

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

Destructor.

Definition at line 31 of file DTuROSControlData.h.

31 {};

Member Function Documentation

int DTuROSROSData::getboardId ( ) const
inline

Definition at line 87 of file DTuROSControlData.h.

References getheader2().

Referenced by DTDataIntegrityTask::processuROS().

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

Definition at line 79 of file DTuROSControlData.h.

References error_.

Referenced by DTDataIntegrityTask::processuROS().

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

Definition at line 85 of file DTuROSControlData.h.

References error_.

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

Definition at line 81 of file DTuROSControlData.h.

References error_.

Referenced by DTDataIntegrityTask::processuROS().

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

Definition at line 77 of file DTuROSControlData.h.

References error_.

Referenced by DTDataIntegrityTask::processuROS().

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

Definition at line 83 of file DTuROSControlData.h.

References error_.

Referenced by DTDataIntegrityTask::processuROS().

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

Definition at line 75 of file DTuROSControlData.h.

References exword_.

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

Definition at line 73 of file DTuROSControlData.h.

References exword_.

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

Definition at line 53 of file DTuROSControlData.h.

References header1_.

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

Definition at line 55 of file DTuROSControlData.h.

References header2_.

Referenced by getboardId(), and getuserWord().

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

Definition at line 63 of file DTuROSControlData.h.

References okword1_, and okword2_.

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

Definition at line 59 of file DTuROSControlData.h.

References okword1_.

Referenced by DTuROSRawToDigi::process().

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

Definition at line 61 of file DTuROSControlData.h.

References okword2_.

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

Definition at line 71 of file DTuROSControlData.h.

References okxword_.

Referenced by DTDataIntegrityTask::processuROS().

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

Definition at line 69 of file DTuROSControlData.h.

References mps_fire::i, and okxword_.

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

Definition at line 51 of file DTuROSControlData.h.

References slot_.

Referenced by DTDataIntegrityTask::analyze().

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

Definition at line 57 of file DTuROSControlData.h.

References trailer_.

Referenced by DTDataIntegrityTask::processuROS().

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

Definition at line 89 of file DTuROSControlData.h.

References getheader2().

Referenced by DTDataIntegrityTask::processuROS().

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

Definition at line 49 of file DTuROSControlData.h.

References error_.

Referenced by DTuROSRawToDigi::process().

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

Definition at line 47 of file DTuROSControlData.h.

References exword_.

Referenced by DTuROSRawToDigi::process().

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

Definition at line 35 of file DTuROSControlData.h.

References header1_.

Referenced by DTuROSRawToDigi::process().

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

Definition at line 37 of file DTuROSControlData.h.

References header2_.

Referenced by DTuROSRawToDigi::process().

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

Definition at line 41 of file DTuROSControlData.h.

References okword1_.

Referenced by DTuROSRawToDigi::process().

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

Definition at line 43 of file DTuROSControlData.h.

References okword2_.

Referenced by DTuROSRawToDigi::process().

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

Definition at line 45 of file DTuROSControlData.h.

References mps_fire::i, and okxword_.

Referenced by DTuROSRawToDigi::process().

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

Definition at line 33 of file DTuROSControlData.h.

References slot_.

Referenced by DTuROSRawToDigi::process().

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

Definition at line 39 of file DTuROSControlData.h.

References trailer_.

Referenced by DTuROSRawToDigi::process().

39 { trailer_ = dword; }

Member Data Documentation

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

Definition at line 98 of file DTuROSControlData.h.

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

long DTuROSROSData::header1_
private

Definition at line 94 of file DTuROSControlData.h.

Referenced by getheader1(), and setheader1().

long DTuROSROSData::header2_
private

Definition at line 94 of file DTuROSControlData.h.

Referenced by getheader2(), and setheader2().

long DTuROSROSData::okword1_
private

Definition at line 96 of file DTuROSControlData.h.

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

long DTuROSROSData::okword2_
private

Definition at line 96 of file DTuROSControlData.h.

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

long DTuROSROSData::okxword_[SEISXOK]
private

Definition at line 96 of file DTuROSControlData.h.

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

int DTuROSROSData::slot_
private

Definition at line 92 of file DTuROSControlData.h.

Referenced by getslot(), and setslot().

long DTuROSROSData::trailer_
private

Definition at line 94 of file DTuROSControlData.h.

Referenced by gettrailer(), and settrailer().