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.

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  }

References mps_fire::i, okxword_, and 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.

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

References getheader2().

◆ geterror()

int DTuROSROSData::geterror ( int  i) const
inline

Definition at line 79 of file DTuROSControlData.h.

79 { return error_.at(i); }

References error_, and mps_fire::i.

◆ geterrorFlag()

int DTuROSROSData::geterrorFlag ( int  i) const
inline

Definition at line 85 of file DTuROSControlData.h.

85 { return (error_.at(i)) & 0x7FFF; }

References error_, and mps_fire::i.

◆ geterrorROBID()

int DTuROSROSData::geterrorROBID ( int  i) const
inline

Definition at line 81 of file DTuROSControlData.h.

81 { return (error_.at(i) >> 21) & 0x7F; }

References error_, and mps_fire::i.

◆ geterrors()

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

Definition at line 77 of file DTuROSControlData.h.

77 { return error_; }

References error_.

◆ geterrorTDCID()

int DTuROSROSData::geterrorTDCID ( int  i) const
inline

Definition at line 83 of file DTuROSControlData.h.

83 { return (error_.at(i) >> 19) & 0x3; }

References error_, and mps_fire::i.

◆ getexword()

long DTuROSROSData::getexword ( int  i) const
inline

Definition at line 75 of file DTuROSControlData.h.

75 { return exword_.at(i); }

References exword_, and mps_fire::i.

◆ getexwords()

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

Definition at line 73 of file DTuROSControlData.h.

73 { return exword_; }

References exword_.

◆ getheader1()

long DTuROSROSData::getheader1 ( ) const
inline

Definition at line 53 of file DTuROSControlData.h.

53 { return header1_; }

References header1_.

◆ getheader2()

long DTuROSROSData::getheader2 ( ) const
inline

Definition at line 55 of file DTuROSControlData.h.

55 { return header2_; }

References header2_.

Referenced by getboardId(), and getuserWord().

◆ getokflag()

int DTuROSROSData::getokflag ( int  i) const
inline

Definition at line 63 of file DTuROSControlData.h.

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

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

◆ getokword1()

long DTuROSROSData::getokword1 ( ) const
inline

Definition at line 59 of file DTuROSControlData.h.

59 { return okword1_; }

References okword1_.

Referenced by DTuROSRawToDigi::process().

◆ getokword2()

long DTuROSROSData::getokword2 ( ) const
inline

Definition at line 61 of file DTuROSControlData.h.

61 { return okword2_; }

References okword2_.

◆ getokxflag()

int DTuROSROSData::getokxflag ( int  i) const
inline

Definition at line 71 of file DTuROSControlData.h.

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

References mps_fire::i, and okxword_.

◆ getokxword()

long DTuROSROSData::getokxword ( int  i) const
inline

Definition at line 69 of file DTuROSControlData.h.

69 { return okxword_[i]; }

References mps_fire::i, and okxword_.

◆ getslot()

int DTuROSROSData::getslot ( ) const
inline

Definition at line 51 of file DTuROSControlData.h.

51 { return slot_; }

References slot_.

Referenced by DTDataIntegrityUrosOffline::analyze(), and DTDataIntegrityTask::analyze().

◆ gettrailer()

long DTuROSROSData::gettrailer ( ) const
inline

Definition at line 57 of file DTuROSControlData.h.

57 { return trailer_; }

References trailer_.

◆ getuserWord()

int DTuROSROSData::getuserWord ( ) const
inline

Definition at line 89 of file DTuROSControlData.h.

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

References getheader2().

◆ seterror()

void DTuROSROSData::seterror ( int  error)
inline

Definition at line 49 of file DTuROSControlData.h.

49 { error_.push_back(error); }

References relativeConstraints::error, and error_.

Referenced by DTuROSRawToDigi::process().

◆ setexword()

void DTuROSROSData::setexword ( long  exword)
inline

Definition at line 47 of file DTuROSControlData.h.

47 { exword_.push_back(exword); }

References exword_.

Referenced by DTuROSRawToDigi::process().

◆ setheader1()

void DTuROSROSData::setheader1 ( long  dword)
inline

Definition at line 35 of file DTuROSControlData.h.

35 { header1_ = dword; }

References header1_.

Referenced by DTuROSRawToDigi::process().

◆ setheader2()

void DTuROSROSData::setheader2 ( long  dword)
inline

Definition at line 37 of file DTuROSControlData.h.

37 { header2_ = dword; }

References header2_.

Referenced by DTuROSRawToDigi::process().

◆ setokword1()

void DTuROSROSData::setokword1 ( long  okword)
inline

Definition at line 41 of file DTuROSControlData.h.

41 { okword1_ = okword; }

References okword1_.

Referenced by DTuROSRawToDigi::process().

◆ setokword2()

void DTuROSROSData::setokword2 ( long  okword)
inline

Definition at line 43 of file DTuROSControlData.h.

43 { okword2_ = okword; }

References okword2_.

Referenced by DTuROSRawToDigi::process().

◆ setokxword()

void DTuROSROSData::setokxword ( int  i,
long  okxword 
)
inline

Definition at line 45 of file DTuROSControlData.h.

45 { okxword_[i] = okxword; }

References mps_fire::i, and okxword_.

Referenced by DTuROSRawToDigi::process().

◆ setslot()

void DTuROSROSData::setslot ( int  slot)
inline

Definition at line 33 of file DTuROSControlData.h.

33 { slot_ = slot; }

References slot_.

Referenced by DTuROSRawToDigi::process().

◆ settrailer()

void DTuROSROSData::settrailer ( long  dword)
inline

Definition at line 39 of file DTuROSControlData.h.

39 { trailer_ = dword; }

References trailer_.

Referenced by DTuROSRawToDigi::process().

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

mps_fire.i
i
Definition: mps_fire.py:355
DTuROSROSData::okword1_
long okword1_
Definition: DTuROSControlData.h:96
DTuROSROSData::exword_
std::vector< long > exword_
Definition: DTuROSControlData.h:98
DTuROSROSData::okword2_
long okword2_
Definition: DTuROSControlData.h:96
relativeConstraints.error
error
Definition: relativeConstraints.py:53
SEISXOK
static const int SEISXOK
Definition: DTuROSControlData.h:20
testProducerWithPsetDescEmpty_cfi.x1
x1
Definition: testProducerWithPsetDescEmpty_cfi.py:33
DTuROSROSData::slot_
int slot_
Definition: DTuROSControlData.h:92
DTuROSROSData::getheader2
long getheader2() const
Definition: DTuROSControlData.h:55
DTuROSROSData::header2_
long header2_
Definition: DTuROSControlData.h:94
DTuROSROSData::trailer_
long trailer_
Definition: DTuROSControlData.h:94
DTuROSROSData::okxword_
long okxword_[SEISXOK]
Definition: DTuROSControlData.h:96
DTuROSROSData::error_
std::vector< int > error_
Definition: DTuROSControlData.h:100
DTuROSROSData::header1_
long header1_
Definition: DTuROSControlData.h:94