CbmRoot
|
#include <CbmTrdHardwareSetupR.h>
Public Member Functions | |
CbmTrdHardwareSetupR () | |
CbmTrdHardwareSetupR (const CbmTrdHardwareSetupR &) | |
CbmTrdHardwareSetupR | operator= (const CbmTrdHardwareSetupR &) |
~CbmTrdHardwareSetupR () | |
std::uint64_t | GetComponentId (Int_t asicAddress, ECbmTrdHardwareSetupVersion hwSetup) |
Retrieve componentId of the asic add the passed address for the passed hwSetup. More... | |
std::uint64_t | GetComponentId (Int_t asicAddress) |
Retrieve componentId of the asic add the passed address for the currently selected ComponentIdMap. More... | |
std::map< Int_t, std::uint64_t > | GetComponentIdMap () |
void | SetParameterFile (TString fileName) |
void | SetComponentIdMap (std::map< Int_t, std::uint64_t > compMap) |
std::map< std::uint64_t, Int_t > | CreateHwToSwAsicAddressTranslatorMap (bool isLoadedParameters) |
std::map< Int_t, std::vector< Int_t > > | CreateAsicChannelMap (bool isLoadedParameters) |
void | SelectComponentIdMap (ECbmTrdHardwareSetupVersion hwSetup) |
void | SelectComponentIdMap (TString geoTag) |
bool | WriteComponentIdsToParams () |
Private Attributes | |
std::map< Int_t, uint64_t > | fComponentIdMap |
Container for the translation betweem software asicAddress and hardware asicAddress. First: CbmTrdParAsic::fAddress, Second CbmTrdParAsic::fComponentId. More... | |
TString | fParameterFileName |
Name of the parameter file correlated to the hardware setup. More... | |
Definition at line 35 of file CbmTrdHardwareSetupR.h.
CbmTrdHardwareSetupR::CbmTrdHardwareSetupR | ( | ) |
Definition at line 32 of file CbmTrdHardwareSetupR.cxx.
CbmTrdHardwareSetupR::CbmTrdHardwareSetupR | ( | const CbmTrdHardwareSetupR & | ) |
CbmTrdHardwareSetupR::~CbmTrdHardwareSetupR | ( | ) |
Definition at line 36 of file CbmTrdHardwareSetupR.cxx.
std::map< Int_t, std::vector< Int_t > > CbmTrdHardwareSetupR::CreateAsicChannelMap | ( | bool | isLoadedParameters | ) |
Definition at line 129 of file CbmTrdHardwareSetupR.cxx.
References fParameterFileName, CbmTrdParSetAsic::GetAsicAddresses(), CbmTrdParSetAsic::GetAsicPar(), CbmTrdParAsic::GetChannelAddresses(), CbmTrdParSpadic::GetElinkId(), CbmTrdParSetAsic::GetModuleSet(), CbmTrdParSet::GetNrOfModules(), and CbmTrdParSetAsic::putParams().
Referenced by CbmMcbm2018UnpackerAlgoTrdR::InitParameters().
std::map< std::uint64_t, Int_t > CbmTrdHardwareSetupR::CreateHwToSwAsicAddressTranslatorMap | ( | bool | isLoadedParameters | ) |
Definition at line 62 of file CbmTrdHardwareSetupR.cxx.
References fParameterFileName, CbmTrdParSetAsic::GetAsicAddresses(), CbmTrdParSetAsic::GetAsicPar(), CbmTrdParAsic::GetComponentId(), CbmTrdParSpadic::GetElinkId(), CbmTrdParSetAsic::GetModuleSet(), CbmTrdParSet::GetNrOfModules(), and CbmTrdParSetAsic::putParams().
Referenced by CbmMcbm2018UnpackerAlgoTrdR::InitParameters().
std::uint64_t CbmTrdHardwareSetupR::GetComponentId | ( | Int_t | asicAddress | ) |
Retrieve componentId of the asic add the passed address for the currently selected ComponentIdMap.
Definition at line 47 of file CbmTrdHardwareSetupR.cxx.
References fComponentIdMap.
std::uint64_t CbmTrdHardwareSetupR::GetComponentId | ( | Int_t | asicAddress, |
ECbmTrdHardwareSetupVersion | hwSetup | ||
) |
Retrieve componentId of the asic add the passed address for the passed hwSetup.
Definition at line 40 of file CbmTrdHardwareSetupR.cxx.
References SelectComponentIdMap().
Referenced by CbmTrdParManager::CreateModuleParameters(), and WriteComponentIdsToParams().
|
inline |
Definition at line 49 of file CbmTrdHardwareSetupR.h.
References fComponentIdMap.
CbmTrdHardwareSetupR CbmTrdHardwareSetupR::operator= | ( | const CbmTrdHardwareSetupR & | ) |
void CbmTrdHardwareSetupR::SelectComponentIdMap | ( | ECbmTrdHardwareSetupVersion | hwSetup | ) |
Definition at line 271 of file CbmTrdHardwareSetupR.cxx.
References fComponentIdMap, kCbm2025, kDesy2019, kLabIkfOneSpadic, kMcbm2020, and kUndefined.
Referenced by GetComponentId(), CbmTrdParManager::Init(), and SelectComponentIdMap().
void CbmTrdHardwareSetupR::SelectComponentIdMap | ( | TString | geoTag | ) |
Definition at line 251 of file CbmTrdHardwareSetupR.cxx.
References kCbm2025, kDesy2019, kLabIkfOneSpadic, kMcbm2020, kUndefined, and SelectComponentIdMap().
|
inline |
Definition at line 52 of file CbmTrdHardwareSetupR.h.
References fComponentIdMap.
|
inline |
Definition at line 51 of file CbmTrdHardwareSetupR.h.
References fParameterFileName.
bool CbmTrdHardwareSetupR::WriteComponentIdsToParams | ( | ) |
Definition at line 187 of file CbmTrdHardwareSetupR.cxx.
References fComponentIdMap, fParameterFileName, CbmTrdParSetAsic::GetAsicAddresses(), CbmTrdParSetAsic::GetAsicPar(), GetComponentId(), CbmTrdParSetAsic::GetModuleSet(), 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 67 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 70 of file CbmTrdHardwareSetupR.h.
Referenced by CreateAsicChannelMap(), CreateHwToSwAsicAddressTranslatorMap(), SetParameterFile(), and WriteComponentIdsToParams().