CMS 3D CMS Logo

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

#include <DTuROSControlData.h>

Public Member Functions

 DTuROSFEDData ()
 Constructor. More...
 
int getBXId () const
 
int getevtlgth () const
 
int getfed () const
 
long getheader1 () const
 
long getheader2 () const
 
int getnslots () const
 
int getslotsize (int slot) const
 
long gettrailer () const
 
int getTTS () const
 
DTuROSROSData getuROS (int slot) const
 
void setevtlgth (int evtLgth)
 
void setfed (int fed)
 
void setheader1 (long dword)
 
void setheader2 (long dword)
 
void setnslots (int nslots)
 
void setslotsize (int slot, int size)
 
void settrailer (long dword)
 
void setuROS (int slot, DTuROSROSData rwords)
 
 ~DTuROSFEDData ()
 Destructor. More...
 

Private Attributes

int evtLgth_
 
int fed_
 
long header1_
 
long header2_
 
int nslots_
 
DTuROSROSData rdata_ [DOCESLOTS]
 
int rsize_ [DOCESLOTS]
 
long trailer_
 

Detailed Description

Definition at line 103 of file DTuROSControlData.h.

Constructor & Destructor Documentation

◆ DTuROSFEDData()

DTuROSFEDData::DTuROSFEDData ( )
inline

Constructor.

Definition at line 106 of file DTuROSControlData.h.

References DOCESLOTS, mps_fire::i, and rsize_.

106  : header1_(0), header2_(0), trailer_(0), fed_(-1), nslots_(0), evtLgth_(0) {
107  for (int i = 0; i < DOCESLOTS; i++)
108  rsize_[i] = 0;
109  }
int rsize_[DOCESLOTS]
static const int DOCESLOTS

◆ ~DTuROSFEDData()

DTuROSFEDData::~DTuROSFEDData ( )
inline

Destructor.

Definition at line 112 of file DTuROSControlData.h.

112 {}

Member Function Documentation

◆ getBXId()

int DTuROSFEDData::getBXId ( ) const
inline

Definition at line 144 of file DTuROSControlData.h.

References getheader1().

144 { return (getheader1() >> 20) & 0xFFF; }
long getheader1() const

◆ getevtlgth()

int DTuROSFEDData::getevtlgth ( ) const
inline

Definition at line 140 of file DTuROSControlData.h.

References evtLgth_.

140 { return evtLgth_; }

◆ getfed()

int DTuROSFEDData::getfed ( ) const
inline

Definition at line 130 of file DTuROSControlData.h.

References fed_.

Referenced by DTDataIntegrityTask::analyze(), and DTuROSRawToDigi::fillRawData().

130 { return fed_; }

◆ getheader1()

long DTuROSFEDData::getheader1 ( ) const
inline

Definition at line 132 of file DTuROSControlData.h.

References header1_.

Referenced by getBXId().

132 { return header1_; }

◆ getheader2()

long DTuROSFEDData::getheader2 ( ) const
inline

Definition at line 134 of file DTuROSControlData.h.

References header2_.

134 { return header2_; }

◆ getnslots()

int DTuROSFEDData::getnslots ( ) const
inline

Definition at line 138 of file DTuROSControlData.h.

References nslots_.

138 { return nslots_; }

◆ getslotsize()

int DTuROSFEDData::getslotsize ( int  slot) const
inline

Definition at line 142 of file DTuROSControlData.h.

References rsize_, and FCDTask_cfi::slot.

Referenced by DTDataIntegrityTask::analyze().

142 { return rsize_[slot - 1]; }
int rsize_[DOCESLOTS]

◆ gettrailer()

long DTuROSFEDData::gettrailer ( ) const
inline

Definition at line 136 of file DTuROSControlData.h.

References trailer_.

Referenced by getTTS().

136 { return trailer_; }

◆ getTTS()

int DTuROSFEDData::getTTS ( ) const
inline

Definition at line 146 of file DTuROSControlData.h.

References gettrailer().

146 { return (gettrailer() >> 4) & 0xF; }
long gettrailer() const

◆ getuROS()

