Belle II Software development
TRGGDLDBUnpacker Class Reference

The payload class for PXD cluster charge calibrations. More...

#include <TRGGDLDBUnpacker.h>

Inheritance diagram for TRGGDLDBUnpacker:

Public Member Functions

 TRGGDLDBUnpacker ()
 Default constructor.
 
 TRGGDLDBUnpacker (const TRGGDLDBUnpacker &b)
 copy constructor
 
TRGGDLDBUnpackeroperator= (const TRGGDLDBUnpacker &b)
 assignment operator
 
void setnLeafs (int i)
 
void setnLeafsExtra (int i)
 
void setnClks (int i)
 
void setnBits (int i)
 
void setconf (int i)
 
void setLeafName (int i, const char *c)
 
void setLeafMap (int i, int j)
 
void setBitMap (int i, int j, int k)
 
void set_nword_header (int i)
 
void set_nword_input (int i)
 
void set_nword_output (int i)
 
void setBitMap_extra (int i, int j, int k)
 
int getnLeafs () const
 
int getnLeafsExtra () const
 
int getnClks () const
 
int getnBits () const
 
int getconf () const
 
const char * getLeafnames (int i) const
 
int getLeafMap (int i) const
 
int getBitMap (int i, int j) const
 
int get_nword_header () const
 
int get_nword_input () const
 
int get_nword_output () const
 
int getBitMap_extra (int i, int j) const
 

Private Member Functions

 ClassDef (TRGGDLDBUnpacker, 1)
 ClassDef, must be the last term before the closing {}.
 

Private Attributes

int m_nLeafs
 num of leafs in data_b2l
 
int m_nLeafsExtra
 num of leafs for others
 
int m_nClks
 num of clk time window
 
int m_nBits = 0
 num of Bit
 
int m_conf = 0
 conf
 
char m_LeafNames [320][100]
 leaf names
 
int m_LeafMap [320]
 leaf map
 
int m_BitMap [320][2]
 data bit map
 
int m_nword_header
 header size
 
int m_nword_input
 DAM input word size.
 
int m_nword_output
 DAM output word size.
 
int m_BitMap_extra [320][3]
 extra leaf bit map
 

Detailed Description

The payload class for PXD cluster charge calibrations.

The payload class stores the median cluster charge values for PXD sensors on a grid nBinsU x nBinsV. The values are stored in raw ADC units (called ADU).

The granularity of the grid is user adjustable. The default value of a missing calibraiton is -1.0.

Definition at line 28 of file TRGGDLDBUnpacker.h.

Constructor & Destructor Documentation

◆ TRGGDLDBUnpacker() [1/2]

TRGGDLDBUnpacker ( )
inline

Default constructor.

Definition at line 32 of file TRGGDLDBUnpacker.h.

32 : m_nLeafs(0), m_nLeafsExtra(0), m_nClks(0), m_nBits(0), m_conf(0), m_LeafNames{{0}}, m_LeafMap{0}, m_BitMap{{0}},
int m_LeafMap[320]
leaf map
int m_BitMap[320][2]
data bit map
int m_nLeafs
num of leafs in data_b2l
int m_nLeafsExtra
num of leafs for others
int m_nword_input
DAM input word size.
int m_BitMap_extra[320][3]
extra leaf bit map
int m_nword_output
DAM output word size.
char m_LeafNames[320][100]
leaf names
int m_nClks
num of clk time window

◆ TRGGDLDBUnpacker() [2/2]

TRGGDLDBUnpacker ( const TRGGDLDBUnpacker b)
inline

copy constructor

Definition at line 36 of file TRGGDLDBUnpacker.h.

