CbmRoot
Loading...
Searching...
No Matches
CbmTrdHardwareSetupR Class Reference

#include <CbmTrdHardwareSetupR.h>

Inheritance diagram for CbmTrdHardwareSetupR:
[legend]
Collaboration diagram for CbmTrdHardwareSetupR:
[legend]

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.
 

Detailed Description

Definition at line 42 of file CbmTrdHardwareSetupR.h.

Constructor & Destructor Documentation

◆ CbmTrdHardwareSetupR() [1/2]

CbmTrdHardwareSetupR::CbmTrdHardwareSetupR ( )

Definition at line 30 of file CbmTrdHardwareSetupR.cxx.

◆ CbmTrdHardwareSetupR() [2/2]

CbmTrdHardwareSetupR::CbmTrdHardwareSetupR ( const CbmTrdHardwareSetupR & )

◆ ~CbmTrdHardwareSetupR()

CbmTrdHardwareSetupR::~CbmTrdHardwareSetupR ( )

Definition at line 33 of file CbmTrdHardwareSetupR.cxx.

Member Function Documentation

◆ CreateAsicChannelMap() [1/2]

std::map< Int_t, std::vector< Int_t > > CbmTrdHardwareSetupR::CreateAsicChannelMap ( bool isLoadedParameters)

Create a Asic Channel Map, with hidden parameter loading.

Parameters
isLoadedParameters
Returns
std::map<Int_t, std::vector<Int_t>>

Definition at line 124 of file CbmTrdHardwareSetupR.cxx.

References CreateAsicChannelMap(), and fParameterFileName.

Referenced by CreateAsicChannelMap(), CbmMcbm2018UnpackerAlgoTrdR::InitParameters(), and CbmTrdUnpackAlgoBaseR::initParSet().

◆ CreateAsicChannelMap() [2/2]

std::map< Int_t, std::vector< Int_t > > CbmTrdHardwareSetupR::CreateAsicChannelMap ( CbmTrdParSetAsic * parset)

◆ CreateHwToSwAsicAddressTranslatorMap() [1/2]

std::map< size_t, Int_t > CbmTrdHardwareSetupR::CreateHwToSwAsicAddressTranslatorMap ( bool isLoadedParameters)

Create a hardware to software asic addreess translator map, with hidden parameter loading.

Parameters
isLoadedParameters
Returns
std::map<size_t, Int_t>

Definition at line 57 of file CbmTrdHardwareSetupR.cxx.

References CreateHwToSwAsicAddressTranslatorMap(), and fParameterFileName.

Referenced by CreateHwToSwAsicAddressTranslatorMap(), CbmMcbm2018UnpackerAlgoTrdR::InitParameters(), and CbmTrdUnpackAlgoBaseR::initParSet().

◆ CreateHwToSwAsicAddressTranslatorMap() [2/2]

std::map< size_t, Int_t > CbmTrdHardwareSetupR::CreateHwToSwAsicAddressTranslatorMap ( CbmTrdParSetAsic * moduleparsets)

Create a hardware to software asic addreess translator map.

Parameters
moduleparsetspar container for all asics on a module
Returns
std::map<size_t, Int_t>

Definition at line 75 of file CbmTrdHardwareSetupR.cxx.

References CbmTrdParModAsic::GetAsicAddresses(), CbmTrdParModAsic::GetAsicPar(), CbmTrdParAsic::GetComponentId(), CbmTrdParSpadic::GetElinkId(), CbmTrdParSet::GetModulePar(), CbmTrdParSet::GetNrOfModules(), and CbmTrdParSetAsic::putParams().

◆ GetComponentId() [1/2]

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.

◆ GetComponentId() [2/2]

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().

◆ GetComponentIdMap()

std::map< Int_t, size_t > CbmTrdHardwareSetupR::GetComponentIdMap ( )
inline

Definition at line 55 of file CbmTrdHardwareSetupR.h.

References fComponentIdMap.

◆ operator=()

CbmTrdHardwareSetupR CbmTrdHardwareSetupR::operator= ( const CbmTrdHardwareSetupR & )

◆ SelectComponentIdMap() [1/2]

◆ SelectComponentIdMap() [2/2]

void CbmTrdHardwareSetupR::SelectComponentIdMap ( TString geoTag)

◆ SetComponentIdMap()

void CbmTrdHardwareSetupR::SetComponentIdMap ( std::map< Int_t, size_t > compMap)
inline

Definition at line 58 of file CbmTrdHardwareSetupR.h.

References fComponentIdMap.

◆ SetParameterFile()

void CbmTrdHardwareSetupR::SetParameterFile ( TString fileName)
inline

Definition at line 57 of file CbmTrdHardwareSetupR.h.

References fParameterFileName.

◆ WriteComponentIdsToParams()

Member Data Documentation

◆ fComponentIdMap

std::map<Int_t, size_t> CbmTrdHardwareSetupR::fComponentIdMap
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().

◆ fParameterFileName

TString CbmTrdHardwareSetupR::fParameterFileName
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().


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