Belle II Software development
ARICHRawDigit Class Reference

Class of ARICH raw digits. More...

#include <ARICHRawDigit.h>

Inheritance diagram for ARICHRawDigit:

Classes

struct  FEBDigit
 Struct for front-end board. More...
 

Public Member Functions

 ARICHRawDigit ()
 Default constructor for ROOT IO.
 
 ARICHRawDigit (int type, int ver, int boardid, int febno, unsigned int length, unsigned int trgno=0)
 Constructor.
 
 ~ARICHRawDigit ()
 Destructor.
 
void set (int type, int ver, int boardid, int febno, unsigned int length, unsigned int trgno=0)
 Set properties.
 
int getCopperId ()
 Get COPPER ID.
 
int getHslbId ()
 Get HSLB ID.
 
int getPcieId ()
 Get PCIe ID.
 
int getPcieChId ()
 Get PCIe channel ID.
 
int getType () const
 Get type.
 
int getVersion () const
 Get version.
 
int getBoardId () const
 Get board ID.
 
int getFEBNo () const
 Get FEB number.
 
unsigned int getLength () const
 Get length.
 
unsigned int getTrgNo () const
 Get trigger number.
 
int getNFEBs () const
 Get number of FEBs.
 
void addFEB (FEBDigit &feb, int type, int ver, int boardid, int febno, unsigned int length, unsigned int trgno, unsigned int febtrgno)
 Add properties of FEB.
 
void setCopperId (int id)
 Set COPPER ID.
 
void setHslbId (int id)
 Set HSLB ID.
 
void setPcieId (int id)
 Set PCIe ID.
 
void setPcieChId (int id)
 Set PCIe channel ID.
 
const std::vector< FEBDigit > & getFEBs () const
 Get const vector of FEB digits.
 
std::vector< FEBDigit > & getFEBs ()
 Get vector of FEB digits.
 

Private Member Functions

 ClassDef (ARICHRawDigit, 2)
 the class title
 

Private Attributes

int m_copperid
 COPPER ID.
 
int m_hslb
 High-speed link board.
 
int m_pcieid
 PCIe ID.
 
int m_pciechid
 PCIe channel ID.
 
int m_type
 type
 
int m_ver
 version
 
int m_boardid
 board ID
 
int m_febno
 FEB number which should be 8.
 
unsigned int m_length
 length
 
unsigned int m_trgno
 trigger number
 
std::vector< FEBDigitm_febs
 vector of front-end board digits
 

Detailed Description

Class of ARICH raw digits.

Definition at line 27 of file ARICHRawDigit.h.

Constructor & Destructor Documentation

◆ ARICHRawDigit() [1/2]

ARICHRawDigit ( )
inline

Default constructor for ROOT IO.

Definition at line 96 of file ARICHRawDigit.h.

97 {
98 set(0, 0, 0, 0, 0, 0);
99 m_copperid = 0;
100 m_hslb = 0;
101 m_pcieid = 0;
102 m_pciechid = 0;
103 }
int m_hslb
High-speed link board.
int m_copperid
COPPER ID.
int m_pciechid
PCIe channel ID.
void set(int type, int ver, int boardid, int febno, unsigned int length, unsigned int trgno=0)
Set properties.

◆ ARICHRawDigit() [2/2]

ARICHRawDigit ( int  type,
int  ver,
int  boardid,
int  febno,
unsigned int  length,
unsigned int  trgno = 0 
)
inline

Constructor.

Definition at line 106 of file ARICHRawDigit.h.

107 {
108 set(type, ver, boardid, febno, length, trgno);
109 m_copperid = 0;
110 m_hslb = 0;
111 m_pcieid = 0;
112 m_pciechid = 0;
113 }

◆ ~ARICHRawDigit()

~ARICHRawDigit ( )
inline

Destructor.

Does nothing

Definition at line 116 of file ARICHRawDigit.h.

117 {
119 }

Member Function Documentation

◆ addFEB()

void addFEB ( FEBDigit feb,
int  type,
int  ver,
int  boardid,
int  febno,
unsigned int  length,
unsigned int  trgno,
unsigned int  febtrgno 
)
inline

Add properties of FEB.

Definition at line 185 of file ARICHRawDigit.h.

187 {
188 feb.type = type;
189 feb.ver = ver;
190 feb.boardid = boardid;
191 feb.febno = febno;
192 feb.length = length;
193 feb.trgno = trgno;
194 feb.febtrgno = febtrgno;
195 m_febs.push_back(feb);
196 }
std::vector< FEBDigit > m_febs
vector of front-end board digits

◆ getBoardId()

int getBoardId ( ) const
inline

Get board ID.

Definition at line 160 of file ARICHRawDigit.h.

160{ return m_boardid; }

◆ getCopperId()