36 : TObject(b)
37 {
38 m_nLeafs = b.m_nLeafs;
39 m_nLeafsExtra = b.m_nLeafsExtra;
40 m_nClks = b.m_nClks;
41 for (int i = 0; i < 320; i++) {
42 strcpy(m_LeafNames[i], b.m_LeafNames[i]);
43 m_LeafMap[i] = b.m_LeafMap[i];
44 }
45 for (int i = 0; i < 320; i++) {
46 for (int j = 0; j < 2; j++) {
47 m_BitMap[i][j] = b.m_BitMap[i][j];
48 }
49 }
50 for (int i = 0; i < 320; i++) {
51 for (int j = 0; j < 3; j++) {
52 m_BitMap_extra[i][j] = b.m_BitMap_extra[i][j];
53 }
54 }
55 m_nword_header = b.m_nword_header;
56 m_nword_input = b.m_nword_input;
57 m_nword_output = b.m_nword_output;
58 }

Member Function Documentation

◆ get_nword_header()

int get_nword_header ( ) const
inline

Definition at line 168 of file TRGGDLDBUnpacker.h.

169 {
170 return m_nword_header;
171 }

◆ get_nword_input()

int get_nword_input ( ) const
inline

Definition at line 172 of file TRGGDLDBUnpacker.h.

173 {
174 return m_nword_input;
175 }

◆ get_nword_output()

int get_nword_output ( ) const
inline

Definition at line 176 of file TRGGDLDBUnpacker.h.

177 {
178 return m_nword_output;
179 }

◆ getBitMap()

int getBitMap ( int  i,
int  j 
) const
inline

Definition at line 164 of file TRGGDLDBUnpacker.h.

165 {
166 return m_BitMap[i][j];
167 }

◆ getBitMap_extra()

int getBitMap_extra ( int  i,
int  j 
) const
inline

Definition at line 180 of file TRGGDLDBUnpacker.h.

181 {
182 return m_BitMap_extra[i][j];
183 }

◆ getconf()

int getconf ( ) const
inline

Definition at line 152 of file TRGGDLDBUnpacker.h.

153 {
154 return m_conf;
155 }

◆ getLeafMap()

int getLeafMap ( int  i) const
inline

Definition at line 160 of file TRGGDLDBUnpacker.h.

161 {
162 return m_LeafMap[i];
163 }

◆ getLeafnames()

const char * getLeafnames ( int  i) const
inline

Definition at line 156 of file TRGGDLDBUnpacker.h.

157 {
158 return m_LeafNames[i];
159 }

◆ getnBits()

int getnBits ( ) const
inline

Definition at line 148 of file TRGGDLDBUnpacker.h.

149 {
150 return m_nBits;
151 }

◆ getnClks()

int getnClks ( ) const
inline

Definition at line 144 of file TRGGDLDBUnpacker.h.

145 {
146 return m_nClks;
147 }

◆ getnLeafs()

int getnLeafs ( ) const
inline

Definition at line 136 of file TRGGDLDBUnpacker.h.

137 {
138 return m_nLeafs;
139 }

◆ getnLeafsExtra()

int getnLeafsExtra ( ) const
inline

Definition at line 140 of file TRGGDLDBUnpacker.h.

141 {
142 return m_nLeafsExtra;
143 }

◆ operator=()

TRGGDLDBUnpacker & operator= ( const TRGGDLDBUnpacker b)
inline

assignment operator

Definition at line 60 of file TRGGDLDBUnpacker.h.

61 {
62 m_nLeafs = b.m_nLeafs;
63 m_nLeafsExtra = b.m_nLeafsExtra;
64 m_nClks = b.m_nClks;
65 m_nBits = b.m_nBits;
66 m_conf = b.m_conf;
67 for (int i = 0; i < 320; i++) {
68 strcpy(m_LeafNames[i], b.m_LeafNames[i]);
69 m_LeafMap[i] = b.m_LeafMap[i];
70 }
71 for (int i = 0; i < 320; i++) {
72 for (int j = 0; j < 2; j++) {
73 m_BitMap[i][j] = b.m_BitMap[i][j];
74 }
75 }
76 for (int i = 0; i < 320; i++) {
77 for (int j = 0; j < 3; j++) {
78 m_BitMap_extra[i][j] = b.m_BitMap_extra[i][j];
79 }
80 }
81 m_nword_header = b.m_nword_header;
82 m_nword_input = b.m_nword_input;
83 m_nword_output = b.m_nword_output;
84 return *this;
85 }

◆ set_nword_header()

void set_nword_header ( int  i)
inline

