CbmRoot
|
Definition of SPADIC parameters. More...
#include <CbmTrdParSpadic.h>
Public Types | |
enum | ECbmTrdComponentIdDecoding : ULong_t { kElinkIdPosition = 1, kCrobNrPosition = 100, kCrobIdPosition = 1000, kCriIdPosition = 100000 } |
Enum for decodation of spadic componentId (Hardware to software mapping) Since the length of the CriIds is currently unknown, this is defined as ULong to not loose the needed precision. More... | |
Public Member Functions | |
CbmTrdParSpadic (Int_t address=0, Int_t FebGrouping=-1, Double_t x=0, Double_t y=0, Double_t z=0, std::uint64_t compId=0) | |
virtual | ~CbmTrdParSpadic () |
virtual void | LoadParams (FairParamList *inList) |
Loads the specific params for the spadic placed at fAddress, e.g. channel calibration parameters. More... | |
virtual Int_t | GetNchannels () const |
virtual Double_t | GetSizeX () const |
virtual Double_t | GetSizeY () const |
virtual Double_t | GetSizeZ () const |
std::uint16_t | GetCriId () |
std::uint8_t | GetCrobId () |
std::uint8_t | GetCrobNumber () |
std::uint8_t | GetElinkId (Int_t channelId) |
eLinkId for the current asic par set and the given channelId (in the asic coordinates, i.e. 00..31). More... | |
UInt_t | GetAddressOnModule () const |
Returns the number of the asic on the module counted from top left. More... | |
Int_t | GetAsicChAddress (const Int_t asicChannel) |
Returns the nth asic Channel in asic coordinates in single asic padplane coordinates. Spadic channels are not mapped from 00 to 31 in padplane coordinates, this function returns the padplane channelnumber in the system of one asic(not in the channel map of a full module !) More... | |
virtual Double_t | GetX () const |
virtual Double_t | GetY () const |
virtual Double_t | GetZ () const |
virtual Int_t | GetAddress () const |
virtual std::uint64_t | GetComponentId () const |
virtual Int_t | GetFebGrouping () const |
virtual Int_t | GetChannelAddress (Int_t ich) const |
virtual std::vector< Int_t > | GetChannelAddresses () const |
virtual void | Print (Option_t *opt="") const |
virtual Int_t | QueryChannel (Int_t ch) const |
Query ASIC for specific pad address. More... | |
virtual void | SetChannelAddress (Int_t address) |
virtual void | SetChannelAddresses (std::vector< Int_t > addresses) |
virtual void | SetFebGrouping (Int_t feb) |
virtual void | SetPosition (Double_t x=0, Double_t y=0, Double_t z=0) |
virtual void | SetComponentId (std::uint64_t id) |
virtual Int_t | GetModuleId () const |
virtual void | SetModuleId (Int_t m) |
Static Public Member Functions | |
static std::uint64_t | CreateComponentId (Int_t criId, Int_t crobId, Int_t nThCrobOnModule, Int_t eLinkId) |
Create the componentId from a given criId, crobId, eLinkId and the nThCrobOnModule count, according to the scheme, defined by ECbmTrdComponentIdDecoding. More... | |
static Int_t | GetNasicsOnModule (Int_t moduleType) |
Returns the number of asics on a given moduleType defined in eCbmTrdModuleTypes. More... | |
static Int_t | GetNasicsPerCrob (Int_t moduleType) |
Returns the number of asics per Crob on a given moduleType defined in eCbmTrdModuleTypes. More... | |
static std::uint16_t | GetCriId (std::uint64_t componentId) |
Extracts the CriId from a given componentId - Remark when the par files are created from geometries the CriId is set to the unique module number. More... | |
static std::uint8_t | GetCrobId (std::uint64_t componentId) |
Extracts the CrobId from a given componentId. More... | |
static std::uint8_t | GetCrobNumber (std::uint64_t componentId) |
Extracts the CrobNumber (nTh Crob on the module) from a given componentId. More... | |
static std::uint8_t | GetElinkId (std::uint64_t componentId, Int_t channelId) |
eLinkId for the given asicAddress and channelId (in the asic coordinates, i.e. 00..31). Remark: no check of a correct componentId is performed More... | |
Protected Attributes | |
Int_t | fAddress |
unique ASIC ID More... | |
Double_t | fX |
center of asic in global c.s. [cm] More... | |
Double_t | fY |
center of asic in global c.s. [cm] More... | |
Double_t | fZ |
center of asic in global c.s. [cm] More... | |
Int_t | fFebGrouping |
no of ASIC in ROB More... | |
std::uint64_t | fComponentId |
For the digit decoding see ECbmTrdComponentIdDecoding. nTh cRob on the module counted from top to bottom a long the sensitive side. This Id is needed to connect the microslice to a given channel, has to be set "by hand", i.e. is not given in the geometry macros. ComponentIdMaps for the Spadic are stored in CbmTrdHardwareSetupR. A macro to write those Ids to the parameter files can be found at https://git.cbm.gsi.de/trd/macros/mcbm2020/blob/master/writeSpadicHwAddresses.C. More... | |
std::vector< Int_t > | fChannelAddresses |
addresses of individual output channels More... | |
Int_t | fModuleId |
module id More... | |
Private Attributes | |
const std::vector< Int_t > | fVecSpadicChannels |
Static Private Attributes | |
static Double_t | fgSizeX = 6.0 |
SPADIC half size in x [cm]. More... | |
static Double_t | fgSizeY = 3.0 |
SPADIC half size in y [cm]. More... | |
static Double_t | fgSizeZ = 0.5 |
SPADIC half size in z [cm]. More... | |
Definition of SPADIC parameters.
Definition at line 16 of file CbmTrdParSpadic.h.
|
inherited |
Enum for decodation of spadic componentId (Hardware to software mapping) Since the length of the CriIds is currently unknown, this is defined as ULong to not loose the needed precision.
Enumerator | |
---|---|
kElinkIdPosition | |
kCrobNrPosition | |
kCrobIdPosition | |
kCriIdPosition |
Definition at line 27 of file CbmTrdParAsic.h.
CbmTrdParSpadic::CbmTrdParSpadic | ( | Int_t | address = 0 , |
Int_t | FebGrouping = -1 , |
||
Double_t | x = 0 , |
||
Double_t | y = 0 , |
||
Double_t | z = 0 , |
||
std::uint64_t | compId = 0 |
||
) |
Definition at line 18 of file CbmTrdParSpadic.cxx.
References CbmTrdParAsic::fChannelAddresses, and NSPADICCH.
|
inlinevirtual |
Definition at line 24 of file CbmTrdParSpadic.h.
|
static |
Create the componentId from a given criId, crobId, eLinkId and the nThCrobOnModule count, according to the scheme, defined by ECbmTrdComponentIdDecoding.
Definition at line 68 of file CbmTrdParSpadic.cxx.
Referenced by LoadParams().
|
inlinevirtualinherited |
Definition at line 41 of file CbmTrdParAsic.h.
References CbmTrdParAsic::fAddress.
Referenced by CbmTrdParManager::CreateModuleParameters(), and CbmTrdParSetAsic::GetAsicAddresses().
|
inline |
Returns the number of the asic on the module counted from top left.
Definition at line 69 of file CbmTrdParSpadic.h.
References CbmTrdParAsic::fAddress.
Int_t CbmTrdParSpadic::GetAsicChAddress | ( | const Int_t | asicChannel | ) |
Returns the nth asic Channel in asic coordinates in single asic padplane coordinates. Spadic channels are not mapped from 00 to 31 in padplane coordinates, this function returns the padplane channelnumber in the system of one asic(not in the channel map of a full module !)
< Returns the nth asic Channel in asic coordinates in single asic padplane coordinates. Spadic channels are not mapped from 00 to 31 in padplane coordinates, this function returns the padplane channelnumber in the system of one asic(not in the channel map of a full module !)
Definition at line 187 of file CbmTrdParSpadic.cxx.
References fVecSpadicChannels.
Referenced by CbmTrdParManager::CreateModuleParameters().
|
inlinevirtualinherited |
Reimplemented in CbmTrdParFasp.
Definition at line 45 of file CbmTrdParAsic.h.
References CbmTrdParAsic::fChannelAddresses, and CbmTrdParAsic::GetNchannels().
|
inlinevirtualinherited |
Definition at line 48 of file CbmTrdParAsic.h.
References CbmTrdParAsic::fChannelAddresses.
Referenced by CbmTrdHardwareSetupR::CreateAsicChannelMap().
|
inlinevirtualinherited |
Definition at line 42 of file CbmTrdParAsic.h.
References CbmTrdParAsic::fComponentId.
Referenced by CbmTrdHardwareSetupR::CreateHwToSwAsicAddressTranslatorMap().
std::uint16_t CbmTrdParSpadic::GetCriId | ( | ) |
Definition at line 80 of file CbmTrdParSpadic.cxx.
References CbmTrdParAsic::fComponentId.
Referenced by CbmTrdParSetAsic::putParams().
|
static |
Extracts the CriId from a given componentId - Remark when the par files are created from geometries the CriId is set to the unique module number.
Definition at line 83 of file CbmTrdParSpadic.cxx.
std::uint8_t CbmTrdParSpadic::GetCrobId | ( | ) |
Definition at line 90 of file CbmTrdParSpadic.cxx.
References CbmTrdParAsic::fComponentId.
Referenced by CbmTrdParSetAsic::putParams().
|
static |
Extracts the CrobId from a given componentId.
Definition at line 93 of file CbmTrdParSpadic.cxx.
std::uint8_t CbmTrdParSpadic::GetCrobNumber | ( | ) |
Definition at line 101 of file CbmTrdParSpadic.cxx.
References CbmTrdParAsic::fComponentId.
Referenced by CbmTrdParSetAsic::putParams().
|
static |
Extracts the CrobNumber (nTh Crob on the module) from a given componentId.
Definition at line 106 of file CbmTrdParSpadic.cxx.
std::uint8_t CbmTrdParSpadic::GetElinkId | ( | Int_t | channelId | ) |
eLinkId for the current asic par set and the given channelId (in the asic coordinates, i.e. 00..31).
Definition at line 114 of file CbmTrdParSpadic.cxx.
References CbmTrdParAsic::fComponentId, and GetElinkId().
|
static |
eLinkId for the given asicAddress and channelId (in the asic coordinates, i.e. 00..31). Remark: no check of a correct componentId is performed
Definition at line 119 of file CbmTrdParSpadic.cxx.
References NSPADICCH.
Referenced by CbmTrdHardwareSetupR::CreateAsicChannelMap(), CbmTrdHardwareSetupR::CreateHwToSwAsicAddressTranslatorMap(), GetElinkId(), and CbmTrdParSetAsic::putParams().
|
inlinevirtualinherited |
Definition at line 44 of file CbmTrdParAsic.h.
References CbmTrdParAsic::fFebGrouping.
|
inlinevirtualinherited |
Definition at line 15 of file CbmTrdParMod.h.
References CbmTrdParMod::fModuleId.
Referenced by CbmTrdParSet::addParam(), and CbmMcbm2018UnpackerAlgoTrdR::CreateHistogram().
|
static |
Returns the number of asics on a given moduleType defined in eCbmTrdModuleTypes.
Definition at line 148 of file CbmTrdParSpadic.cxx.
References kHighChDensityLargeR, kHighChDensitySmallR, kLowChDensityLargeR, kLowChDensitySmallR, and kMcbmModule.
Referenced by CbmTrdParManager::CreateModuleParameters(), and GetNasicsPerCrob().
|
static |
Returns the number of asics per Crob on a given moduleType defined in eCbmTrdModuleTypes.
Definition at line 162 of file CbmTrdParSpadic.cxx.
References GetNasicsOnModule(), kHighChDensityLargeR, kHighChDensitySmallR, kLowChDensityLargeR, kLowChDensitySmallR, and kMcbmModule.
|
inlinevirtual |
Implements CbmTrdParAsic.
Definition at line 30 of file CbmTrdParSpadic.h.
References NSPADICCH.
Referenced by CbmTrdParManager::CreateModuleParameters().
|
inlinevirtual |
Accessors
Implements CbmTrdParAsic.
Definition at line 32 of file CbmTrdParSpadic.h.
References fgSizeX.
|
inlinevirtual |
|
inlinevirtual |
Definition at line 34 of file CbmTrdParSpadic.h.
References fgSizeZ.
|
inlinevirtualinherited |
Definition at line 37 of file CbmTrdParAsic.h.
References CbmTrdParAsic::fX.
Referenced by CbmTrdHitRateFastQa::ScanModulePlane().
|
inlinevirtualinherited |
Definition at line 38 of file CbmTrdParAsic.h.
References CbmTrdParAsic::fY.
Referenced by CbmTrdHitRateFastQa::ScanModulePlane().
|
inlinevirtualinherited |
Definition at line 39 of file CbmTrdParAsic.h.
References CbmTrdParAsic::fZ.
|
virtual |
Loads the specific params for the spadic placed at fAddress, e.g. channel calibration parameters.
Reimplemented from CbmTrdParAsic.
Definition at line 29 of file CbmTrdParSpadic.cxx.
References CreateComponentId(), CbmTrdParAsic::fAddress, CbmTrdParAsic::fChannelAddresses, CbmTrdParAsic::fComponentId, and NSPADICCH.
|
virtualinherited |
Reimplemented in CbmTrdParFasp.
Definition at line 24 of file CbmTrdParAsic.cxx.
References CbmTrdParAsic::fAddress, CbmTrdParAsic::fX, and CbmTrdParAsic::fY.
Referenced by CbmTrdParFasp::Print().
|
virtualinherited |
Query ASIC for specific pad address.
[in] | ch | pad address within module as provided by CbmTrdModuleAbstract::GetPadAddress() |
Definition at line 30 of file CbmTrdParAsic.cxx.
References CbmTrdParAsic::fChannelAddresses.
Referenced by CbmTrdParManager::CreateModuleParameters(), CbmTrdParSetAsic::GetAsicAddress(), CbmTrdParFasp::GetChannel(), and CbmTrdParAsic::SetChannelAddress().
|
virtualinherited |
Definition at line 41 of file CbmTrdParAsic.cxx.
References CbmTrdParAsic::fChannelAddresses, and CbmTrdParAsic::QueryChannel().
Referenced by CbmTrdParManager::CreateModuleParameters(), CbmTrdParFasp::LoadParams(), and CbmTrdModuleSimR::SetAsicPar().
|
virtualinherited |
Definition at line 51 of file CbmTrdParAsic.cxx.
References CbmTrdParAsic::fChannelAddresses, and CbmTrdParAsic::GetNchannels().
Referenced by CbmTrdParManager::CreateModuleParameters(), and CbmTrdParSetAsic::getParams().
|
inlinevirtualinherited |
Definition at line 66 of file CbmTrdParAsic.h.
References CbmTrdParAsic::fComponentId.
Referenced by CbmTrdParManager::CreateModuleParameters(), CbmTrdParSetAsic::getParams(), and CbmTrdHardwareSetupR::WriteComponentIdsToParams().
|
inlinevirtualinherited |
Definition at line 60 of file CbmTrdParAsic.h.
References CbmTrdParAsic::fFebGrouping.
|
inlinevirtualinherited |
Definition at line 17 of file CbmTrdParMod.h.
References CbmTrdParMod::fModuleId, and m.
Referenced by CbmTrdParManager::CreateModuleParameters().
|
inlinevirtualinherited |
Definition at line 61 of file CbmTrdParAsic.h.
References CbmTrdParAsic::fX, CbmTrdParAsic::fY, CbmTrdParAsic::fZ, x, and y.
|
protectedinherited |
unique ASIC ID
Definition at line 69 of file CbmTrdParAsic.h.
Referenced by CbmTrdParAsic::GetAddress(), GetAddressOnModule(), LoadParams(), CbmTrdParFasp::LoadParams(), and CbmTrdParAsic::Print().
|
protectedinherited |
addresses of individual output channels
Definition at line 77 of file CbmTrdParAsic.h.
Referenced by CbmTrdParSpadic(), CbmTrdParAsic::GetChannelAddress(), CbmTrdParFasp::GetChannelAddress(), CbmTrdParAsic::GetChannelAddresses(), LoadParams(), CbmTrdParFasp::Print(), CbmTrdParAsic::QueryChannel(), CbmTrdParAsic::SetChannelAddress(), and CbmTrdParAsic::SetChannelAddresses().
|
protectedinherited |
For the digit decoding see ECbmTrdComponentIdDecoding. nTh cRob on the module counted from top to bottom a long the sensitive side. This Id is needed to connect the microslice to a given channel, has to be set "by hand", i.e. is not given in the geometry macros. ComponentIdMaps for the Spadic are stored in CbmTrdHardwareSetupR. A macro to write those Ids to the parameter files can be found at https://git.cbm.gsi.de/trd/macros/mcbm2020/blob/master/writeSpadicHwAddresses.C.
Definition at line 75 of file CbmTrdParAsic.h.
Referenced by CbmTrdParAsic::GetComponentId(), GetCriId(), GetCrobId(), GetCrobNumber(), GetElinkId(), LoadParams(), and CbmTrdParAsic::SetComponentId().
|
protectedinherited |
no of ASIC in ROB
Definition at line 73 of file CbmTrdParAsic.h.
Referenced by CbmTrdParAsic::GetFebGrouping(), and CbmTrdParAsic::SetFebGrouping().
|
staticprivate |
SPADIC half size in x [cm].
Definition at line 77 of file CbmTrdParSpadic.h.
Referenced by GetSizeX().
|
staticprivate |
SPADIC half size in y [cm].
Definition at line 78 of file CbmTrdParSpadic.h.
Referenced by GetSizeY().
|
staticprivate |
SPADIC half size in z [cm].
Definition at line 79 of file CbmTrdParSpadic.h.
Referenced by GetSizeZ().
|
protectedinherited |
module id
Definition at line 20 of file CbmTrdParMod.h.
Referenced by CbmTrdParModGas::CbmTrdParModGas(), CbmTrdParMod::GetModuleId(), CbmTrdParModGas::Print(), CbmTrdParModDigi::Print(), CbmTrdParModGas::SetDriftMap(), and CbmTrdParMod::SetModuleId().
|
private |
Definition at line 81 of file CbmTrdParSpadic.h.
Referenced by GetAsicChAddress().
|
protectedinherited |
center of asic in global c.s. [cm]
Definition at line 70 of file CbmTrdParAsic.h.
Referenced by CbmTrdParAsic::GetX(), CbmTrdParAsic::Print(), and CbmTrdParAsic::SetPosition().
|
protectedinherited |
center of asic in global c.s. [cm]
Definition at line 71 of file CbmTrdParAsic.h.
Referenced by CbmTrdParAsic::GetY(), CbmTrdParAsic::Print(), and CbmTrdParAsic::SetPosition().
|
protectedinherited |
center of asic in global c.s. [cm]
Definition at line 72 of file CbmTrdParAsic.h.
Referenced by CbmTrdParAsic::GetZ(), and CbmTrdParAsic::SetPosition().