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::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::~DTuROSROSData ( )
inline

Destructor.

Definition at line 31 of file DTuROSControlData.h.

31 {}

Member Function Documentation

◆ getboardId()

int DTuROSROSData::getboardId ( ) const
inline

Definition at line 87 of file DTuROSControlData.h.

References getheader2().

87 { return (getheader2()) & 0xFFFF; }
long getheader2() const

◆ geterror()

int DTuROSROSData::geterror ( int  i) const
inline

Definition at line 79 of file DTuROSControlData.h.

References error_, and mps_fire::i.

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

◆ geterrorFlag()

int DTuROSROSData::geterrorFlag ( int  i) const
inline

Definition at line 85 of file DTuROSControlData.h.

References error_, and mps_fire::i.

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

◆ geterrorROBID()

int DTuROSROSData::geterrorROBID ( int  i) const
inline

Definition at line 81 of file DTuROSControlData.h.

References error_, and mps_fire::i.

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

◆ geterrors()

std::vector<int> DTuROSROSData::geterrors ( ) const
inline

Definition at line 77 of file DTuROSControlData.h.

References error_.

77 { return error_; }
std::vector< int > error_

◆ geterrorTDCID()

int DTuROSROSData::geterrorTDCID ( int  i) const
inline

Definition at line 83 of file DTuROSControlData.h.

References error_, and mps_fire::i.

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

◆ getexword()

long DTuROSROSData::getexword ( int  i) const
inline

Definition at line 75 of file DTuROSControlData.h.

References exword_, and mps_fire::i.

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

◆ getexwords()

std::vector<long> DTuROSROSData::getexwords ( ) const
inline

Definition at line 73 of file DTuROSControlData.h.

References exword_.

73 { return exword_; }
std::vector< long > exword_

◆ getheader1()

long DTuROSROSData::getheader1 ( ) const
inline

Definition at line 53 of file DTuROSControlData.h.

References header1_.

53 { return header1_; }

◆ getheader2()

long DTuROSROSData::getheader2 ( ) const
inline

Definition at line 55 of file DTuROSControlData.h.

References header2_.

Referenced by getboardId(), and getuserWord().

55 { return header2_; }

◆ getokflag()

int DTuROSROSData::getokflag ( int  i) const
inline

Definition at line 63 of file DTuROSControlData.h.

References mps_fire::i, okword1_, okword2_, and testProducerWithPsetDescEmpty_cfi::x1.

63  {
64  if (i < 60)
65  return ((okword1_ >> i) & 0x1);
66  return ((okword2_ >> (i - 60)) & 0x1);
67  }

◆ getokword1()

long DTuROSROSData::getokword1 ( ) const
inline

Definition at line 59 of file DTuROSControlData.h.

References okword1_.

Referenced by DTuROSRawToDigi::process().

59 { return okword1_; }

◆ getokword2()

long DTuROSROSData::getokword2 ( ) const
inline

Definition at line 61 of file DTuROSControlData.h.

References okword2_.

61 { return okword2_; }

◆ getokxflag()

int DTuROSROSData::getokxflag ( int  i) const
inline

Definition at line 71 of file DTuROSControlData.h.

References mps_fire::i, and okxword_.

71 { return ((okxword_[i / 12] >> (5 * (i % 12))) & 0x1F); }
long okxword_[SEISXOK]

◆ getokxword()

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]

◆ getslot()

int DTuROSROSData::getslot ( ) const
inline

Definition at line 51 of file DTuROSControlData.h.

References slot_.

Referenced by DTDataIntegrityTask::analyze().

51 { return slot_; }

◆ gettrailer()

long DTuROSROSData::gettrailer ( ) const
inline

Definition at line 57 of file DTuROSControlData.h.

References trailer_.

57 { return trailer_; }

◆ getuserWord()

int DTuROSROSData::getuserWord ( ) const
inline

Definition at line 89 of file DTuROSControlData.h.

References getheader2().

89 { return (getheader2() >> 32) & 0xFFFFFFFF; }
long getheader2() const

◆ seterror()

void DTuROSROSData::seterror ( int  error)
inline

Definition at line 49 of file DTuROSControlData.h.

References relativeConstraints::error, and error_.

Referenced by DTuROSRawToDigi::process().

49 { error_.push_back(error); }
std::vector< int > error_

◆ setexword()

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_

◆ setheader1()

void DTuROSROSData::setheader1 ( long  dword)
inline

Definition at line 35 of file DTuROSControlData.h.

References header1_.

Referenced by DTuROSRawToDigi::process().

35 { header1_ = dword; }

◆ setheader2()

void DTuROSROSData::setheader2 ( long  dword)
inline

Definition at line 37 of file DTuROSControlData.h.

References header2_.

Referenced by DTuROSRawToDigi::process().

37 { header2_ = dword; }

◆ setokword1()

void DTuROSROSData::setokword1 ( long  okword)
inline

Definition at line 41 of file DTuROSControlData.h.

References okword1_.

Referenced by DTuROSRawToDigi::process().

41 { okword1_ = okword; }

◆ setokword2()

void DTuROSROSData::setokword2 ( long  okword)
inline

Definition at line 43 of file DTuROSControlData.h.

References okword2_.

Referenced by DTuROSRawToDigi::process().

43 { okword2_ = okword; }

◆ setokxword()

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]

◆ setslot()

void DTuROSROSData::setslot ( int  slot)
inline

Definition at line 33 of file DTuROSControlData.h.

References FCDTask_cfi::slot, and slot_.

Referenced by DTuROSRawToDigi::process().

◆ settrailer()

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

◆ error_

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

◆ exword_

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

Definition at line 98 of file DTuROSControlData.h.

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

◆ header1_

long DTuROSROSData::header1_
private

Definition at line 94 of file DTuROSControlData.h.

Referenced by getheader1(), and setheader1().

◆ header2_

long DTuROSROSData::header2_
private

Definition at line 94 of file DTuROSControlData.h.

Referenced by getheader2(), and setheader2().

◆ okword1_

long DTuROSROSData::okword1_
private

Definition at line 96 of file DTuROSControlData.h.

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

◆ okword2_

long DTuROSROSData::okword2_
private

Definition at line 96 of file DTuROSControlData.h.

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

◆ okxword_

long DTuROSROSData::okxword_[SEISXOK]
private

Definition at line 96 of file DTuROSControlData.h.

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

◆ slot_

int DTuROSROSData::slot_
private

Definition at line 92 of file DTuROSControlData.h.

Referenced by getslot(), and setslot().

◆ trailer_

long DTuROSROSData::trailer_
private

Definition at line 94 of file DTuROSControlData.h.

Referenced by gettrailer(), and settrailer().