9 #ifndef ARICHRAWDIGIT_H
10 #define ARICHRAWDIGIT_H
30 unsigned char boardid;
34 unsigned int febtrgno;
39 mutable std::vector<ChannelDigit> channels;
44 ChannelDigit& operator[](
unsigned char i)
48 unsigned int size()
const {
return channels.size(); }
49 void push_back(
unsigned char ich,
unsigned char val)
51 ChannelDigit channel = {ich, val};
52 channels.push_back(channel);
54 std::vector<ChannelDigit>& operator()() {
return channels; }
55 const std::vector<ChannelDigit>& operator()()
const {
return channels; }
63 set(0, 0, 0, 0, 0, 0);
70 ARICHRawDigit(
int type,
int ver,
int boardid,
int febno,
unsigned int length,
unsigned int trgno = 0)
72 set(type, ver, boardid, febno, length, trgno);
85 void set(
int type,
int ver,
int boardid,
int febno,
unsigned int length,
unsigned int trgno = 0);
88 int getCopperId() {
return m_copperid; }
89 int getHslbId() {
return m_hslb; }
90 int getPcieId() {
return m_pcieid; }
91 int getPcieChId() {
return m_pciechid; }
92 int getType()
const {
return m_type; }
93 int getVersion()
const {
return m_ver; }
94 int getBoardId()
const {
return m_boardid; }
95 int getFEBNo()
const {
return m_febno; }
96 unsigned int getLength()
const {
return m_length; }
97 unsigned int getTrgNo()
const {
return m_trgno; }
98 int getNFEBs()
const {
return m_febs.size(); }
99 void addFEB(FEBDigit& feb,
int type,
int ver,
int boardid,
int febno,
100 unsigned int length,
unsigned int trgno,
unsigned int febtrgno)
104 feb.boardid = boardid;
108 feb.febtrgno = febtrgno;
109 m_febs.push_back(feb);
111 void setCopperId(
int id) { m_copperid = id; }
112 void setHslbId(
int id) { m_hslb = id; }
113 void setPcieId(
int id) { m_pcieid = id; }
114 void setPcieChId(
int id) { m_pciechid = id; }
115 const std::vector<FEBDigit>& getFEBs()
const {
return m_febs; }
116 std::vector<FEBDigit>& getFEBs() {
return m_febs; }
127 unsigned int m_length;
128 unsigned int m_trgno;
129 std::vector<FEBDigit> m_febs;
ClassDef(ARICHRawDigit, 2)
the class title
~ARICHRawDigit()
Destructor.
ARICHRawDigit()
Default constructor for ROOT IO.
Abstract base class for different kinds of events.