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

#include <Mapper.h>

Public Member Functions

const PadPospadPos (GlobalPadNumber padNumber) const
 
const PadCentrepadCentre (GlobalPadNumber padNumber) const
 
const FECInfofecInfo (GlobalPadNumber padNumber) const
 
GlobalPadNumber globalPadNumber (const PadPos &globalPadPosition) const
 
int getCRU (const Sector &sec, GlobalPadNumber globalPad) const
 
GlobalPadNumber getPadNumberInROC (const PadROCPos &rocPadPosition) const
 
GlobalPadNumber getPadNumberInPartition (int partition, int row, int pad) const
 
GlobalPadNumber getPadNumberInRegion (CRU cru, int row, int pad) const
 
GlobalPadNumber getPadNumber (const PadSubset padSubset, const size_t padSubsetNumber, const int row, const int pad) const
 
GlobalPadNumber globalPadNumber (const FECInfo &fec) const
 
GlobalPadNumber globalPadNumber (const int fecInSector, const int sampaOnFEC, const int channelOnSAMPA) const
 
GlobalPosition2D getPadCentre (const PadSecPos &padSec) const
 
GlobalPosition2D getPadCentre (const PadROCPos &padRoc) const
 
const FECInfogetFECInfo (const PadROCPos &padROC) const
 
const PadCentregetPadCentre (const PadPos &pad) const
 
const PadPospadPos (const FECInfo &fec) const
 
const PadPospadPos (const int fecInSector, const int sampaOnFEC, const int channelOnSAMPA) const
 
const PadCentrepadCentre (const FECInfo &fec) const
 
const PadCentrepadCentre (const int fecInSector, const int sampaOnFEC, const int channelOnSAMPA) const
 
const PadPospadPos (const int partition, const int fecInPartition, const int sampaOnFEC, const int channelOnSAMPA) const
 
const PadPos padPosPartition (const int partition, const int fecInPartition, const int sampaOnFEC, const int channelOnSAMPA) const
 
const PadPos padPosRegion (const int cruNumber, const int fecInPartition, const int sampaOnFEC, const int channelOnSAMPA) const
 
const PadROCPos padROCPos (const CRU cru, const int fecInPartition, const int sampaOnFEC, const int channelOnSAMPA) const
 
const PadSecPos padSecPos (const CRU cru, const int fecInPartition, const int sampaOnFEC, const int channelOnSAMPA) const
 
const PadCentrepadCentre (const int partition, const int fecInPartition, const int sampaOnFEC, const int channelOnSAMPA) const
 
int getNumberOfRows () const
 
int getNumberOfRowsROC (ROC roc) const
 
int getNumberOfRowsRegion (int region) const
 
int getGlobalRowOffsetRegion (int region) const
 
int getNumberOfRowsPartition (CRU cru) const
 
int getNumberOfPadRows (PadSubset padSubset, int position) const
 
int getNumberOfPadsInRowSector (int row) const
 
int getPadOffsetInRowSector (int row) const
 
int getNumberOfPadsInRowROC (int roc, int row) const
 
int getNumberOfPadsInRowRegion (int region, int row) const
 
int getNumberOfPadsInRowPartition (int partition, int row) const
 
int getNumberOfPadsInRow (PadSubset padSubset, int position, int row) const
 
const PadPos getGlobalPadPos (const PadROCPos &padROC) const
 Convert sector, row, pad to global pad row in sector and pad number.
 
const PadRegionInfogetPadRegionInfo (const unsigned char region) const
 
const std::array< PadRegionInfo, 10 > & getMapPadRegionInfo () const
 
int getNumberOfPadRegions () const
 
const PartitionInfogetPartitionInfo (const unsigned char partition) const
 
const std::array< PartitionInfo, 5 > & getMapPartitionInfo () const
 
int getNumberOfPartitions () const
 
const DigitPos findDigitPosFromLocalPosition (const LocalPosition3D &pos, const Sector &sec) const
 
const DigitPos findDigitPosFromGlobalPosition (const GlobalPosition3D &pos) const
 
const DigitPos findDigitPosFromGlobalPosition (const GlobalPosition3D &pos, const Sector &sector) const
 
bool isOutOfSector (GlobalPosition3D posEle, const Sector &sector, const float margin=0.f) const
 
unsigned short getNumberOfPads (const ROC roc) const
 
const std::vector< PadPos > & getMapGlobalPadToPadPos () const
 
const std::vector< int > & getMapFECIDGlobalPad () const
 
const std::vector< float > & getTraceLengthsIROC () const
 
const std::vector< float > & getTraceLengthsOROC () const
 

Static Public Member Functions

static Mapperinstance (const std::string mappingDir="")
 
