Project
Loading...
Searching...
No Matches
o2::tpc::PadRegionInfo Class Reference

#include <PadRegionInfo.h>

Public Member Functions

 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
 

Detailed Description

Definition at line 40 of file PadRegionInfo.h.

Constructor & Destructor Documentation

◆ PadRegionInfo() [1/2]

o2::tpc::PadRegionInfo::PadRegionInfo ( )
default

default constructor

◆ 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
regionregion number
partitionpartition number (CRU in sector)
numberOfPadRowsnumber of pad row in this region
padHeightheight of the pads in tihs region
padWidthwidth of the pads in this region
radiusFirstRowradial position of the center of the first row in this region
rowOffsetrow offset in region with same height
xhelperhelper value to calculate pads per row
globalRowOffsetglobal row offset in the sector

Definition at line 21 of file PadRegionInfo.cxx.

Member Function Documentation

◆ 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
localXlocal X position in local coordinates
localYlocal Y position in local coordinates
sidereadout 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]

const PadPos o2::tpc::PadRegionInfo::findPad ( const LocalPosition2D pos,
const Side  side = Side::A 
) const
inline

Find the pad and row for a local 2D position and readout side

Parameters
pos2D position in local coordinates
sidereadout side
Returns
pad and row for a local 2D position and return side

Definition at line 145 of file PadRegionInfo.h.

◆ findPad() [3/3]

const PadPos o2::tpc::PadRegionInfo::findPad ( const LocalPosition3D pos) const
inline

Find the pad and row for a local 3D position

Parameters
pos3D 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
padPosrow in the sector
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
padPospad 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
padPosrow 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

Return the partition

Returns
partition

Definition at line 72 of file PadRegionInfo.h.

◆ 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
localXlocal X position
borderan 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: