CbmRoot
Loading...
Searching...
No Matches
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.
 
virtual void clear ()
 Reset all parameters.
 
virtual int FindModuleByEqId (uint16_t eqid, uint8_t &rob_id, uint8_t &lnk_id) const
 Search for the module in the setup parameters by equipement id.
 
Bool_t getParams (FairParamList *)
 Build the ASICs par for the current module from the info stored in the param file It applies to the list of ASICs.
 
void putParams (FairParamList *)
 Store the ASICs par info for the current module into the param file It applies to the list of ASICs.
 
virtual Int_t GetModuleId (Int_t i) const
 
virtual const CbmTrdParModGetModulePar (Int_t detId) const
 
virtual CbmTrdParModGetModulePar (Int_t detId)
 
virtual Int_t GetNrOfModules () const
 
std::map< Int_t, CbmTrdParMod * > GetModuleMap ()
 
virtual void addParam (CbmTrdParMod *mod)
 
virtual void Print (Option_t *opt="") const
 

Protected Member Functions

 ClassDef (CbmTrdParSet, 1)
 

Protected Attributes

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

Private Member Functions

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

Detailed Description

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

The following concepts are used :

  • DAQ id : unique id of an ASIC composed of the format modId*1000+asicId.
  • modId : is calculated according to the CbmTrdAddress::GetModuleId().
  • asicId : uniquely identify the ASICs in one module.
  • chAddress : identify the read-out pad(s) connected to the ASIC. In the case of FASP it distinguish between R and T pairing

Definition at line 28 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 32 of file CbmTrdParSetAsic.cxx.

◆ ~CbmTrdParSetAsic()

virtual CbmTrdParSetAsic::~CbmTrdParSetAsic ( )
inlinevirtual

Destructor.

Definition at line 35 of file CbmTrdParSetAsic.h.

◆ CbmTrdParSetAsic() [2/2]

CbmTrdParSetAsic::CbmTrdParSetAsic ( const CbmTrdParSetAsic & ref)
private

Member Function Documentation

◆ addParam()

◆ ClassDef() [1/2]

CbmTrdParSet::ClassDef ( CbmTrdParSet ,
1  )
protectedinherited

◆ ClassDef() [2/2]

CbmTrdParSetAsic::ClassDef ( CbmTrdParSetAsic ,
1  )
private

◆ clear()

virtual void CbmTrdParSetAsic::clear ( )
inlinevirtual

Reset all parameters.

Reimplemented from CbmTrdParSet.

Definition at line 38 of file CbmTrdParSetAsic.h.

◆ FindModuleByEqId()

int CbmTrdParSetAsic::FindModuleByEqId ( uint16_t eqid,
uint8_t & rob_id,
uint8_t & lnk_id ) const
virtual

Search for the module in the setup parameters by equipement id.

Parameters
[in]eqidequipment id from HW
[out]rob_idindex of the ROB (CROB in legacy mode) on the module
[out]lnk_idindex of optical link on the ROB (not used in legacy mode); 0 for down, 1 for up
Returns
module id in the setup

Definition at line 38 of file CbmTrdParSetAsic.cxx.

References CbmTrdParSet::fModuleMap.

Referenced by CbmTrdUnpackFaspAlgo::unpack().

◆ GetModuleId()

◆ GetModuleMap()

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

◆ GetModulePar() [1/2]

CbmTrdParMod * CbmTrdParSet::GetModulePar ( Int_t detId)
virtualinherited

Definition at line 57 of file CbmTrdParSet.cxx.

References CbmTrdParSet::fModuleMap.

◆ GetModulePar() [2/2]

◆ GetNrOfModules()

◆ getParams()

Bool_t CbmTrdParSetAsic::getParams ( FairParamList * l)
virtual

Build the ASICs par for the current module from the info stored in the param file It applies to the list of ASICs.

Parameters
moduleASICs par (FASP or SPADIC)

Reimplemented from CbmTrdParSet.

Definition at line 50 of file CbmTrdParSetAsic.cxx.

References CbmTrdParSet::fModuleMap, CbmTrdParSet::fNrOfModules, NCROBMOD, NFASPPARS, NSPADICCH, CbmTrdParModAsic::SetAsicPar(), CbmTrdParModAsic::SetChamberType(), CbmTrdParAsic::SetChannelAddresses(), CbmTrdParAsic::SetComponentId(), CbmTrdParModAsic::SetCrobAddresses(), and CbmTrdParMod::SetModuleId().

◆ operator=()

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

◆ Print()

void CbmTrdParSet::Print ( Option_t * opt = "") const
virtualinherited

◆ putParams()

Member Data Documentation

◆ fModuleMap

◆ fNrOfModules


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