static GlobalPadNumber getGlobalPadNumber (const unsigned int lrow, const unsigned int pad, const unsigned int region)
 
static unsigned int getLocalPadNumber (const unsigned int row, const unsigned int pad)
 
static unsigned int getLocalRowFromGlobalRow (const unsigned int row)
 
static constexpr void getSampaAndChannelOnFEC (const int cruID, const size_t rawFECChannel, int &sampaOnFEC, int &channelOnSAMPA)
 
static constexpr auto getNumberOfRowsInIROC ()
 
static constexpr auto getNumberOfRowsInOROC ()
 
static constexpr int getNumberOfPadsPerSide ()
 
static bool isEdgePad (int rowInSector, int padInRow)
 
static bool isFirstOrLastRowInStack (int rowInSector)
 
static bool isBelowSpacerCross (int rowInSector, int padInRow)
 
static bool isHighCouplingPad (int rowInSector, int padInRow)
 
static constexpr unsigned short getNumberOfIROCs ()
 
static constexpr unsigned short getNumberOfOROCs ()
 
static constexpr unsigned short getPadsInIROC ()
 
static constexpr unsigned short getPadsInOROC1 ()
 
static constexpr unsigned short getPadsInOROC2 ()
 
static constexpr unsigned short getPadsInOROC3 ()
 
static constexpr unsigned short getPadsInOROC ()
 
static constexpr unsigned short getPadsInSector ()
 
static constexpr unsigned short getNumberOfPads (const GEMstack gemStack)
 
static GlobalPosition3D LocalToGlobal (const LocalPosition3D &pos, const double alpha)
 
static LocalPosition3D GlobalToLocal (const GlobalPosition3D &pos, const double alpha)
 
static GlobalPosition3D LocalToGlobal (const LocalPosition3D &pos, const Sector sec)
 
static LocalPosition3D GlobalToLocal (const GlobalPosition3D &pos, const Sector sec)
 
static GlobalPosition2D LocalToGlobal (const LocalPosition2D &pos, const double alpha)
 
static LocalPosition2D GlobalToLocal (const GlobalPosition2D &pos, const double alpha)
 
static GlobalPosition2D LocalToGlobal (const LocalPosition2D &pos, const Sector sec)
 
static LocalPosition2D GlobalToLocal (const GlobalPosition2D &pos, const Sector sec)
 

Static Public Attributes

static constexpr unsigned int NSECTORS {36}
 total number of sectors in the TPC
 
static constexpr unsigned int NREGIONS {10}
 total number of regions in one sector
 
static constexpr unsigned int PADROWS {152}
 total number of pad rows
 
static constexpr unsigned int NENDPOINTS {2}
 number of end points
 
static constexpr unsigned int PADSPERREGION [NREGIONS] {1200, 1200, 1440, 1440, 1440, 1440, 1600, 1600, 1600, 1600}
 number of pads per CRU
 
static constexpr unsigned int GLOBALPADOFFSET [NREGIONS] {0, 1200, 2400, 3840, 5280, 6720, 8160, 9760, 11360, 12960}
 offset of number of pads for region
 
static constexpr unsigned int ROWSPERREGION [NREGIONS] {17, 15, 16, 15, 18, 16, 16, 14, 13, 12}
 number of pad rows for region
 
static constexpr unsigned int ROWOFFSET [NREGIONS] {0, 17, 32, 48, 63, 81, 97, 113, 127, 140}
 offset to calculate local row from global row
 
static constexpr unsigned int ROWOFFSETSTACK [4] {0, 63, 97, 127}
 offset to calculate local row from global row
 
static constexpr float REGIONAREA [NREGIONS] {374.4f, 378.f, 453.6f, 470.88f, 864.f, 864.f, 1167.36f, 1128.96f, 1449.6f, 1456.8f}
 volume of each region in cm^2
 
static constexpr float INVPADAREA [NREGIONS] {1 / 0.312f, 1 / 0.315f, 1 / 0.315f, 1 / 0.327f, 1 / 0.6f, 1 / 0.6f, 1 / 0.7296f, 1 / 0.7056f, 1 / 0.906f, 1 / 0.9105f}
 inverse size of the pad area padwidth*padLength
 
static constexpr unsigned REGION [PADROWS]
 region for global pad row
 
static const std::vector< unsigned intADDITIONALPADSPERROW [NREGIONS]
 additional pads per row compared to first row
 
static const std::vector< unsigned intOFFSETCRULOCAL [NREGIONS]
 row offset in cru for given local pad row
 
static const std::vector< unsigned intPADSPERROW [NREGIONS]
 number of pads per row in region
 
static constexpr unsigned int OFFSETCRUGLOBAL [PADROWS]
 row offset in cru for given global pad row
 
static constexpr unsigned int LinksPerRegionPerEndpoint [NREGIONS][NENDPOINTS]
 number of links per region per end point
 

Detailed Description

Definition at line 41 of file Mapper.h.

Member Function Documentation

◆ fecInfo()

const FECInfo & o2::tpc::Mapper::fecInfo ( GlobalPadNumber  padNumber) const
inline

Definition at line 52 of file Mapper.h.

◆ findDigitPosFromGlobalPosition() [1/2]

const DigitPos o2::tpc::Mapper::findDigitPosFromGlobalPosition ( const GlobalPosition3D pos) const
inline

Definition at line 716 of file Mapper.h.

◆ findDigitPosFromGlobalPosition() [2/2]

const DigitPos o2::tpc::Mapper::findDigitPosFromGlobalPosition ( const GlobalPosition3D pos,
const Sector sector 
) const
inline

Definition at line 733 of file Mapper.h.

◆ findDigitPosFromLocalPosition()

const DigitPos o2::tpc::Mapper::findDigitPosFromLocalPosition ( const LocalPosition3D pos,
const Sector sec 
) const
inline

Definition at line 701 of file Mapper.h.

◆ getCRU()

int o2::tpc::Mapper::getCRU ( const Sector sec,
GlobalPadNumber  globalPad 
) const
inline

return the cru number from sector and global pad number

Parameters
secsector
globalPadglobal pad number in sector
Returns
global cru number

Definition at line 78 of file Mapper.h.

◆ getFECInfo()

const FECInfo & o2::tpc::Mapper::getFECInfo ( const PadROCPos padROC) const
inline

Definition at line 179 of file Mapper.h.

◆ getGlobalPadNumber()

static GlobalPadNumber o2::tpc::Mapper::getGlobalPadNumber ( const unsigned int  lrow,
const unsigned int  pad,
const unsigned int  region 
)
inlinestatic
Returns
returns the global pad number for given local pad row and pad
Parameters
lrowungrouped local row in a region
padungrouped pad in row

Definition at line 64 of file Mapper.h.

◆ getGlobalPadPos()

const PadPos o2::tpc::Mapper::getGlobalPadPos ( const PadROCPos padROC) const
inline

Convert sector, row, pad to global pad row in sector and pad number.

Definition at line 377 of file Mapper.h.

◆ getGlobalRowOffsetRegion()

int o2::tpc::Mapper::getGlobalRowOffsetRegion ( int  region) const
inline

Definition at line 313 of file Mapper.h.

◆ getLocalPadNumber()

static unsigned int o2::tpc::Mapper::getLocalPadNumber ( const unsigned int  row,
const unsigned int  pad 
)
inlinestatic
Parameters
rowglobal pad row
padpad in row
Returns
returns local pad number in region

Definition at line 69 of file Mapper.h.

◆ getLocalRowFromGlobalRow()

static unsigned int o2::tpc::Mapper::getLocalRowFromGlobalRow ( const unsigned int  row)
inlinestatic
Parameters
rowglobal pad row

Definition at line 72 of file Mapper.h.

◆ getMapFECIDGlobalPad()

const std::vector< int > & o2::tpc::Mapper::getMapFECIDGlobalPad ( ) const
inline

Definition at line 448 of file Mapper.h.

◆ getMapGlobalPadToPadPos()

const std::vector< PadPos > & o2::tpc::Mapper::getMapGlobalPadToPadPos ( ) const
inline

Definition at line 447 of file Mapper.h.

◆ getMapPadRegionInfo()

const std::array< PadRegionInfo, 10 > & o2::tpc::Mapper::getMapPadRegionInfo ( ) const
inline

Definition at line 386 of file Mapper.h.

◆ getMapPartitionInfo()

const std::array< PartitionInfo, 5 > & o2::tpc::Mapper::getMapPartitionInfo ( ) const
inline

Definition at line 390 of file Mapper.h.

◆ getNumberOfIROCs()

static constexpr unsigned short o2::tpc::Mapper::getNumberOfIROCs ( )
inlinestaticconstexpr

Definition at line 407 of file Mapper.h.

◆ getNumberOfOROCs()

static constexpr unsigned short o2::tpc::Mapper::getNumberOfOROCs ( )
inlinestaticconstexpr

Definition at line 408 of file Mapper.h.

◆ getNumberOfPadRegions()

int o2::tpc::Mapper::getNumberOfPadRegions ( ) const
inline

Definition at line 387 of file Mapper.h.

◆ getNumberOfPadRows()

int o2::tpc::Mapper::getNumberOfPadRows ( PadSubset  padSubset,
int  position 
) const
inline

Definition at line 321 of file Mapper.h.

◆ getNumberOfPads() [1/2]

