#include <PadRegionInfo.h>
|
| PadRegionInfo ()=default |
| default constructor
|
|
| PadRegionInfo (const unsigned char region, const unsigned char partition, const unsigned char numberOfPadRows, const float padHeight, const float padWidth, const float radiusFirstRow, const unsigned char rowOffset, const float xhelper, const unsigned char globalRowOffset) |
|
unsigned char | getRegion () const |
|
unsigned char | getPartition () const |
|
unsigned char | getNumberOfPadRows () const |
|
unsigned short | getNumberOfPads () const |
|
float | getPadHeight () const |
|
float | getPadWidth () const |
|
float | getRadiusFirstRow () const |
|
unsigned char | getGlobalRowOffset () const |
|
unsigned char | getRowOffset () const |
| Local row offset for geometry calculations.
|
|
float | getXhelper () const |
| Helper variable for geometry calculations.
|
|
unsigned char | getPadsInRow (const PadPos &padPos) const |
|
unsigned char | getPadsInRow (const int row) const |
|
unsigned char | getPadsInRowRegion (const int row) const |
|
bool | isInRegion (float localX, float border=0.f) const |
|
const PadPos | findPad (const LocalPosition3D &pos) const |
|
const PadPos | findPad (const LocalPosition2D &pos, const Side side=Side::A) const |
|
const PadPos | findPad (const float localX, const float localY, const Side side) const |
|
Definition at line 40 of file PadRegionInfo.h.
◆ PadRegionInfo() [1/2]
o2::tpc::PadRegionInfo::PadRegionInfo |
( |
| ) |
|
|
default |
◆ PadRegionInfo() [2/2]
o2::tpc::PadRegionInfo::PadRegionInfo |
( |
const unsigned char |
region, |
|
|
const unsigned char |
partition, |
|
|
const unsigned char |
numberOfPadRows, |
|
|
const float |
padHeight, |
|
|
const float |
padWidth, |
|
|
const float |
radiusFirstRow, |
|
|
const unsigned char |
rowOffset, |
|
|
const float |
xhelper, |
|
|
const unsigned char |
globalRowOffset |
|
) |
| |
constructor
- Parameters
-
region | region number |
partition | partition number (CRU in sector) |
numberOfPadRows | number of pad row in this region |
padHeight | height of the pads in tihs region |
padWidth | width of the pads in this region |
radiusFirstRow | radial position of the center of the first row in this region |
rowOffset | row offset in region with same height |
xhelper | helper value to calculate pads per row |
globalRowOffset | global row offset in the sector |
Definition at line 21 of file PadRegionInfo.cxx.
◆ findPad() [1/3]
const PadPos o2::tpc::PadRegionInfo::findPad |
( |
const float |
localX, |
|
|
const float |
localY, |
|
|
const Side |
side |
|
) |
| const |
|
inline |
Find the pad and row for a local X and Y position and readout side
- Parameters
-
localX | local X position in local coordinates |
localY | local Y position in local coordinates |
side | readout side |
- Returns
- pad and row for a local X and Y position and readout side
Definition at line 156 of file PadRegionInfo.h.
◆ findPad() [2/3]
Find the pad and row for a local 2D position and readout side
- Parameters
-
pos | 2D position in local coordinates |
side | readout side |
- Returns
- pad and row for a local 2D position and return side
Definition at line 145 of file PadRegionInfo.h.
◆ findPad() [3/3]
Find the pad and row for a local 3D position
- Parameters
-
pos | 3D position in local coordinates |
- Returns
- pad and row for a local 3D position
Definition at line 136 of file PadRegionInfo.h.
◆ getGlobalRowOffset()
unsigned char o2::tpc::PadRegionInfo::getGlobalRowOffset |
( |
| ) |
const |
|
inline |
Return the row offset in the sector
- Returns
- row offset in the sector
Definition at line 96 of file PadRegionInfo.h.
◆ getNumberOfPadRows()
unsigned char o2::tpc::PadRegionInfo::getNumberOfPadRows |
( |
| ) |
const |
|
inline |
Return the number of pad rows in this region
- Returns
- number of pad rows in this region
Definition at line 76 of file PadRegionInfo.h.
◆ getNumberOfPads()
unsigned short o2::tpc::PadRegionInfo::getNumberOfPads |
( |
| ) |
const |
|
inline |
Return the total number of pads in this region
- Returns
- total number of pads in this region
Definition at line 80 of file PadRegionInfo.h.
◆ getPadHeight()
float o2::tpc::PadRegionInfo::getPadHeight |
( |
| ) |
const |
|
inline |
Return the pad height in this region
- Returns
- pad height in this region
Definition at line 84 of file PadRegionInfo.h.
◆ getPadsInRow() [1/2]
unsigned char o2::tpc::PadRegionInfo::getPadsInRow |
( |
const int |
row | ) |
const |
|
inline |
Return the number of pads for the row
(row in the sector)
- Parameters
-
- Returns
- number of pads for the row in in the sector
Definition at line 115 of file PadRegionInfo.h.
◆ getPadsInRow() [2/2]
unsigned char o2::tpc::PadRegionInfo::getPadsInRow |
( |
const PadPos & |
padPos | ) |
const |
|
inline |
Return the number of pads for the row in padPos
(row in the sector)
- Parameters
-
padPos | pad position in the sector |
- Returns
- number of pads for the row in
padPos
(row in the sector)
Definition at line 107 of file PadRegionInfo.h.
◆ getPadsInRowRegion()
unsigned char o2::tpc::PadRegionInfo::getPadsInRowRegion |
( |
const int |
row | ) |
const |
|
inline |
Return the number of pads for the row
(row in the pad region)
- Parameters
-
padPos | row in the pad region |
- Returns
- number of pads for the row in in the pad region
Definition at line 120 of file PadRegionInfo.h.
◆ getPadWidth()
float o2::tpc::PadRegionInfo::getPadWidth |
( |
| ) |
const |
|
inline |
Return the pad width in this region
- Returns
- pad width in this region
Definition at line 88 of file PadRegionInfo.h.
◆ getPartition()
unsigned char o2::tpc::PadRegionInfo::getPartition |
( |
| ) |
const |
|
inline |
◆ getRadiusFirstRow()
float o2::tpc::PadRegionInfo::getRadiusFirstRow |
( |
| ) |
const |
|
inline |
Return the radius of the first row in this region
- Returns
- radius of the first row in this region
Definition at line 92 of file PadRegionInfo.h.
◆ getRegion()
unsigned char o2::tpc::PadRegionInfo::getRegion |
( |
| ) |
const |
|
inline |
Return the pad region
- Returns
- pad region
Definition at line 68 of file PadRegionInfo.h.
◆ getRowOffset()
unsigned char o2::tpc::PadRegionInfo::getRowOffset |
( |
| ) |
const |
|
inline |
Local row offset for geometry calculations.
Definition at line 99 of file PadRegionInfo.h.
◆ getXhelper()
float o2::tpc::PadRegionInfo::getXhelper |
( |
| ) |
const |
|
inline |
Helper variable for geometry calculations.
Definition at line 102 of file PadRegionInfo.h.
◆ isInRegion()
bool o2::tpc::PadRegionInfo::isInRegion |
( |
float |
localX, |
|
|
float |
border = 0.f |
|
) |
| const |
|
inline |
Check if the local X position is in the region
- Parameters
-
localX | local X position |
border | an optional border width |
- Returns
- true if the local X position is in the region
- Todo:
- check function
Definition at line 127 of file PadRegionInfo.h.
The documentation for this class was generated from the following files: