CbmRoot
CbmTrdParSetAsic Class Reference

Describe TRD module ASIC settings (electronic gain, delays, etc) More...

#include <CbmTrdParSetAsic.h>

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

Public Member Functions

 CbmTrdParSetAsic (const char *name="CbmTrdParSetAsic", const char *title="TRD ASIC parameters", const char *context="Default")
 
virtual ~CbmTrdParSetAsic ()
 Destructor. More...
 
virtual void clear ()
 Reset all parameters. More...
 
void AddParameters (CbmTrdParSetAsic *)
 
Bool_t getParams (FairParamList *)
 
void putParams (FairParamList *)
 
virtual void GetAsicAddresses (std::vector< Int_t > *a) const
 
virtual Int_t GetAsicAddress (Int_t chAddress) const
 Look for the ASIC which operates on a specific channel. More...
 
virtual const CbmTrdParAsicGetAsicPar (Int_t address) const
 
virtual CbmTrdParAsicGetAsicPar (Int_t address)
 
virtual Int_t GetAsicType () const
 
virtual const CbmTrdParSetGetModuleSet (Int_t detId) const
 
virtual Int_t GetNofAsics () const
 
virtual void Print (Option_t *opt="") const
 
virtual void SetAsicPar (Int_t address, CbmTrdParAsic *p)
 
virtual void SetAsicType (Int_t t)
 
virtual Int_t GetModuleId (Int_t i) const
 
virtual const CbmTrdParModGetModulePar (Int_t detId) const
 
virtual Int_t GetNrOfModules () const
 
std::map< Int_t, CbmTrdParMod * > GetModuleMap ()
 
virtual void addParam (CbmTrdParMod *mod)
 

Protected Member Functions

 ClassDef (CbmTrdParSet, 1)
 

Protected Attributes

Int_t fNrOfModules
 no of modules in the current run More...
 
std::map< Int_t, CbmTrdParMod * > fModuleMap
 

Private Member Functions

 CbmTrdParSetAsic (const CbmTrdParSetAsic &ref)
 
const CbmTrdParSetAsicoperator= (const CbmTrdParSetAsic &ref)
 
 ClassDef (CbmTrdParSetAsic, 1)
 

Private Attributes

UChar_t fType
 type of ASIC for current se More...
 
std::map< Int_t, CbmTrdParSetAsic * > fModPar
 module wise list of ASIC sets More...
 

Detailed Description

Describe TRD module ASIC settings (electronic gain, delays, etc)

Definition at line 18 of file CbmTrdParSetAsic.h.

Constructor & Destructor Documentation

◆ CbmTrdParSetAsic() [1/2]

CbmTrdParSetAsic::CbmTrdParSetAsic ( const char *  name = "CbmTrdParSetAsic",
const char *  title = "TRD ASIC parameters",
const char *  context = "Default" 
)

Standard constructor

Definition at line 22 of file CbmTrdParSetAsic.cxx.

Referenced by getParams().

◆ ~CbmTrdParSetAsic()

CbmTrdParSetAsic::~CbmTrdParSetAsic ( )
virtual

Destructor.

Definition at line 28 of file CbmTrdParSetAsic.cxx.

References fModPar, and CbmTrdParSet::fNrOfModules.

◆ CbmTrdParSetAsic() [2/2]

CbmTrdParSetAsic::CbmTrdParSetAsic ( const CbmTrdParSetAsic ref)
private

Member Function Documentation

◆ addParam()

void CbmTrdParSet::addParam ( CbmTrdParMod mod)
virtualinherited

◆ AddParameters()

void CbmTrdParSetAsic::AddParameters ( CbmTrdParSetAsic mod)

◆ ClassDef() [1/2]

CbmTrdParSet::ClassDef ( CbmTrdParSet  ,
 
)
protectedinherited

◆ ClassDef() [2/2]

CbmTrdParSetAsic::ClassDef ( CbmTrdParSetAsic  ,
 
)
private

◆ clear()

virtual void CbmTrdParSetAsic::clear ( )
inlinevirtual

Reset all parameters.

Reimplemented from CbmTrdParSet.

Definition at line 29 of file CbmTrdParSetAsic.h.

◆ GetAsicAddress()

Int_t CbmTrdParSetAsic::GetAsicAddress ( Int_t  chAddress) const
virtual

