CbmRoot
|
#include <CbmTrdHardwareSetupR.h>
Public Member Functions | |
CbmTrdHardwareSetupR () | |
CbmTrdHardwareSetupR (const CbmTrdHardwareSetupR &) | |
CbmTrdHardwareSetupR | operator= (const CbmTrdHardwareSetupR &) |
~CbmTrdHardwareSetupR () | |
size_t | GetComponentId (Int_t asicAddress, ECbmTrdHardwareSetupVersion hwSetup) |
Retrieve componentId of the asic add the passed address for the passed hwSetup. | |
size_t | GetComponentId (Int_t asicAddress) |
Retrieve componentId of the asic add the passed address for the currently selected ComponentIdMap. | |
std::map< Int_t, size_t > | GetComponentIdMap () |
void | SetParameterFile (TString fileName) |
void | SetComponentIdMap (std::map< Int_t, size_t > compMap) |
std::map< size_t, Int_t > | CreateHwToSwAsicAddressTranslatorMap (bool isLoadedParameters) |
Create a hardware to software asic addreess translator map, with hidden parameter loading. | |
std::map< size_t, Int_t > | CreateHwToSwAsicAddressTranslatorMap (CbmTrdParSetAsic *moduleparsets) |
Create a hardware to software asic addreess translator map. | |
std::map< Int_t, std::vector< Int_t > > | CreateAsicChannelMap (bool isLoadedParameters) |
Create a Asic Channel Map, with hidden parameter loading. | |
std::map< Int_t, std::vector< Int_t > > | CreateAsicChannelMap (CbmTrdParSetAsic *parset) |
Create a Asic Channel Map. | |
void | SelectComponentIdMap (ECbmTrdHardwareSetupVersion hwSetup) |
void | SelectComponentIdMap (TString geoTag) |
bool | WriteComponentIdsToParams () |
Private Attributes | |
std::map< Int_t, size_t > | fComponentIdMap |
Container for the translation betweem software asicAddress and hardware asicAddress. First: CbmTrdParAsic::fAddress, Second CbmTrdParAsic::fComponentId. | |
TString | fParameterFileName |
Name of the parameter file correlated to the hardware setup. | |
Definition at line 42 of file CbmTrdHardwareSetupR.h.
CbmTrdHardwareSetupR::CbmTrdHardwareSetupR | ( | ) |
Definition at line 30 of file CbmTrdHardwareSetupR.cxx.
CbmTrdHardwareSetupR::CbmTrdHardwareSetupR | ( | const CbmTrdHardwareSetupR & | ) |
CbmTrdHardwareSetupR::~CbmTrdHardwareSetupR | ( | ) |
Definition at line 33 of file CbmTrdHardwareSetupR.cxx.
std::map< Int_t, std::vector< Int_t > > CbmTrdHardwareSetupR::CreateAsicChannelMap | ( | bool | isLoadedParameters | ) |
Create a Asic Channel Map, with hidden parameter loading.
isLoadedParameters |
Definition at line 124 of file CbmTrdHardwareSetupR.cxx.
References CreateAsicChannelMap(), and fParameterFileName.
Referenced by CreateAsicChannelMap(), CbmMcbm2018UnpackerAlgoTrdR::InitParameters(), and CbmTrdUnpackAlgoBaseR::initParSet().
std::map< Int_t, std::vector< Int_t > > CbmTrdHardwareSetupR::CreateAsicChannelMap | ( | CbmTrdParSetAsic * | parset | ) |
Create a Asic Channel Map.
parset |
Definition at line 141 of file CbmTrdHardwareSetupR.cxx.
References CbmTrdParModAsic::GetAsicAddresses(), CbmTrdParModAsic::GetAsicPar(), CbmTrdParAsic::GetChannelAddresses(), CbmTrdParSpadic::GetElinkId(), CbmTrdParSet::GetModulePar(), CbmTrdParSet::GetNrOfModules(), and CbmTrdParSetAsic::putParams().
std::map< size_t, Int_t > CbmTrdHardwareSetupR::CreateHwToSwAsicAddressTranslatorMap | ( | bool | isLoadedParameters | ) |
Create a hardware to software asic addreess translator map, with hidden parameter loading.
isLoadedParameters |
Definition at line 57 of file CbmTrdHardwareSetupR.cxx.
References CreateHwToSwAsicAddressTranslatorMap(), and fParameterFileName.
Referenced by CreateHwToSwAsicAddressTranslatorMap(), CbmMcbm2018UnpackerAlgoTrdR::InitParameters(), and CbmTrdUnpackAlgoBaseR::initParSet().
std::map< size_t, Int_t > CbmTrdHardwareSetupR::CreateHwToSwAsicAddressTranslatorMap | ( | CbmTrdParSetAsic * | moduleparsets | ) |
Create a hardware to software asic addreess translator map.
moduleparsets | par container for all asics on a module |
Definition at line 75 of file CbmTrdHardwareSetupR.cxx.
References CbmTrdParModAsic::GetAsicAddresses(), CbmTrdParModAsic::GetAsicPar(), CbmTrdParAsic::GetComponentId(), CbmTrdParSpadic::GetElinkId(), CbmTrdParSet::GetModulePar(), CbmTrdParSet::GetNrOfModules(), and CbmTrdParSetAsic::putParams().
size_t CbmTrdHardwareSetupR::GetComponentId | ( | Int_t | asicAddress | ) |
Retrieve componentId of the asic add the passed address for the currently selected ComponentIdMap.
Definition at line 43 of file CbmTrdHardwareSetupR.cxx.
References fComponentIdMap.
size_t CbmTrdHardwareSetupR::GetComponentId | ( | Int_t | asicAddress, |
ECbmTrdHardwareSetupVersion | hwSetup ) |
Retrieve componentId of the asic add the passed address for the passed hwSetup.
Definition at line 36 of file CbmTrdHardwareSetupR.cxx.
References GetComponentId(), and SelectComponentIdMap().
Referenced by CbmTrdParManager::CreateModuleParameters(), GetComponentId(), and WriteComponentIdsToParams().
|
inline |
Definition at line 55 of file CbmTrdHardwareSetupR.h.
References fComponentIdMap.
CbmTrdHardwareSetupR CbmTrdHardwareSetupR::operator= | ( | const CbmTrdHardwareSetupR & | ) |
void CbmTrdHardwareSetupR::SelectComponentIdMap | ( | ECbmTrdHardwareSetupVersion | hwSetup | ) |
Definition at line 290 of file CbmTrdHardwareSetupR.cxx.
References fComponentIdMap, kCbm2025, kDesy2019, kLabIkfOneSpadic, kMcbm2020, kMcbm2020b, kMcbm2021, kMcbm2022, kMcbm2022Only1D, kMcbm2022WithoutHybrid, and kUndefined.
Referenced by GetComponentId(), CbmTrdParManager::Init(), and SelectComponentIdMap().
void CbmTrdHardwareSetupR::SelectComponentIdMap | ( | TString | geoTag | ) |
Definition at line 246 of file CbmTrdHardwareSetupR.cxx.
References kCbm2025, kDesy2019, kLabIkfOneSpadic, kMcbm2020, kMcbm2020b, kMcbm2021, kMcbm2022, kMcbm2022Only1D, kMcbm2022WithoutHybrid, kUndefined, and SelectComponentIdMap().
|
inline |
Definition at line 58 of file CbmTrdHardwareSetupR.h.
References fComponentIdMap.
|
inline |
Definition at line 57 of file CbmTrdHardwareSetupR.h.
References fParameterFileName.
bool CbmTrdHardwareSetupR::WriteComponentIdsToParams | ( | ) |
Definition at line 184 of file CbmTrdHardwareSetupR.cxx.
References fComponentIdMap, fParameterFileName, CbmTrdParModAsic::GetAsicAddresses(), CbmTrdParModAsic::GetAsicPar(), GetComponentId(), CbmTrdParSet::GetModulePar(), CbmTrdParSet::GetNrOfModules(), CbmTrdParSetAsic::putParams(), and CbmTrdParAsic::SetComponentId().
|
private |
Container for the translation betweem software asicAddress and hardware asicAddress. First: CbmTrdParAsic::fAddress, Second CbmTrdParAsic::fComponentId.
Definition at line 99 of file CbmTrdHardwareSetupR.h.
Referenced by GetComponentId(), GetComponentIdMap(), SelectComponentIdMap(), SetComponentIdMap(), and WriteComponentIdsToParams().
|
private |
Name of the parameter file correlated to the hardware setup.
Definition at line 101 of file CbmTrdHardwareSetupR.h.
Referenced by CreateAsicChannelMap(), CreateHwToSwAsicAddressTranslatorMap(), SetParameterFile(), and WriteComponentIdsToParams().