Project
Loading...
Searching...
No Matches
o2::itsmft::ChipMappingMFT Class Reference

#include <ChipMappingMFT.h>

Public Member Functions

 ChipMappingMFT ()
 
 ~ChipMappingMFT ()=default
 
uint8_t FEEId2RUSW (uint16_t hw) const
 get HW id of the RU (software id of the RU)
 
uint16_t RUSW2FEEId (uint16_t sw, uint16_t linkID=0) const
 compose FEEid for given stave (ru) relative to layer and link, see documentation in the constructor
 
uint16_t composeFEEId (uint16_t layer, uint16_t ruOnLayer, uint16_t link) const
 decompose FEEid to layer, stave (ru) relative to layer, link, see documentation in the constructor
 
void expandFEEId (uint16_t feeID, uint16_t &layer, uint16_t &ruOnLayer, uint16_t &link) const
 decompose FEEid to face, disk, half
 
void expandFEEIdFaceDiskHalf (uint16_t feeID, uint16_t &face, uint16_t &disk, uint16_t &half) const
 get info on sw RU
 
const RUInfogetRUInfoFEEId (Int_t feeID) const
 get number of chips served by single cable on given RU type
 
uint8_t getGBTHeaderRUType (Int_t ruType, Int_t cableHW)
 convert HW cable ID to its position on the ActiveLanes word in the GBT.header for given RU type
 
uint8_t cableHW2Pos (uint8_t ruType, uint8_t hwid) const
 convert HW cable ID to SW ID for give RU type
 
uint8_t cableHW2SW (uint8_t ruType, uint8_t hwid) const
 convert cable iterator ID to its position on the ActiveLanes word in the GBT.header for given RU type
 
uint8_t cablePos (uint8_t ruType, uint8_t id) const
 get chipID on module from chip global SW ID, cable SW ID and stave (RU) info
 
uint16_t getLocalChipID (uint16_t globalID, int cableHW, const RUInfo &ruInfo) const
 get chip global SW ID from chipID on module, cable SW ID and stave (RU) info
 
uint16_t getGlobalChipID (uint16_t chOnModuleHW, int cableHW, const RUInfo &ruInfo) const
 convert HW id of chip in the module to SW ID (sequential ID on the module)
 
int chipModuleIDHW2SW (int ruType, int hwIDinMod) const
 convert SW id of chip in the module to HW ID
 
int chipModuleIDSW2HW (int ruType, int swIDinMod) const
 
Int_t chipID2Module (Int_t chipID, Int_t &chipOnModule) const
 
Int_t chipID2Module (Int_t chipID) const
 
Int_t getNChipsInModule (Int_t modID) const
 
Int_t module2ChipID (Int_t modID, Int_t chipOnModule) const
 
Int_t module2Layer (Int_t modID) const
 
Int_t chip2Layer (Int_t chipID) const
 impose user defined FEEId -> ruSW (staveID) conversion, to be used only for forced decoding of corrupted data
 
void imposeFEEId2RUSW (uint16_t, uint16_t)
 extract information about the chip with SW ID
 
void getChipInfoSW (Int_t chipSW, ChipInfo &chInfo) const
 get number of chips served by RU of given type (i.e. RU type for ITS)
 
Int_t getNChipsOnRUType (Int_t ruType) const
 
const ChipOnRUInfogetChipOnRUInfo (Int_t ruType, Int_t chipOnRU) const
 
uint32_t getCablesOnRUType (Int_t ruType) const
 get info on sw RU
 
const RUInfogetRUInfoSW (int ruSW) const
 convert layer ID and RU sequential ID on Layer to absolute RU IDSW
 
int getRUIDSW (int layer, int ruOnLayer) const
 
const int getNZonesPerLayer () const
 
const int getNLayers () const
 convert zone number [0...8] and layer number [0...10] to RU type
 
int getRUType (int zone, int layer) const
 
const std::array< MFTChipMappingData, NChips > & getChipMappingData () const
 
const auto & getModuleMappingData () const
 
void print () const
 LayerID of each MFT chip.
 

Static Public Member Functions

static constexpr std::string_view getName ()
 
static constexpr o2::header::DataOrigin getOrigin ()
 
static constexpr o2::detectors::DetID::ID getDetID ()
 
static constexpr Int_t getNRUs ()
 < total number of RUs
 
static constexpr Int_t getNChips ()
 
static constexpr Int_t getNModules ()
 
static constexpr std::int16_t getRUDetectorField ()
 

Static Public Attributes

static constexpr int NChips = 936
 
static constexpr int NLayers = 10
 
static constexpr int NZonesPerLayer = 2 * 4
 
static constexpr int NRUTypes = 13
 
static constexpr std::array< int, NChipsChipID2Layer
 