Look for the ASIC which operates on a specific channel.

Parameters
chAddressAddress of the channel
Returns
id of the ASIC operating on the channel. -1 in case of failure

Query the ASICs in the module set for the specified read-out channel. Returns the id of the ASIC within the module or -1 if all returns false.

Definition at line 209 of file CbmTrdParSetAsic.cxx.

References CbmTrdParSet::fModuleMap, and CbmTrdParAsic::QueryChannel().

Referenced by CbmTrdHitDensityQa::Finish(), CbmTrdModuleSimT::FlushBuffer(), CbmTrdHitRateFastQa::ScanModulePlane(), and CbmTrdModuleSimR::SetAsicPar().

◆ GetAsicAddresses()

void CbmTrdParSetAsic::GetAsicAddresses ( std::vector< Int_t > *  a) const
virtual

Query the ASICs in the module set for their addresses. Returns the list of these addresses in the vector prepared by the user

Definition at line 224 of file CbmTrdParSetAsic.cxx.

References CbmTrdParSet::fModuleMap, and CbmTrdParAsic::GetAddress().

Referenced by CbmTrdHardwareSetupR::CreateAsicChannelMap(), CbmTrdHardwareSetupR::CreateHwToSwAsicAddressTranslatorMap(), CbmTrdHitDensityQa::Finish(), CbmTrdHitRateFastQa::ScanModulePlane(), and CbmTrdHardwareSetupR::WriteComponentIdsToParams().

◆ GetAsicPar() [1/2]

virtual CbmTrdParAsic* CbmTrdParSetAsic::GetAsicPar ( Int_t  address)
inlinevirtual

Definition at line 43 of file CbmTrdParSetAsic.h.

References CbmTrdParSet::GetModulePar().

◆ GetAsicPar() [2/2]

◆ GetAsicType()

virtual Int_t CbmTrdParSetAsic::GetAsicType ( ) const
inlinevirtual

Definition at line 46 of file CbmTrdParSetAsic.h.

References fType.

◆ GetModuleId()

Int_t CbmTrdParSet::GetModuleId ( Int_t  i) const
virtualinherited

◆ GetModuleMap()

std::map<Int_t, CbmTrdParMod*> CbmTrdParSet::GetModuleMap ( )
inlineinherited

Definition at line 35 of file CbmTrdParSet.h.

References CbmTrdParSet::fModuleMap.

Referenced by CbmMcbm2018UnpackerAlgoTrdR::CreateHistogram().

◆ GetModulePar()

◆ GetModuleSet()

const CbmTrdParSet * CbmTrdParSetAsic::GetModuleSet ( Int_t  detId) const
virtual

◆ GetNofAsics()

virtual Int_t CbmTrdParSetAsic::GetNofAsics ( ) const
inlinevirtual

◆ GetNrOfModules()

◆ getParams()

Bool_t CbmTrdParSetAsic::getParams ( FairParamList *  l)
virtual

◆ operator=()

const CbmTrdParSetAsic& CbmTrdParSetAsic::operator= ( const CbmTrdParSetAsic ref)
private

◆ Print()

void CbmTrdParSetAsic::Print ( Option_t *  opt = "") const
virtual

◆ putParams()

◆ SetAsicPar()

void CbmTrdParSetAsic::SetAsicPar ( Int_t  address,
CbmTrdParAsic p 
)
virtual

◆ SetAsicType()

virtual void CbmTrdParSetAsic::SetAsicType ( Int_t  t)
inlinevirtual

Definition at line 51 of file CbmTrdParSetAsic.h.

References fType.

Referenced by CbmTrdParManager::CreateModuleParameters().

Member Data Documentation

◆ fModPar

std::map<Int_t, CbmTrdParSetAsic*> CbmTrdParSetAsic::fModPar
private

module wise list of ASIC sets

Definition at line 59 of file CbmTrdParSetAsic.h.

Referenced by AddParameters(), GetModuleSet(), getParams(), Print(), putParams(), and ~CbmTrdParSetAsic().

◆ fModuleMap

◆ fNrOfModules

◆ fType

UChar_t CbmTrdParSetAsic::fType
private

type of ASIC for current se

Definition at line 57 of file CbmTrdParSetAsic.h.

Referenced by GetAsicType(), and SetAsicType().


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