int getCopperId ( )
inline

Get COPPER ID.

Definition at line 130 of file ARICHRawDigit.h.

130{ return m_copperid; }

◆ getFEBNo()

int getFEBNo ( ) const
inline

Get FEB number.

Definition at line 165 of file ARICHRawDigit.h.

165{ return m_febno; }
int m_febno
FEB number which should be 8.

◆ getFEBs() [1/2]

std::vector< FEBDigit > & getFEBs ( )
inline

Get vector of FEB digits.

Definition at line 226 of file ARICHRawDigit.h.

226{ return m_febs; }

◆ getFEBs() [2/2]

const std::vector< FEBDigit > & getFEBs ( ) const
inline

Get const vector of FEB digits.

Definition at line 221 of file ARICHRawDigit.h.

221{ return m_febs; }

◆ getHslbId()

int getHslbId ( )
inline

Get HSLB ID.

Definition at line 135 of file ARICHRawDigit.h.

135{ return m_hslb; }

◆ getLength()

unsigned int getLength ( ) const
inline

Get length.

Definition at line 170 of file ARICHRawDigit.h.

170{ return m_length; }
unsigned int m_length
length

◆ getNFEBs()

int getNFEBs ( ) const
inline

Get number of FEBs.

Definition at line 180 of file ARICHRawDigit.h.

180{ return m_febs.size(); }

◆ getPcieChId()

int getPcieChId ( )
inline

Get PCIe channel ID.

Definition at line 145 of file ARICHRawDigit.h.

145{ return m_pciechid; }

◆ getPcieId()

int getPcieId ( )
inline

Get PCIe ID.

Definition at line 140 of file ARICHRawDigit.h.

140{ return m_pcieid; }

◆ getTrgNo()

unsigned int getTrgNo ( ) const
inline

Get trigger number.

Definition at line 175 of file ARICHRawDigit.h.

175{ return m_trgno; }
unsigned int m_trgno
trigger number

◆ getType()

int getType ( ) const
inline

Get type.

Definition at line 150 of file ARICHRawDigit.h.

150{ return m_type; }

◆ getVersion()

int getVersion ( ) const
inline

Get version.

Definition at line 155 of file ARICHRawDigit.h.

155{ return m_ver; }

◆ set()

void set ( int  type,
int  ver,
int  boardid,
int  febno,
unsigned int  length,
unsigned int  trgno = 0 
)

Set properties.

Definition at line 13 of file ARICHRawDigit.cc.

14{
15 m_type = type;
16 m_ver = ver;
17 m_boardid = boardid;
18 m_febno = febno;
19 m_length = length;
20 m_trgno = trgno;
21}

◆ setCopperId()

void setCopperId ( int  id)
inline

Set COPPER ID.

Definition at line 201 of file ARICHRawDigit.h.

201{ m_copperid = id; }

◆ setHslbId()

void setHslbId ( int  id)
inline

Set HSLB ID.

Definition at line 206 of file ARICHRawDigit.h.

206{ m_hslb = id; }

◆ setPcieChId()

void setPcieChId ( int  id)
inline

Set PCIe channel ID.

Definition at line 216 of file ARICHRawDigit.h.

216{ m_pciechid = id; }

◆ setPcieId()

void setPcieId ( int  id)
inline

Set PCIe ID.

Definition at line 211 of file ARICHRawDigit.h.

211{ m_pcieid = id; }

Member Data Documentation

◆ m_boardid

int m_boardid
private

board ID

Definition at line 235 of file ARICHRawDigit.h.

◆ m_copperid

int m_copperid
private

COPPER ID.

Definition at line 229 of file ARICHRawDigit.h.

◆ m_febno

int m_febno
private

FEB number which should be 8.

Definition at line 236 of file ARICHRawDigit.h.

◆ m_febs

std::vector<FEBDigit> m_febs
private

vector of front-end board digits

Definition at line 239 of file ARICHRawDigit.h.

◆ m_hslb

int m_hslb
private

High-speed link board.

Definition at line 230 of file ARICHRawDigit.h.

◆ m_length

unsigned int m_length
private

length

Definition at line 237 of file ARICHRawDigit.h.

◆ m_pciechid

int m_pciechid
private

PCIe channel ID.

Definition at line 232 of file ARICHRawDigit.h.

◆ m_pcieid

int m_pcieid
private

PCIe ID.

Definition at line 231 of file ARICHRawDigit.h.

◆ m_trgno

unsigned int m_trgno
private

trigger number

Definition at line 238 of file ARICHRawDigit.h.

◆ m_type

int m_type
private

type

Definition at line 233 of file ARICHRawDigit.h.

◆ m_ver

int m_ver
private

version

Definition at line 234 of file ARICHRawDigit.h.


The documentation for this class was generated from the following files: