Belle II Software development
|
The Class for ARICH HAPD channel mapping. More...
#include <ARICHChannelMapping.h>
Public Member Functions | |
ARICHChannelMapping () | |
Default constructor. | |
bool | getXYFromAsic (unsigned asicChn, int &xChn, int &yChn) const |
Get HAPD channel X,Y numbers from asic channel number. | |
int | getAsicFromXY (unsigned xChn, unsigned yChn) const |
Get asic channel number from HAPD channel X,Y numbers. | |
void | mapXY2Asic (unsigned xChn, unsigned yChn, unsigned asicChn) |
Add entry to channel map. | |
void | print () const |
Print mapping parameters. | |
Private Member Functions | |
ClassDef (ARICHChannelMapping, 1) | |
ClassDef, must be the last term before the closing {}. | |
Private Attributes | |
std::vector< uint8_t > | m_xy2asic |
map of X,Y to asic channels numbers | |
std::vector< uint8_t > | m_asic2xy |
map of asic to X,Y channel numbers | |
The Class for ARICH HAPD channel mapping.
This class provides mapping from hapd channel x,y numbers (both 0-11) to channel asic numbers (0-143)
Definition at line 28 of file ARICHChannelMapping.h.
Default constructor.
Definition at line 18 of file ARICHChannelMapping.cc.
int getAsicFromXY | ( | unsigned | xChn, |
unsigned | yChn | ||
) | const |
Get asic channel number from HAPD channel X,Y numbers.
xChn | channel X number |
yChn | channel Y number |
Definition at line 37 of file ARICHChannelMapping.cc.
bool getXYFromAsic | ( | unsigned | asicChn, |
int & | xChn, | ||
int & | yChn | ||
) | const |
Get HAPD channel X,Y numbers from asic channel number.
asicChn | |
xChn | returned channel X number |
yChn | returned channel Y number |
Definition at line 24 of file ARICHChannelMapping.cc.
void mapXY2Asic | ( | unsigned | xChn, |
unsigned | yChn, | ||
unsigned | asicChn | ||
) |
Add entry to channel map.
xChn | channel X number |
yChn | channel Y number |
asicChn | asic channel number |
Definition at line 44 of file ARICHChannelMapping.cc.
void print | ( | ) | const |
Print mapping parameters.
Definition at line 53 of file ARICHChannelMapping.cc.
|
private |
map of asic to X,Y channel numbers
Definition at line 67 of file ARICHChannelMapping.h.
|
private |
map of X,Y to asic channels numbers
Definition at line 66 of file ARICHChannelMapping.h.