static constexpr unsigned short o2::tpc::Mapper::getNumberOfPads ( const GEMstack  gemStack)
inlinestaticconstexpr

Definition at line 416 of file Mapper.h.

◆ getNumberOfPads() [2/2]

unsigned short o2::tpc::Mapper::getNumberOfPads ( const ROC  roc) const
inline

Definition at line 439 of file Mapper.h.

◆ getNumberOfPadsInRow()

int o2::tpc::Mapper::getNumberOfPadsInRow ( PadSubset  padSubset,
int  position,
int  row 
) const
inline

Definition at line 354 of file Mapper.h.

◆ getNumberOfPadsInRowPartition()

int o2::tpc::Mapper::getNumberOfPadsInRowPartition ( int  partition,
int  row 
) const
inline

Definition at line 350 of file Mapper.h.

◆ getNumberOfPadsInRowRegion()

int o2::tpc::Mapper::getNumberOfPadsInRowRegion ( int  region,
int  row 
) const
inline

Definition at line 346 of file Mapper.h.

◆ getNumberOfPadsInRowROC()

int o2::tpc::Mapper::getNumberOfPadsInRowROC ( int  roc,
int  row 
) const
inline

Definition at line 342 of file Mapper.h.

◆ getNumberOfPadsInRowSector()

int o2::tpc::Mapper::getNumberOfPadsInRowSector ( int  row) const
inline

Definition at line 340 of file Mapper.h.

◆ getNumberOfPadsPerSide()

static constexpr int o2::tpc::Mapper::getNumberOfPadsPerSide ( )
inlinestaticconstexpr
Returns
returns number of pads per side of the TPC

Definition at line 374 of file Mapper.h.

◆ getNumberOfPartitions()

int o2::tpc::Mapper::getNumberOfPartitions ( ) const
inline

Definition at line 391 of file Mapper.h.

◆ getNumberOfRows()

int o2::tpc::Mapper::getNumberOfRows ( ) const
inline

Definition at line 297 of file Mapper.h.

◆ getNumberOfRowsInIROC()

static constexpr auto o2::tpc::Mapper::getNumberOfRowsInIROC ( )
inlinestaticconstexpr
Returns
returns number of pad rows in IROCs

Definition at line 300 of file Mapper.h.

◆ getNumberOfRowsInOROC()

static constexpr auto o2::tpc::Mapper::getNumberOfRowsInOROC ( )
inlinestaticconstexpr
Returns
returns number of pad rows in OROCs

Definition at line 303 of file Mapper.h.

◆ getNumberOfRowsPartition()

int o2::tpc::Mapper::getNumberOfRowsPartition ( CRU  cru) const
inline

Definition at line 317 of file Mapper.h.

◆ getNumberOfRowsRegion()

int o2::tpc::Mapper::getNumberOfRowsRegion ( int  region) const
inline

Definition at line 309 of file Mapper.h.

◆ getNumberOfRowsROC()

int o2::tpc::Mapper::getNumberOfRowsROC ( ROC  roc) const
inline

Definition at line 305 of file Mapper.h.

◆ getPadCentre() [1/3]

const PadCentre & o2::tpc::Mapper::getPadCentre ( const PadPos pad) const
inline

Definition at line 187 of file Mapper.h.

◆ getPadCentre() [2/3]

GlobalPosition2D o2::tpc::Mapper::getPadCentre ( const PadROCPos padRoc) const
inline

Definition at line 172 of file Mapper.h.

◆ getPadCentre() [3/3]

GlobalPosition2D o2::tpc::Mapper::getPadCentre ( const PadSecPos padSec) const
inline

Definition at line 163 of file Mapper.h.

◆ getPadNumber()

GlobalPadNumber o2::tpc::Mapper::getPadNumber ( const PadSubset  padSubset,
const size_t  padSubsetNumber,
const int  row,
const int  pad 
) const
inline

return pad number for a pad subset type

Returns
global pad number in a padsubset
Parameters
padSubsetpad subset type (e.g. PadSubset::ROC)
padSubsetNumbernumber of the pad subset (e.g. 10 for ROC 10)
rowrow
padpad

Definition at line 134 of file Mapper.h.

◆ getPadNumberInPartition()

GlobalPadNumber o2::tpc::Mapper::getPadNumberInPartition ( int  partition,
int  row,
int  pad 
) const
inline

return the global pad number in a partition for partition, row, pad

Returns
global pad number in a partition for partition, row, pad
Todo:
add check for row and pad limits

Definition at line 107 of file Mapper.h.

◆ getPadNumberInRegion()

GlobalPadNumber o2::tpc::Mapper::getPadNumberInRegion ( CRU  cru,
int  row,
int  pad 
) const
inline

return the global pad number in a region for region, row, pad

