CbmRoot
|
Definition of FASP parameters. More...
#include <CbmTrdParFasp.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 | |
CbmTrdParFasp (Int_t address=0, Int_t FebGrouping=-1, Double_t x=0, Double_t y=0, Double_t z=0) | |
virtual | ~CbmTrdParFasp () |
const CbmTrdParFaspChannel * | GetChannel (Int_t pad_address, UChar_t pair) const |
virtual Int_t | GetNchannels () const |
Int_t | GetChannelAddress (Int_t ich) const |
Double_t | GetSizeX () const |
Double_t | GetSizeY () const |
Double_t | GetSizeZ () const |
virtual void | LoadParams (FairParamList *l) |
void | LoadParams (TArrayI &, Int_t) |
virtual void | Print (Option_t *opt="") const |
virtual Bool_t | SetCalibParameters (Int_t ch, Double_t const *par) |
Load FASP calibration parameters for a specific channel. 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 std::vector< Int_t > | GetChannelAddresses () 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) |
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 | |
CbmTrdParFaspChannel | fCalib [NFASPCH] |
calibration map for FASP channels More... | |
Static Private Attributes | |
static Double_t | fgSizeX = 2. |
FASP half size in x [cm]. More... | |
static Double_t | fgSizeY = 2. |
FASP half size in y [cm]. More... | |
static Double_t | fgSizeZ = 0.5 |
FASP half size in z [cm]. More... | |
Definition of FASP parameters.
Definition at line 74 of file CbmTrdParFasp.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.
CbmTrdParFasp::CbmTrdParFasp | ( | Int_t | address = 0 , |
Int_t | FebGrouping = -1 , |
||
Double_t | x = 0 , |
||
Double_t | y = 0 , |
||
Double_t | z = 0 |
||
) |
Definition at line 16 of file CbmTrdParFasp.cxx.
|
inlinevirtual |
Definition at line 81 of file CbmTrdParFasp.h.
|
inlinevirtualinherited |
Definition at line 41 of file CbmTrdParAsic.h.
References CbmTrdParAsic::fAddress.
Referenced by CbmTrdParManager::CreateModuleParameters(), and CbmTrdParSetAsic::GetAsicAddresses().
const CbmTrdParFaspChannel * CbmTrdParFasp::GetChannel | ( | Int_t | pad_address, |
UChar_t | pair | ||
) | const |
Definition at line 27 of file CbmTrdParFasp.cxx.
References fCalib, and CbmTrdParAsic::QueryChannel().
Referenced by CbmTrdParSetAsic::putParams().
|
inlinevirtual |
Reimplemented from CbmTrdParAsic.
Definition at line 85 of file CbmTrdParFasp.h.
References CbmTrdParAsic::fChannelAddresses, and GetNchannels().
Referenced by Print(), and CbmTrdParSetAsic::putParams().
|
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().
|
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().
|
inlinevirtual |
Implements CbmTrdParAsic.
Definition at line 83 of file CbmTrdParFasp.h.
References NFASPCH.
Referenced by GetChannelAddress(), and Print().
|
inlinevirtual |
Accessors
Implements CbmTrdParAsic.
Definition at line 89 of file CbmTrdParFasp.h.
References fgSizeX.
|
inlinevirtual |
|
inline |
Definition at line 91 of file CbmTrdParFasp.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 |
Reimplemented from CbmTrdParAsic.
Definition at line 35 of file CbmTrdParFasp.cxx.
References CbmTrdParAsic::fAddress, fCalib, NFASPCH, CbmTrdParAsic::SetChannelAddress(), and CbmTrdParFaspChannel::SetPairing().
void CbmTrdParFasp::LoadParams | ( | TArrayI & | valArray, |
Int_t | iAsic | ||
) |
Definition at line 55 of file CbmTrdParFasp.cxx.
References fCalib, CbmTrdParFaspChannel::fMinDelaySignal, CbmTrdParFaspChannel::fPileUpTime, CbmTrdParFaspChannel::fThreshold, NFASPCH, CbmTrdParAsic::SetChannelAddress(), and CbmTrdParFaspChannel::SetPairing().
|
virtual |
Reimplemented from CbmTrdParAsic.
Definition at line 100 of file CbmTrdParFasp.cxx.
References fCalib, CbmTrdParAsic::fChannelAddresses, GetChannelAddress(), GetNchannels(), CbmTrdParFaspChannel::Print(), and CbmTrdParAsic::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(), GetChannel(), and CbmTrdParAsic::SetChannelAddress().
|
virtual |
Load FASP calibration parameters for a specific channel.
ch | Address of the channel inside FASP |
par | pointer to the list of parameters |
The list of channel parameter should be arranged as follows: 0 : Signal formation time in [ns] 1 : Length of Flat-Top in [clocks] 2 : Threshold in [ADC units] 3 : Signal @ minimum delay i.e. fPileUpTime [ADC units] 4 : Factor of parabolic dependence dt=fdt*(s-s0)^2 to calculate trigger [a.u.] 5 : paring type ; 0 = tilt, 1 = rect
Definition at line 77 of file CbmTrdParFasp.cxx.
References fCalib, CbmTrdParFaspChannel::fFlatTop, CbmTrdParFaspChannel::fMinDelayParam, CbmTrdParFaspChannel::fMinDelaySignal, CbmTrdParFaspChannel::fPileUpTime, CbmTrdParFaspChannel::fThreshold, NFASPCH, and CbmTrdParFaspChannel::SetPairing().
Referenced by CbmTrdParManager::CreateModuleParameters().
|
virtualinherited |
Definition at line 41 of file CbmTrdParAsic.cxx.
References CbmTrdParAsic::fChannelAddresses, and CbmTrdParAsic::QueryChannel().
Referenced by CbmTrdParManager::CreateModuleParameters(), 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(), CbmTrdParSpadic::GetAddressOnModule(), CbmTrdParSpadic::LoadParams(), LoadParams(), and CbmTrdParAsic::Print().
|
private |
calibration map for FASP channels
Definition at line 106 of file CbmTrdParFasp.h.
Referenced by GetChannel(), LoadParams(), Print(), and SetCalibParameters().
|
protectedinherited |
addresses of individual output channels
Definition at line 77 of file CbmTrdParAsic.h.
Referenced by CbmTrdParSpadic::CbmTrdParSpadic(), CbmTrdParAsic::GetChannelAddress(), GetChannelAddress(), CbmTrdParAsic::GetChannelAddresses(), CbmTrdParSpadic::LoadParams(), 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(), CbmTrdParSpadic::GetCriId(), CbmTrdParSpadic::GetCrobId(), CbmTrdParSpadic::GetCrobNumber(), CbmTrdParSpadic::GetElinkId(), CbmTrdParSpadic::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 |
|
staticprivate |
|
staticprivate |
|
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().
|
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().