Definition at line 119 of file TRGGDLDBUnpacker.h.

120 {
121 m_nword_header = i;
122 }

◆ set_nword_input()

void set_nword_input ( int  i)
inline

Definition at line 123 of file TRGGDLDBUnpacker.h.

124 {
125 m_nword_input = i;
126 }

◆ set_nword_output()

void set_nword_output ( int  i)
inline

Definition at line 127 of file TRGGDLDBUnpacker.h.

128 {
129 m_nword_output = i;
130 }

◆ setBitMap()

void setBitMap ( int  i,
int  j,
int  k 
)
inline

Definition at line 115 of file TRGGDLDBUnpacker.h.

116 {
117 m_BitMap[i][j] = k;
118 }

◆ setBitMap_extra()

void setBitMap_extra ( int  i,
int  j,
int  k 
)
inline

Definition at line 131 of file TRGGDLDBUnpacker.h.

132 {
133 m_BitMap_extra[i][j] = k;
134 }

◆ setconf()

void setconf ( int  i)
inline

Definition at line 103 of file TRGGDLDBUnpacker.h.

104 {
105 m_conf = i;
106 }

◆ setLeafMap()

void setLeafMap ( int  i,
int  j 
)
inline

Definition at line 111 of file TRGGDLDBUnpacker.h.

112 {
113 m_LeafMap[i] = j;
114 }

◆ setLeafName()

void setLeafName ( int  i,
const char *  c 
)
inline

Definition at line 107 of file TRGGDLDBUnpacker.h.

108 {
109 strcpy(m_LeafNames[i], c);
110 }

◆ setnBits()

void setnBits ( int  i)
inline

Definition at line 99 of file TRGGDLDBUnpacker.h.

100 {
101 m_nBits = i;
102 }

◆ setnClks()

void setnClks ( int  i)
inline

Definition at line 95 of file TRGGDLDBUnpacker.h.

96 {
97 m_nClks = i;
98 }

◆ setnLeafs()

void setnLeafs ( int  i)
inline

Definition at line 87 of file TRGGDLDBUnpacker.h.

88 {
89 m_nLeafs = i;
90 }

◆ setnLeafsExtra()

void setnLeafsExtra ( int  i)
inline

Definition at line 91 of file TRGGDLDBUnpacker.h.

92 {
93 m_nLeafsExtra = i;
94 }

Member Data Documentation

◆ m_BitMap

int m_BitMap[320][2]
private

data bit map

Definition at line 211 of file TRGGDLDBUnpacker.h.

◆ m_BitMap_extra

int m_BitMap_extra[320][3]
private

extra leaf bit map

Definition at line 223 of file TRGGDLDBUnpacker.h.

◆ m_conf

int m_conf = 0
private

conf

Definition at line 202 of file TRGGDLDBUnpacker.h.

◆ m_LeafMap

int m_LeafMap[320]
private

leaf map

Definition at line 208 of file TRGGDLDBUnpacker.h.

◆ m_LeafNames

char m_LeafNames[320][100]
private

leaf names

Definition at line 205 of file TRGGDLDBUnpacker.h.

◆ m_nBits

int m_nBits = 0
private

num of Bit

Definition at line 199 of file TRGGDLDBUnpacker.h.

◆ m_nClks

int m_nClks
private

num of clk time window

Definition at line 196 of file TRGGDLDBUnpacker.h.

◆ m_nLeafs

int m_nLeafs
private

num of leafs in data_b2l

Definition at line 190 of file TRGGDLDBUnpacker.h.

◆ m_nLeafsExtra

int m_nLeafsExtra
private

num of leafs for others

Definition at line 193 of file TRGGDLDBUnpacker.h.

◆ m_nword_header

int m_nword_header
private

header size

Definition at line 214 of file TRGGDLDBUnpacker.h.

◆ m_nword_input

int m_nword_input
private

DAM input word size.

Definition at line 217 of file TRGGDLDBUnpacker.h.

◆ m_nword_output

int m_nword_output
private

DAM output word size.

Definition at line 220 of file TRGGDLDBUnpacker.h.


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