![]() |
Project
|
#include <Mapper.h>
Public Member Functions | |
const PadPos & | padPos (GlobalPadNumber padNumber) const |
const PadCentre & | padCentre (GlobalPadNumber padNumber) const |
const FECInfo & | fecInfo (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 FECInfo & | getFECInfo (const PadROCPos &padROC) const |
const PadCentre & | getPadCentre (const PadPos &pad) const |
const PadPos & | padPos (const FECInfo &fec) const |
const PadPos & | padPos (const int fecInSector, const int sampaOnFEC, const int channelOnSAMPA) const |
const PadCentre & | padCentre (const FECInfo &fec) const |
const PadCentre & | padCentre (const int fecInSector, const int sampaOnFEC, const int channelOnSAMPA) const |
const PadPos & | padPos (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 PadCentre & | padCentre (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 PadRegionInfo & | getPadRegionInfo (const unsigned char region) const |
const std::array< PadRegionInfo, 10 > & | getMapPadRegionInfo () const |
int | getNumberOfPadRegions () const |
const PartitionInfo & | getPartitionInfo (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 §or) const |
bool | isOutOfSector (GlobalPosition3D posEle, const Sector §or, 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 Mapper & | instance (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 int > | ADDITIONALPADSPERROW [NREGIONS] |
additional pads per row compared to first row | |
static const std::vector< unsigned int > | OFFSETCRULOCAL [NREGIONS] |
row offset in cru for given local pad row | |
static const std::vector< unsigned int > | PADSPERROW [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 | |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inline |
|
inlinestaticconstexpr |
|
inline |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inline |
|
inline |
|
inline |
return pad number for a pad subset type
padSubset | pad subset type (e.g. PadSubset::ROC) |
padSubsetNumber | number of the pad subset (e.g. 10 for ROC 10) |
row | row |
pad | pad |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Definition at line 322 of file Mapper.cxx.
Definition at line 301 of file Mapper.cxx.
|
static |
Definition at line 307 of file Mapper.cxx.
|
inline |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inline |
|
inline |
additional pads per row compared to first row
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
row offset in cru for given global pad row
row offset in cru for given local pad row
|
staticconstexpr |
number of pads per row in region
|
staticconstexpr |
region for global pad row
|
staticconstexpr |