Returns
global pad number in a region for region, row, pad
Todo:
add check for row and pad limits

Definition at line 119 of file Mapper.h.

◆ getPadNumberInROC()

GlobalPadNumber o2::tpc::Mapper::getPadNumberInROC ( const PadROCPos rocPadPosition) const
inline

return the global pad number in ROC for PadROCPos (ROC, row, pad)

Returns
global pad number of PadROCPos (ROC, row, pad)
Todo:
add check for row and pad limits

Definition at line 96 of file Mapper.h.

◆ getPadOffsetInRowSector()

int o2::tpc::Mapper::getPadOffsetInRowSector ( int  row) const
inline

Definition at line 341 of file Mapper.h.

◆ getPadRegionInfo()

const PadRegionInfo & o2::tpc::Mapper::getPadRegionInfo ( const unsigned char  region) const
inline

Definition at line 385 of file Mapper.h.

◆ getPadsInIROC()

static constexpr unsigned short o2::tpc::Mapper::getPadsInIROC ( )
inlinestaticconstexpr

Definition at line 409 of file Mapper.h.

◆ getPadsInOROC()

static constexpr unsigned short o2::tpc::Mapper::getPadsInOROC ( )
inlinestaticconstexpr

Definition at line 413 of file Mapper.h.

◆ getPadsInOROC1()

static constexpr unsigned short o2::tpc::Mapper::getPadsInOROC1 ( )
inlinestaticconstexpr

Definition at line 410 of file Mapper.h.

◆ getPadsInOROC2()

static constexpr unsigned short o2::tpc::Mapper::getPadsInOROC2 ( )
inlinestaticconstexpr

Definition at line 411 of file Mapper.h.

◆ getPadsInOROC3()

static constexpr unsigned short o2::tpc::Mapper::getPadsInOROC3 ( )
inlinestaticconstexpr

Definition at line 412 of file Mapper.h.

◆ getPadsInSector()

static constexpr unsigned short o2::tpc::Mapper::getPadsInSector ( )
inlinestaticconstexpr

Definition at line 414 of file Mapper.h.

◆ getPartitionInfo()

const PartitionInfo & o2::tpc::Mapper::getPartitionInfo ( const unsigned char  partition) const
inline

Definition at line 389 of file Mapper.h.

◆ getSampaAndChannelOnFEC()

static constexpr void o2::tpc::Mapper::getSampaAndChannelOnFEC ( const int  cruID,
const size_t  rawFECChannel,
int sampaOnFEC,
int channelOnSAMPA 
)
inlinestaticconstexpr

sampa on FEC and channel on SAMPA from the cru and the raw FEC channel (0-79) in the half FEC this is required for the link-based zero suppression

Definition at line 275 of file Mapper.h.

◆ getTraceLengthsIROC()

const std::vector< float > & o2::tpc::Mapper::getTraceLengthsIROC ( ) const
inline

Definition at line 450 of file Mapper.h.

◆ getTraceLengthsOROC()

const std::vector< float > & o2::tpc::Mapper::getTraceLengthsOROC ( ) const
inline

Definition at line 451 of file Mapper.h.

◆ globalPadNumber() [1/3]

GlobalPadNumber o2::tpc::Mapper::globalPadNumber ( const FECInfo fec) const
inline

Definition at line 154 of file Mapper.h.

◆ globalPadNumber() [2/3]

GlobalPadNumber o2::tpc::Mapper::globalPadNumber ( const int  fecInSector,
const int  sampaOnFEC,
const int  channelOnSAMPA 
) const
inline

Definition at line 158 of file Mapper.h.

◆ globalPadNumber() [3/3]

GlobalPadNumber o2::tpc::Mapper::globalPadNumber ( const PadPos globalPadPosition) const
inline

Definition at line 56 of file Mapper.h.

◆ GlobalToLocal() [1/4]

static LocalPosition2D o2::tpc::Mapper::GlobalToLocal ( const GlobalPosition2D pos,
const double  alpha 
)
inlinestatic
Todo:
: Lookup over sector number

Definition at line 501 of file Mapper.h.

◆ GlobalToLocal() [2/4]

static LocalPosition2D o2::tpc::Mapper::GlobalToLocal ( const GlobalPosition2D pos,
const Sector  sec 
)
inlinestatic
Todo:
: Lookup over sector number

Definition at line 517 of file Mapper.h.

◆ GlobalToLocal() [3/4]

static LocalPosition3D o2::tpc::Mapper::GlobalToLocal ( const GlobalPosition3D pos,
const double  alpha 
)
inlinestatic
Todo:
: Lookup over sector number

Definition at line 468 of file Mapper.h.

◆ GlobalToLocal() [4/4]