static constexpr std::array< int, 280 > mLadderIDGeoToRO
 
static constexpr std::array< int, NChipsmChipIDGeoToRO
 

Detailed Description

Definition at line 61 of file ChipMappingMFT.h.

Constructor & Destructor Documentation

◆ ChipMappingMFT()

ChipMappingMFT::ChipMappingMFT ( )

Definition at line 1623 of file ChipMappingMFT.cxx.

◆ ~ChipMappingMFT()

o2::itsmft::ChipMappingMFT::~ChipMappingMFT ( )
default

Member Function Documentation

◆ cableHW2Pos()

uint8_t o2::itsmft::ChipMappingMFT::cableHW2Pos ( uint8_t  ruType,
uint8_t  hwid 
) const
inline

convert HW cable ID to SW ID for give RU type

Definition at line 127 of file ChipMappingMFT.h.

◆ cableHW2SW()

uint8_t o2::itsmft::ChipMappingMFT::cableHW2SW ( uint8_t  ruType,
uint8_t  hwid 
) const
inline

convert cable iterator ID to its position on the ActiveLanes word in the GBT.header for given RU type

Definition at line 130 of file ChipMappingMFT.h.

◆ cablePos()

uint8_t o2::itsmft::ChipMappingMFT::cablePos ( uint8_t  ruType,
uint8_t  id 
) const
inline

get chipID on module from chip global SW ID, cable SW ID and stave (RU) info

Definition at line 133 of file ChipMappingMFT.h.

◆ chip2Layer()

Int_t o2::itsmft::ChipMappingMFT::chip2Layer ( Int_t  chipID) const
inline

impose user defined FEEId -> ruSW (staveID) conversion, to be used only for forced decoding of corrupted data

Definition at line 191 of file ChipMappingMFT.h.

◆ chipID2Module() [1/2]

Int_t o2::itsmft::ChipMappingMFT::chipID2Module ( Int_t  chipID) const
inline

Definition at line 171 of file ChipMappingMFT.h.

◆ chipID2Module() [2/2]

Int_t o2::itsmft::ChipMappingMFT::chipID2Module ( Int_t  chipID,
Int_t &  chipOnModule 
) const
inline

Definition at line 165 of file ChipMappingMFT.h.

◆ chipModuleIDHW2SW()

int o2::itsmft::ChipMappingMFT::chipModuleIDHW2SW ( int  ruType,
int  hwIDinMod 
) const
inline

convert SW id of chip in the module to HW ID

Definition at line 150 of file ChipMappingMFT.h.

◆ chipModuleIDSW2HW()

int o2::itsmft::ChipMappingMFT::chipModuleIDSW2HW ( int  ruType,
int  swIDinMod 
) const
inline

Definition at line 156 of file ChipMappingMFT.h.

◆ composeFEEId()

uint16_t o2::itsmft::ChipMappingMFT::composeFEEId ( uint16_t  layer,
uint16_t  ruOnLayer,
uint16_t  link 
) const
inline

decompose FEEid to layer, stave (ru) relative to layer, link, see documentation in the constructor

Definition at line 83 of file ChipMappingMFT.h.

◆ expandFEEId()

void o2::itsmft::ChipMappingMFT::expandFEEId ( uint16_t  feeID,
uint16_t &  layer,
uint16_t &  ruOnLayer,
uint16_t &  link 
) const
inline

decompose FEEid to face, disk, half

Definition at line 98 of file ChipMappingMFT.h.

◆ expandFEEIdFaceDiskHalf()

void o2::itsmft::ChipMappingMFT::expandFEEIdFaceDiskHalf ( uint16_t  feeID,
uint16_t &  face,
uint16_t &  disk,
uint16_t &  half 
) const
inline

get info on sw RU

Definition at line 110 of file ChipMappingMFT.h.

◆ FEEId2RUSW()

uint8_t o2::itsmft::ChipMappingMFT::FEEId2RUSW ( uint16_t  hw) const
inline

get HW id of the RU (software id of the RU)

Definition at line 77 of file ChipMappingMFT.h.

◆ getCablesOnRUType()

uint32_t o2::itsmft::ChipMappingMFT::getCablesOnRUType ( Int_t  ruType) const
inline

get info on sw RU

Definition at line 232 of file ChipMappingMFT.h.

◆ getChipInfoSW()

void o2::itsmft::ChipMappingMFT::getChipInfoSW ( Int_t  chipSW,
ChipInfo chInfo 
) const
inline

get number of chips served by RU of given type (i.e. RU type for ITS)

Definition at line 200 of file ChipMappingMFT.h.

◆ getChipMappingData()

const std::array< MFTChipMappingData, NChips > & o2::itsmft::ChipMappingMFT::getChipMappingData ( ) const
inline

