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

Detailed Description

Definition at line 35 of file CbmTrdHardwareSetupR.h.

Constructor & Destructor Documentation

◆ CbmTrdHardwareSetupR() [1/2]

CbmTrdHardwareSetupR::CbmTrdHardwareSetupR ( )

Definition at line 32 of file CbmTrdHardwareSetupR.cxx.

◆ CbmTrdHardwareSetupR() [2/2]

CbmTrdHardwareSetupR::CbmTrdHardwareSetupR ( const CbmTrdHardwareSetupR )

◆ ~CbmTrdHardwareSetupR()

CbmTrdHardwareSetupR::~CbmTrdHardwareSetupR ( )

Definition at line 36 of file CbmTrdHardwareSetupR.cxx.

Member Function Documentation

◆ CreateAsicChannelMap()

◆ CreateHwToSwAsicAddressTranslatorMap()

◆ GetComponentId() [1/2]

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.

◆ GetComponentId() [2/2]

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

◆ GetComponentIdMap()

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

Definition at line 49 of file CbmTrdHardwareSetupR.h.

References fComponentIdMap.

◆ operator=()

CbmTrdHardwareSetupR CbmTrdHardwareSetupR::operator= ( const CbmTrdHardwareSetupR )

◆ SelectComponentIdMap() [1/2]

void CbmTrdHardwareSetupR::SelectComponentIdMap ( ECbmTrdHardwareSetupVersion  hwSetup)

◆ SelectComponentIdMap() [2/2]

void CbmTrdHardwareSetupR::SelectComponentIdMap ( TString  geoTag)

◆ SetComponentIdMap()

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

Definition at line 52 of file CbmTrdHardwareSetupR.h.

References fComponentIdMap.

◆ SetParameterFile()

void CbmTrdHardwareSetupR::SetParameterFile ( TString  fileName)
inline

Definition at line 51 of file CbmTrdHardwareSetupR.h.

References fParameterFileName.

◆ WriteComponentIdsToParams()

Member Data Documentation

◆ fComponentIdMap

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

◆ fParameterFileName

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


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