static LocalPosition3D o2::tpc::Mapper::GlobalToLocal ( const GlobalPosition3D pos,
const Sector  sec 
)
inlinestatic
Todo:
: Lookup over sector number

Definition at line 484 of file Mapper.h.

◆ instance()

static Mapper & o2::tpc::Mapper::instance ( const std::string  mappingDir = "")
inlinestatic

Definition at line 44 of file Mapper.h.

◆ isBelowSpacerCross()

bool o2::tpc::Mapper::isBelowSpacerCross ( int  rowInSector,
int  padInRow 
)
static

Definition at line 322 of file Mapper.cxx.

◆ isEdgePad()

bool o2::tpc::Mapper::isEdgePad ( int  rowInSector,
int  padInRow 
)
static

Definition at line 301 of file Mapper.cxx.

◆ isFirstOrLastRowInStack()

bool o2::tpc::Mapper::isFirstOrLastRowInStack ( int  rowInSector)
static

Definition at line 307 of file Mapper.cxx.

◆ isHighCouplingPad()

static bool o2::tpc::Mapper::isHighCouplingPad ( int  rowInSector,
int  padInRow 
)
inlinestatic

Definition at line 402 of file Mapper.h.

◆ isOutOfSector()

bool o2::tpc::Mapper::isOutOfSector ( GlobalPosition3D  posEle,
const Sector sector,
const float  margin = 0.f 
) const
inline

Definition at line 739 of file Mapper.h.

◆ LocalToGlobal() [1/4]

static GlobalPosition2D o2::tpc::Mapper::LocalToGlobal ( const LocalPosition2D pos,
const double  alpha 
)
inlinestatic

Definition at line 494 of file Mapper.h.

◆ LocalToGlobal() [2/4]

static GlobalPosition2D o2::tpc::Mapper::LocalToGlobal ( const LocalPosition2D pos,
const Sector  sec 
)
inlinestatic

Definition at line 509 of file Mapper.h.

◆ LocalToGlobal() [3/4]

static GlobalPosition3D o2::tpc::Mapper::LocalToGlobal ( const LocalPosition3D pos,
const double  alpha 
)
inlinestatic

Definition at line 461 of file Mapper.h.

◆ LocalToGlobal() [4/4]

static GlobalPosition3D o2::tpc::Mapper::LocalToGlobal ( const LocalPosition3D pos,
const Sector  sec 
)
inlinestatic

Definition at line 476 of file Mapper.h.

◆ padCentre() [1/4]

const PadCentre & o2::tpc::Mapper::padCentre ( const FECInfo fec) const
inline

Definition at line 204 of file Mapper.h.

◆ padCentre() [2/4]

const PadCentre & o2::tpc::Mapper::padCentre ( const int  fecInSector,
const int  sampaOnFEC,
const int  channelOnSAMPA 
) const
inline

Definition at line 210 of file Mapper.h.

◆ padCentre() [3/4]

const PadCentre & o2::tpc::Mapper::padCentre ( const int  partition,
const int  fecInPartition,
const int  sampaOnFEC,
const int  channelOnSAMPA 
) const
inline

Definition at line 288 of file Mapper.h.

◆ padCentre() [4/4]

const PadCentre & o2::tpc::Mapper::padCentre ( GlobalPadNumber  padNumber) const
inline

Definition at line 51 of file Mapper.h.

◆ padPos() [1/4]

const PadPos & o2::tpc::Mapper::padPos ( const FECInfo fec) const
inline

Definition at line 192 of file Mapper.h.

◆ padPos() [2/4]

const PadPos & o2::tpc::Mapper::padPos ( const int  fecInSector,
const int  sampaOnFEC,
const int  channelOnSAMPA 
) const
inline

Definition at line 198 of file Mapper.h.

◆ padPos() [3/4]

const PadPos & o2::tpc::Mapper::padPos ( const int  partition,
const int  fecInPartition,
const int  sampaOnFEC,
const int  channelOnSAMPA 
) const
inline

Definition at line 217 of file Mapper.h.

◆ padPos() [4/4]

const PadPos & o2::tpc::Mapper::padPos ( GlobalPadNumber  padNumber) const
inline

Definition at line 50 of file Mapper.h.

◆ padPosPartition()

const PadPos o2::tpc::Mapper::padPosPartition ( const int  partition,
const int  fecInPartition,
const int  sampaOnFEC,
const int  channelOnSAMPA 
) const
inline

Definition at line 225 of file Mapper.h.

◆ padPosRegion()

const PadPos o2::tpc::Mapper::padPosRegion ( const int  cruNumber,
const int  fecInPartition,
const int  sampaOnFEC,
const int  channelOnSAMPA 
) const
inline

Definition at line 236 of file Mapper.h.