Definition at line 265 of file ChipMappingMFT.h.

◆ getChipOnRUInfo()

const ChipOnRUInfo * o2::itsmft::ChipMappingMFT::getChipOnRUInfo ( Int_t  ruType,
Int_t  chipOnRU 
) const
inline

< extract information about the chip properties on the stave of given type for the chip < with sequential ID SWID within the stave

Definition at line 225 of file ChipMappingMFT.h.

◆ getDetID()

static constexpr o2::detectors::DetID::ID o2::itsmft::ChipMappingMFT::getDetID ( )
inlinestaticconstexpr

Definition at line 69 of file ChipMappingMFT.h.

◆ getGBTHeaderRUType()

uint8_t o2::itsmft::ChipMappingMFT::getGBTHeaderRUType ( Int_t  ruType,
Int_t  cableHW 
)
inline

convert HW cable ID to its position on the ActiveLanes word in the GBT.header for given RU type

Definition at line 121 of file ChipMappingMFT.h.

◆ getGlobalChipID()

uint16_t o2::itsmft::ChipMappingMFT::getGlobalChipID ( uint16_t  chOnModuleHW,
int  cableHW,
const RUInfo ruInfo 
) const
inline

convert HW id of chip in the module to SW ID (sequential ID on the module)

Definition at line 143 of file ChipMappingMFT.h.

◆ getLocalChipID()

uint16_t o2::itsmft::ChipMappingMFT::getLocalChipID ( uint16_t  globalID,
int  cableHW,
const RUInfo ruInfo 
) const
inline

get chip global SW ID from chipID on module, cable SW ID and stave (RU) info

TODO

Definition at line 136 of file ChipMappingMFT.h.

◆ getModuleMappingData()

const auto & o2::itsmft::ChipMappingMFT::getModuleMappingData ( ) const
inline

Definition at line 267 of file ChipMappingMFT.h.

◆ getName()

static constexpr std::string_view o2::itsmft::ChipMappingMFT::getName ( )
inlinestaticconstexpr

Definition at line 67 of file ChipMappingMFT.h.

◆ getNChips()

static constexpr Int_t o2::itsmft::ChipMappingMFT::getNChips ( )
inlinestaticconstexpr

Definition at line 161 of file ChipMappingMFT.h.

◆ getNChipsInModule()

Int_t o2::itsmft::ChipMappingMFT::getNChipsInModule ( Int_t  modID) const
inline

Definition at line 176 of file ChipMappingMFT.h.

◆ getNChipsOnRUType()

Int_t o2::itsmft::ChipMappingMFT::getNChipsOnRUType ( Int_t  ruType) const
inline

Definition at line 221 of file ChipMappingMFT.h.

◆ getNLayers()

const int o2::itsmft::ChipMappingMFT::getNLayers ( ) const
inline

convert zone number [0...8] and layer number [0...10] to RU type

Definition at line 258 of file ChipMappingMFT.h.

◆ getNModules()

static constexpr Int_t o2::itsmft::ChipMappingMFT::getNModules ( )
inlinestaticconstexpr

Definition at line 163 of file ChipMappingMFT.h.

◆ getNRUs()

static constexpr Int_t o2::itsmft::ChipMappingMFT::getNRUs ( )
inlinestaticconstexpr

< total number of RUs

get FEEId of the RU (software id of the RU), read via given link

Definition at line 74 of file ChipMappingMFT.h.

◆ getNZonesPerLayer()

const int o2::itsmft::ChipMappingMFT::getNZonesPerLayer ( ) const
inline

Definition at line 257 of file ChipMappingMFT.h.

◆ getOrigin()

static constexpr o2::header::DataOrigin o2::itsmft::ChipMappingMFT::getOrigin ( )
inlinestaticconstexpr

Definition at line 68 of file ChipMappingMFT.h.

◆ getRUDetectorField()

static constexpr std::int16_t o2::itsmft::ChipMappingMFT::getRUDetectorField ( )
inlinestaticconstexpr

Definition at line 230 of file ChipMappingMFT.h.

◆ getRUIDSW()

int o2::itsmft::ChipMappingMFT::getRUIDSW ( int  layer,
int  ruOnLayer 
) const
inline

Definition at line 245 of file ChipMappingMFT.h.

◆ getRUInfoFEEId()

const RUInfo * o2::itsmft::ChipMappingMFT::getRUInfoFEEId ( Int_t  feeID) const
inline

get number of chips served by single cable on given RU type

Definition at line 118 of file ChipMappingMFT.h.

◆ getRUInfoSW()

const RUInfo * o2::itsmft::ChipMappingMFT::getRUInfoSW ( int  ruSW) const
inline

convert layer ID and RU sequential ID on Layer to absolute RU IDSW

Definition at line 242 of file ChipMappingMFT.h.