DTuROSROSData DTuROSFEDData::getuROS ( int  slot) const
inline

Definition at line 148 of file DTuROSControlData.h.

References rdata_, and FCDTask_cfi::slot.

Referenced by DTDataIntegrityTask::analyze().

148 { return rdata_[slot - 1]; }
DTuROSROSData rdata_[DOCESLOTS]

◆ setevtlgth()

void DTuROSFEDData::setevtlgth ( int  evtLgth)
inline

Definition at line 124 of file DTuROSControlData.h.

References evtLgth_.

Referenced by DTuROSRawToDigi::process().

124 { evtLgth_ = evtLgth; }

◆ setfed()

void DTuROSFEDData::setfed ( int  fed)
inline

Definition at line 114 of file DTuROSControlData.h.

References fed_.

Referenced by DTuROSRawToDigi::process().

114 { fed_ = fed; }

◆ setheader1()

void DTuROSFEDData::setheader1 ( long  dword)
inline

Definition at line 116 of file DTuROSControlData.h.

References header1_.

Referenced by DTuROSRawToDigi::process().

116 { header1_ = dword; }

◆ setheader2()

void DTuROSFEDData::setheader2 ( long  dword)
inline

Definition at line 118 of file DTuROSControlData.h.

References header2_.

Referenced by DTuROSRawToDigi::process().

118 { header2_ = dword; }

◆ setnslots()

void DTuROSFEDData::setnslots ( int  nslots)
inline

Definition at line 122 of file DTuROSControlData.h.

References nslots_.

Referenced by DTuROSRawToDigi::process().

122 { nslots_ = nslots; }

◆ setslotsize()

void DTuROSFEDData::setslotsize ( int  slot,
int  size 
)
inline

Definition at line 126 of file DTuROSControlData.h.

References rsize_, findQualityFiles::size, and FCDTask_cfi::slot.

Referenced by DTuROSRawToDigi::process().

126 { rsize_[slot - 1] = size; }
size
Write out results.
int rsize_[DOCESLOTS]

◆ settrailer()

void DTuROSFEDData::settrailer ( long  dword)
inline

Definition at line 120 of file DTuROSControlData.h.

References trailer_.

Referenced by DTuROSRawToDigi::process().

120 { trailer_ = dword; }

◆ setuROS()

void DTuROSFEDData::setuROS ( int  slot,
DTuROSROSData  rwords 
)
inline

Definition at line 128 of file DTuROSControlData.h.

References rdata_, and FCDTask_cfi::slot.

Referenced by DTuROSRawToDigi::process().

128 { rdata_[slot - 1] = rwords; }
DTuROSROSData rdata_[DOCESLOTS]

Member Data Documentation

◆ evtLgth_

int DTuROSFEDData::evtLgth_
private

Definition at line 153 of file DTuROSControlData.h.

Referenced by getevtlgth(), and setevtlgth().

◆ fed_

int DTuROSFEDData::fed_
private

Definition at line 153 of file DTuROSControlData.h.

Referenced by getfed(), and setfed().

◆ header1_

long DTuROSFEDData::header1_
private

Definition at line 151 of file DTuROSControlData.h.

Referenced by getheader1(), and setheader1().

◆ header2_

long DTuROSFEDData::header2_
private

Definition at line 151 of file DTuROSControlData.h.

Referenced by getheader2(), and setheader2().

◆ nslots_

int DTuROSFEDData::nslots_
private

Definition at line 153 of file DTuROSControlData.h.

Referenced by getnslots(), and setnslots().

◆ rdata_

DTuROSROSData DTuROSFEDData::rdata_[DOCESLOTS]
private

Definition at line 155 of file DTuROSControlData.h.

Referenced by getuROS(), and setuROS().

◆ rsize_

int DTuROSFEDData::rsize_[DOCESLOTS]
private

Definition at line 153 of file DTuROSControlData.h.

Referenced by DTuROSFEDData(), getslotsize(), and setslotsize().

◆ trailer_

long DTuROSFEDData::trailer_
private

Definition at line 151 of file DTuROSControlData.h.

Referenced by gettrailer(), and settrailer().