◆ padROCPos()

const PadROCPos o2::tpc::Mapper::padROCPos ( const CRU  cru,
const int  fecInPartition,
const int  sampaOnFEC,
const int  channelOnSAMPA 
) const
inline

Definition at line 249 of file Mapper.h.

◆ padSecPos()

const PadSecPos o2::tpc::Mapper::padSecPos ( const CRU  cru,
const int  fecInPartition,
const int  sampaOnFEC,
const int  channelOnSAMPA 
) const
inline

Definition at line 263 of file Mapper.h.

Member Data Documentation

◆ ADDITIONALPADSPERROW

const std::vector<unsigned int> o2::tpc::Mapper::ADDITIONALPADSPERROW[NREGIONS]
inlinestatic
Initial value:
{
{0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5},
{0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4},
{0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4},
{0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4},
{0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4},
{0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4},
{0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6},
{0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4},
{0, 0, 1, 1, 2, 2, 3, 3, 3, 4, 4, 5, 5},
{0, 1, 1, 2, 2, 2, 3, 3, 4, 4, 5, 5}
}

additional pads per row compared to first row

Definition at line 543 of file Mapper.h.

◆ GLOBALPADOFFSET

constexpr unsigned int o2::tpc::Mapper::GLOBALPADOFFSET[NREGIONS] {0, 1200, 2400, 3840, 5280, 6720, 8160, 9760, 11360, 12960}
staticconstexpr

offset of number of pads for region

Definition at line 531 of file Mapper.h.

◆ INVPADAREA

constexpr float o2::tpc::Mapper::INVPADAREA[NREGIONS] {1 / 0.312f, 1 / 0.315f, 1 / 0.315f, 1 / 0.327f, 1 / 0.6f, 1 / 0.6f, 1 / 0.7296f, 1 / 0.7056f, 1 / 0.906f, 1 / 0.9105f}
staticconstexpr

inverse size of the pad area padwidth*padLength

Definition at line 536 of file Mapper.h.

◆ LinksPerRegionPerEndpoint

constexpr unsigned int o2::tpc::Mapper::LinksPerRegionPerEndpoint[NREGIONS][NENDPOINTS]
staticconstexpr
Initial value:
{
{8, 7},
{8, 7},
{9, 9},
{9, 9},
{9, 9},
{9, 9},
{10, 10},
{10, 10},
{10, 10},
{10, 10},
}

number of links per region per end point

Definition at line 592 of file Mapper.h.

◆ NENDPOINTS

constexpr unsigned int o2::tpc::Mapper::NENDPOINTS {2}
staticconstexpr

number of end points

Definition at line 529 of file Mapper.h.

◆ NREGIONS

constexpr unsigned int o2::tpc::Mapper::NREGIONS {10}
staticconstexpr

total number of regions in one sector

Definition at line 527 of file Mapper.h.

◆ NSECTORS

constexpr unsigned int o2::tpc::Mapper::NSECTORS {36}
staticconstexpr

total number of sectors in the TPC

Definition at line 526 of file Mapper.h.

◆ OFFSETCRUGLOBAL

constexpr unsigned int o2::tpc::Mapper::OFFSETCRUGLOBAL[PADROWS]
staticconstexpr
Initial value:
{
0, 66, 132, 198, 266, 334, 402, 472, 542, 612, 684, 756, 828, 902, 976, 1050, 1124,
0, 76, 152, 228, 306, 384, 462, 542, 622, 702, 784, 866, 948, 1032, 1116,
0, 86, 172, 258, 346, 434, 522, 612, 702, 792, 882, 974, 1066, 1158, 1252, 1346,
0, 92, 184, 276, 370, 464, 558, 654, 750, 846, 944, 1042, 1140, 1240, 1340,
0, 76, 152, 228, 304, 382, 460, 538, 618, 698, 778, 858, 940, 1022, 1104, 1188, 1272, 1356,
0, 86, 172, 258, 346, 434, 522, 612, 702, 792, 882, 974, 1066, 1158, 1252, 1346,
0, 94, 190, 286, 382, 480, 578, 676, 776, 876, 978, 1080, 1182, 1286, 1390, 1494,
0, 110, 220, 332, 444, 556, 670, 784, 898, 1014, 1130, 1246, 1364, 1482,
0, 118, 236, 356, 476, 598, 720, 844, 968, 1092, 1218, 1344, 1472,
0, 128, 258, 388, 520, 652, 784, 918, 1052, 1188, 1324, 1462
}

row offset in cru for given global pad row

Definition at line 579 of file Mapper.h.

◆ OFFSETCRULOCAL