◆ getRUType()

int o2::itsmft::ChipMappingMFT::getRUType ( int  zone,
int  layer 
) const
inline

Definition at line 261 of file ChipMappingMFT.h.

◆ imposeFEEId2RUSW()

void o2::itsmft::ChipMappingMFT::imposeFEEId2RUSW ( uint16_t  ,
uint16_t   
)
inline

extract information about the chip with SW ID

Definition at line 197 of file ChipMappingMFT.h.

◆ module2ChipID()

Int_t o2::itsmft::ChipMappingMFT::module2ChipID ( Int_t  modID,
Int_t  chipOnModule 
) const
inline

Definition at line 181 of file ChipMappingMFT.h.

◆ module2Layer()

Int_t o2::itsmft::ChipMappingMFT::module2Layer ( Int_t  modID) const
inline

Definition at line 186 of file ChipMappingMFT.h.

◆ print()

void ChipMappingMFT::print ( ) const

LayerID of each MFT chip.

Definition at line 1735 of file ChipMappingMFT.cxx.

◆ RUSW2FEEId()

uint16_t o2::itsmft::ChipMappingMFT::RUSW2FEEId ( uint16_t  sw,
uint16_t  linkID = 0 
) const
inline

compose FEEid for given stave (ru) relative to layer and link, see documentation in the constructor

Definition at line 80 of file ChipMappingMFT.h.

Member Data Documentation

◆ ChipID2Layer

constexpr std::array<int, NChips> o2::itsmft::ChipMappingMFT::ChipID2Layer
staticconstexpr

Definition at line 272 of file ChipMappingMFT.h.

◆ mChipIDGeoToRO

constexpr std::array<int, NChips> o2::itsmft::ChipMappingMFT::mChipIDGeoToRO
staticconstexpr

Definition at line 326 of file ChipMappingMFT.h.

◆ mLadderIDGeoToRO

constexpr std::array<int, 280> o2::itsmft::ChipMappingMFT::mLadderIDGeoToRO
staticconstexpr
Initial value:
{
0, 6, 7, 8, 9, 10, 11, 12, 13, 14, 1, 2, 3, 4, 15,
16, 17, 18, 19, 20, 21, 22, 23, 5, 24, 30, 31, 32, 33, 34,
35, 36, 37, 38, 25, 26, 27, 28, 39, 40, 41, 42, 43, 44, 45,
46, 47, 29, 48, 52, 53, 66, 67, 54, 55, 56, 68, 69, 57, 58,
49, 50, 59, 60, 70, 71, 61, 62, 63, 72, 73, 64, 65, 51, 74,
75, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 76, 77, 78,
79, 80, 81, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 82,
83, 106, 107, 114, 115, 132, 133, 116, 117, 118, 119, 120, 134, 135, 121,
122, 108, 109, 110, 111, 123, 124, 136, 137, 125, 126, 127, 128, 129, 138,
139, 130, 131, 112, 113, 140, 146, 147, 148, 149, 150, 151, 152, 153, 154,
141, 142, 143, 144, 155, 156, 157, 158, 159, 160, 161, 162, 163, 145, 164,
170, 171, 172, 173, 174, 175, 176, 177, 178, 165, 166, 167, 168, 179, 180,
181, 182, 183, 184, 185, 186, 187, 169, 188, 192, 193, 206, 207, 194, 195,
196, 208, 209, 197, 198, 189, 190, 199, 200, 210, 211, 201, 202, 203, 212,
213, 204, 205, 191, 214, 215, 224, 225, 226, 227, 228, 229, 230, 231, 232,
233, 234, 216, 217, 218, 219, 220, 221, 235, 236, 237, 238, 239, 240, 241,
242, 243, 244, 245, 222, 223, 246, 247, 254, 255, 272, 273, 256, 257, 258,
259, 260, 274, 275, 261, 262, 248, 249, 250, 251, 263, 264, 276, 277, 265,
266, 267, 268, 269, 278, 279, 270, 271, 252, 253}

Definition at line 305 of file ChipMappingMFT.h.

◆ NChips

constexpr int o2::itsmft::ChipMappingMFT::NChips = 936
staticconstexpr

Definition at line 263 of file ChipMappingMFT.h.

◆ NLayers

constexpr int o2::itsmft::ChipMappingMFT::NLayers = 10
static

Definition at line 263 of file ChipMappingMFT.h.

◆ NRUTypes

constexpr int o2::itsmft::ChipMappingMFT::NRUTypes = 13
static

Definition at line 263 of file ChipMappingMFT.h.

◆ NZonesPerLayer

constexpr int o2::itsmft::ChipMappingMFT::NZonesPerLayer = 2 * 4
static

Definition at line 263 of file ChipMappingMFT.h.


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