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.

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  }

References DOCESLOTS, mps_fire::i, and rsize_.

◆ ~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.

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

References getheader1().

◆ getevtlgth()

int DTuROSFEDData::getevtlgth ( ) const
inline

Definition at line 140 of file DTuROSControlData.h.

140 { return evtLgth_; }

References evtLgth_.

◆ getfed()

int DTuROSFEDData::getfed ( ) const
inline

Definition at line 130 of file DTuROSControlData.h.

130 { return fed_; }

References fed_.

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

◆ getheader1()

long DTuROSFEDData::getheader1 ( ) const
inline

Definition at line 132 of file DTuROSControlData.h.

132 { return header1_; }

References header1_.

Referenced by getBXId().

◆ getheader2()

long DTuROSFEDData::getheader2 ( ) const
inline

Definition at line 134 of file DTuROSControlData.h.

134 { return header2_; }

References header2_.

◆ getnslots()

int DTuROSFEDData::getnslots ( ) const
inline

Definition at line 138 of file DTuROSControlData.h.

138 { return nslots_; }

References nslots_.

◆ getslotsize()

int DTuROSFEDData::getslotsize ( int  slot) const
inline

Definition at line 142 of file DTuROSControlData.h.

142 { return rsize_[slot - 1]; }

References rsize_.

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

◆ gettrailer()

long DTuROSFEDData::gettrailer ( ) const
inline

Definition at line 136 of file DTuROSControlData.h.

136 { return trailer_; }

References trailer_.

Referenced by getTTS().

◆ getTTS()

int DTuROSFEDData::getTTS ( ) const
inline

Definition at line 146 of file DTuROSControlData.h.

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

References gettrailer().

◆ getuROS()

DTuROSROSData DTuROSFEDData::getuROS ( int  slot) const
inline

Definition at line 148 of file DTuROSControlData.h.

148 { return rdata_[slot - 1]; }

References rdata_.

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

◆ setevtlgth()

void DTuROSFEDData::setevtlgth ( int  evtLgth)
inline

Definition at line 124 of file DTuROSControlData.h.

124 { evtLgth_ = evtLgth; }

References evtLgth_.

Referenced by DTuROSRawToDigi::process().

◆ setfed()

void DTuROSFEDData::setfed ( int  fed)
inline

Definition at line 114 of file DTuROSControlData.h.

114 { fed_ = fed; }

References fed_.

Referenced by DTuROSRawToDigi::process().

◆ setheader1()

void DTuROSFEDData::setheader1 ( long  dword)
inline

Definition at line 116 of file DTuROSControlData.h.

116 { header1_ = dword; }

References header1_.

Referenced by DTuROSRawToDigi::process().

◆ setheader2()

void DTuROSFEDData::setheader2 ( long  dword)
inline

Definition at line 118 of file DTuROSControlData.h.

118 { header2_ = dword; }

References header2_.

Referenced by DTuROSRawToDigi::process().

◆ setnslots()

void DTuROSFEDData::setnslots ( int  nslots)
inline

Definition at line 122 of file DTuROSControlData.h.

122 { nslots_ = nslots; }

References nslots_.

Referenced by DTuROSRawToDigi::process().

◆ setslotsize()

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

Definition at line 126 of file DTuROSControlData.h.

126 { rsize_[slot - 1] = size; }

References rsize_, and findQualityFiles::size.

Referenced by DTuROSRawToDigi::process().

◆ settrailer()

void DTuROSFEDData::settrailer ( long  dword)
inline

Definition at line 120 of file DTuROSControlData.h.

120 { trailer_ = dword; }

References trailer_.

Referenced by DTuROSRawToDigi::process().

◆ setuROS()

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

Definition at line 128 of file DTuROSControlData.h.

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

References rdata_.

Referenced by DTuROSRawToDigi::process().

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

DTuROSFEDData::getheader1
long getheader1() const
Definition: DTuROSControlData.h:132
mps_fire.i
i
Definition: mps_fire.py:355
DTuROSFEDData::trailer_
long trailer_
Definition: DTuROSControlData.h:151
DTuROSFEDData::rdata_
DTuROSROSData rdata_[DOCESLOTS]
Definition: DTuROSControlData.h:155
DTuROSFEDData::rsize_
int rsize_[DOCESLOTS]
Definition: DTuROSControlData.h:153
DOCESLOTS
static const int DOCESLOTS
Definition: DTuROSControlData.h:19
DTuROSFEDData::gettrailer
long gettrailer() const
Definition: DTuROSControlData.h:136
DTuROSFEDData::nslots_
int nslots_
Definition: DTuROSControlData.h:153
DTuROSFEDData::header2_
long header2_
Definition: DTuROSControlData.h:151
DTuROSFEDData::fed_
int fed_
Definition: DTuROSControlData.h:153
DTuROSFEDData::evtLgth_
int evtLgth_
Definition: DTuROSControlData.h:153
DTuROSFEDData::header1_
long header1_
Definition: DTuROSControlData.h:151
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443