const std::vector<unsigned int> o2::tpc::Mapper::OFFSETCRULOCAL[NREGIONS]
inlinestatic
Initial value:
{
{0, 66, 132, 198, 266, 334, 402, 472, 542, 612, 684, 756, 828, 902, 976, 1050, 1124},
{0, 76, 152, 228, 306, 384, 462, 542, 622, 702, 784, 866, 948, 1032, 1116},
{0, 86, 172, 258, 346, 434, 522, 612, 702, 792, 882, 974, 1066, 1158, 1252, 1346},
{0, 92, 184, 276, 370, 464, 558, 654, 750, 846, 944, 1042, 1140, 1240, 1340},
{0, 76, 152, 228, 304, 382, 460, 538, 618, 698, 778, 858, 940, 1022, 1104, 1188, 1272, 1356},
{0, 86, 172, 258, 346, 434, 522, 612, 702, 792, 882, 974, 1066, 1158, 1252, 1346},
{0, 94, 190, 286, 382, 480, 578, 676, 776, 876, 978, 1080, 1182, 1286, 1390, 1494},
{0, 110, 220, 332, 444, 556, 670, 784, 898, 1014, 1130, 1246, 1364, 1482},
{0, 118, 236, 356, 476, 598, 720, 844, 968, 1092, 1218, 1344, 1472},
{0, 128, 258, 388, 520, 652, 784, 918, 1052, 1188, 1324, 1462}
}

row offset in cru for given local pad row

Definition at line 555 of file Mapper.h.

◆ PADROWS

constexpr unsigned int o2::tpc::Mapper::PADROWS {152}
staticconstexpr

total number of pad rows

Definition at line 528 of file Mapper.h.

◆ PADSPERREGION

constexpr unsigned int o2::tpc::Mapper::PADSPERREGION[NREGIONS] {1200, 1200, 1440, 1440, 1440, 1440, 1600, 1600, 1600, 1600}
staticconstexpr

number of pads per CRU

Definition at line 530 of file Mapper.h.

◆ PADSPERROW

const std::vector<unsigned int> o2::tpc::Mapper::PADSPERROW[NREGIONS]
inlinestatic
Initial value:
{
{66, 66, 66, 68, 68, 68, 70, 70, 70, 72, 72, 72, 74, 74, 74, 74, 76},
{76, 76, 76, 78, 78, 78, 80, 80, 80, 82, 82, 82, 84, 84, 84},
{86, 86, 86, 88, 88, 88, 90, 90, 90, 90, 92, 92, 92, 94, 94, 94},
{92, 92, 92, 94, 94, 94, 96, 96, 96, 98, 98, 98, 100, 100, 100},
{76, 76, 76, 76, 78, 78, 78, 80, 80, 80, 80, 82, 82, 82, 84, 84, 84, 84},
{86, 86, 86, 88, 88, 88, 90, 90, 90, 90, 92, 92, 92, 94, 94, 94},
{94, 96, 96, 96, 98, 98, 98, 100, 100, 102, 102, 102, 104, 104, 104, 106},
{110, 110, 112, 112, 112, 114, 114, 114, 116, 116, 116, 118, 118, 118},
{118, 118, 120, 120, 122, 122, 124, 124, 124, 126, 126, 128, 128},
{128, 130, 130, 132, 132, 132, 134, 134, 136, 136, 138, 138}
}

number of pads per row in region

Definition at line 567 of file Mapper.h.

◆ REGION

constexpr unsigned o2::tpc::Mapper::REGION[PADROWS]
staticconstexpr
Initial value:
= {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9}

region for global pad row

Definition at line 537 of file Mapper.h.

◆ REGIONAREA

constexpr float o2::tpc::Mapper::REGIONAREA[NREGIONS] {374.4f, 378.f, 453.6f, 470.88f, 864.f, 864.f, 1167.36f, 1128.96f, 1449.6f, 1456.8f}
staticconstexpr

volume of each region in cm^2

Definition at line 535 of file Mapper.h.

◆ ROWOFFSET

constexpr unsigned int o2::tpc::Mapper::ROWOFFSET[NREGIONS] {0, 17, 32, 48, 63, 81, 97, 113, 127, 140}
staticconstexpr

offset to calculate local row from global row

Definition at line 533 of file Mapper.h.

◆ ROWOFFSETSTACK

constexpr unsigned int o2::tpc::Mapper::ROWOFFSETSTACK[4] {0, 63, 97, 127}
staticconstexpr

offset to calculate local row from global row

Definition at line 534 of file Mapper.h.

◆ ROWSPERREGION

constexpr unsigned int o2::tpc::Mapper::ROWSPERREGION[NREGIONS] {17, 15, 16, 15, 18, 16, 16, 14, 13, 12}
staticconstexpr

number of pad rows for region

Definition at line 532 of file Mapper.h.


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