CbmRoot
|
Describe TRD module ASIC settings (electronic gain, delays, etc) More...
#include <CbmTrdParModAsic.h>
Public Member Functions | |
CbmTrdParModAsic (const char *name="CbmTrdParModAsic", const char *title="Generic list of ASICs for TRD modules") | |
virtual | ~CbmTrdParModAsic () |
Destructor. | |
virtual void | clear () |
Reset all parameters. | |
bool | GetFaspChannelPar (int pad, const CbmTrdParFaspChannel *&tilt, const CbmTrdParFaspChannel *&rect) const |
Access the calibration objects describing the two FASP channels allocated to a pad. FASP specific ! | |
virtual void | GetAsicAddresses (std::vector< Int_t > *a) const |
Query the ASICs in the module for their DAQ address. It applies to the list of ASICs. Returns the list of id of the ASICs within the module. | |
virtual Int_t | GetAsicAddress (Int_t chAddress) const |
Look for the ASIC which operates on a specific channel It applies to the list of ASICs. | |
virtual const CbmTrdParAsic * | GetAsicPar (Int_t address) const |
Look for the ASIC parameters of a given DAQ id It applies to the list of ASICs. | |
virtual CbmTrdParAsic * | GetAsicPar (Int_t address) |
Look for the ASIC parameters of a given DAQ id It applies to the list of ASICs. | |
virtual CbmTrdDigi::eCbmTrdAsicType | GetAsicType () const |
Query the type of ASICs in the list. | |
virtual Int_t | GetChamberType () const |
Query the type of chamber. | |
virtual const int32_t * | GetCrobAddresses () const |
Query the type of chamber. | |
virtual int | HasEqId (uint16_t eqid, uint8_t &lnk) const |
Query the existence of an equipment (CROB) by HW id on the current module params. | |
virtual size_t | GetNofAsicsOnModule () const |
Returns the number of INSTALLED ASICs for the current module It applies to the list of ASICs. | |
virtual int | GetNofAsics () const |
Returns the DEFAULT number of ASICs for the current module. | |
virtual void | Print (Option_t *opt="") const |
virtual void | SetAsicPar (CbmTrdParAsic *p) |
Initialize the ASIC parameters for DAQ id It applies to the list of ASICs. | |
virtual void | SetChamberType (Int_t t) |
virtual void | SetCrobAddresses (int *addresses) |
Initialize the CROB addresses as they are used in the DAQ. | |
virtual uint16_t | GetConfig () const |
virtual int | GetModuleId () const |
virtual uint8_t | GetVersion () const |
virtual void | SetConfigId (uint16_t c) |
virtual void | SetModuleId (int m) |
virtual void | SetVersion (uint8_t v) |
Protected Member Functions | |
CbmTrdParModAsic (const CbmTrdParModAsic &ref) | |
const CbmTrdParModAsic & | operator= (const CbmTrdParModAsic &ref) |
ClassDef (CbmTrdParModAsic, 1) | |
Protected Attributes | |
uint8_t | fType |
type of chamber for current module | |
std::vector< int32_t > | fCrobAdd |
ordered list of Crobs for current module | |
std::map< int, CbmTrdParAsic * > | fModPar |
list of ASIC params for module | |
uint8_t | fVersion = 0 |
version of the parameter | |
uint16_t | fConfig = 0 |
configuration setup of the module | |
int | fModuleId = 0 |
module id | |
Friends | |
class | CbmTrdParSetAsic |
Describe TRD module ASIC settings (electronic gain, delays, etc)
The following concepts are used :
Definition at line 30 of file CbmTrdParModAsic.h.
CbmTrdParModAsic::CbmTrdParModAsic | ( | const char * | name = "CbmTrdParModAsic", |
const char * | title = "Generic list of ASICs for TRD modules" ) |
Standard constructor
Definition at line 31 of file CbmTrdParModAsic.cxx.
|
inlinevirtual |
|
protected |
|
protected |
|
virtual |
Reset all parameters.
Definition at line 40 of file CbmTrdParModAsic.cxx.
References fModPar.
Referenced by ~CbmTrdParModAsic().
|
virtual |
Look for the ASIC which operates on a specific channel It applies to the list of ASICs.
chAddress | Pad address of the channel |
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 68 of file CbmTrdParModAsic.cxx.
References fModPar.
Referenced by CbmTrdHitDensityQa::Finish(), CbmTrdModuleSim2D::FlushBuffer(), GetFaspChannelPar(), CbmTrdModuleRec2D::GetFaspChCalibrator(), CbmTrdHitRateFastQa::ScanModulePlane(), and CbmTrdModuleSimR::SetAsicPar().
|
virtual |
Query the ASICs in the module for their DAQ address. It applies to the list of ASICs. Returns the list of id of the ASICs within the module.
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 81 of file CbmTrdParModAsic.cxx.
References fModPar.
Referenced by CbmTrdUnpackFaspMonitor::addParam(), CbmTrdHardwareSetupR::CreateAsicChannelMap(), CbmTrdHardwareSetupR::CreateHwToSwAsicAddressTranslatorMap(), CbmTrdHitDensityQa::Finish(), CbmTaskTrdUnpackParWrite::Init(), CbmTrdUnpackFaspMonitor::MapMaskedChannels(), CbmTrdHitRateFastQa::ScanModulePlane(), and CbmTrdHardwareSetupR::WriteComponentIdsToParams().
|
virtual |
Look for the ASIC parameters of a given DAQ id It applies to the list of ASICs.
address | ASIC address from DAQ |
Definition at line 98 of file CbmTrdParModAsic.cxx.
References fModPar.
|
virtual |
Look for the ASIC parameters of a given DAQ id It applies to the list of ASICs.
address | ASIC address from DAQ |
Definition at line 91 of file CbmTrdParModAsic.cxx.
References fModPar.
Referenced by CbmTrdUnpackFaspMonitor::addParam(), CbmTrdHardwareSetupR::CreateAsicChannelMap(), CbmTrdHardwareSetupR::CreateHwToSwAsicAddressTranslatorMap(), CbmTrdModuleSim2D::FlushBuffer(), GetFaspChannelPar(), CbmTrdModuleRec2D::GetFaspChCalibrator(), CbmTaskTrdUnpackParWrite::Init(), CbmTrdModuleAbstract::IsChannelMasked(), CbmTrdUnpackFaspMonitor::MapMaskedChannels(), CbmTrdUnpackFaspAlgo::pushDigis(), CbmTrdHitRateFastQa::ScanModulePlane(), and CbmTrdHardwareSetupR::WriteComponentIdsToParams().
|
virtual |
Query the type of ASICs in the list.
Definition at line 121 of file CbmTrdParModAsic.cxx.
References fType, CbmTrdDigi::kFASP, CbmTrdDigi::kNTypes, and CbmTrdDigi::kSPADIC.
Referenced by CbmTaskTrdHitFinderParWrite::Init(), CbmTaskTrdUnpackParWrite::Init(), CbmTrdUnpackFaspMonitor::MapMaskedChannels(), and CbmTrdParSetAsic::putParams().
|
inlinevirtual |
|
inlinevirtualinherited |
Definition at line 17 of file CbmTrdParMod.h.
References CbmTrdParMod::fConfig.
|
inlinevirtual |
Query the type of chamber.
Definition at line 82 of file CbmTrdParModAsic.h.
References fCrobAdd.
Referenced by CbmTaskTrdUnpackParWrite::Init(), and CbmTrdParSetAsic::putParams().
bool CbmTrdParModAsic::GetFaspChannelPar | ( | int | pad, |
const CbmTrdParFaspChannel *& | tilt, | ||
const CbmTrdParFaspChannel *& | rect ) const |
Access the calibration objects describing the two FASP channels allocated to a pad. FASP specific !
[in] | pad | Id of the pad according to position on the pad-plane |
[in,out] | tilt | Parameter for FASP channel connected to the tilt paired pads. On output it can be:
|
[in,out] | rect | Parameter for FASP channel connected to the rectangular paired pads. The output follows the same convention as for the tilt parameters |
Definition at line 48 of file CbmTrdParModAsic.cxx.
References GetAsicAddress(), GetAsicPar(), CbmTrdParFasp::GetChannel(), NFASPCH, and NFASPMOD.
Referenced by CbmTrdModuleRec2D::AddDigi(), CbmTrdModuleSim2D::AddDigi(), and CbmTaskTrdHitFinderParWrite::Init().
|
inlinevirtualinherited |
Definition at line 18 of file CbmTrdParMod.h.
References CbmTrdParMod::fModuleId.
Referenced by CbmTrdParSet::addParam(), and CbmMcbm2018UnpackerAlgoTrdR::CreateHistogram().
|
virtual |
Returns the DEFAULT number of ASICs for the current module.
Definition at line 105 of file CbmTrdParModAsic.cxx.
References fType.
Referenced by CbmTrdHitDensityQa::Exec(), CbmTrdHitDensityQa::Finish(), CbmTrdModuleAbstract::GetNasics(), Print(), and CbmTrdHitRateFastQa::ScanModulePlane().
|
inlinevirtual |
Returns the number of INSTALLED ASICs for the current module It applies to the list of ASICs.
Definition at line 92 of file CbmTrdParModAsic.h.
References fModPar.
|
inlinevirtualinherited |
Definition at line 19 of file CbmTrdParMod.h.
References CbmTrdParMod::fVersion.
|
virtual |
Query the existence of an equipment (CROB) by HW id on the current module params.
Definition at line 137 of file CbmTrdParModAsic.cxx.
References fCrobAdd.
|
protected |
|
virtual |
Definition at line 155 of file CbmTrdParModAsic.cxx.
References fCrobAdd, fModPar, and GetNofAsics().
Referenced by CbmTrdParManager::CreateModuleParameters().
|
virtual |
Initialize the ASIC parameters for DAQ id It applies to the list of ASICs.
Definition at line 169 of file CbmTrdParModAsic.cxx.
References fModPar, and CbmTrdParAsic::GetAddress().
Referenced by CbmTrdParManager::CreateModuleParameters(), CbmTrdParSetAsic::getParams(), and CbmTrdModuleSimR::SetAsicPar().
|
inlinevirtual |
Definition at line 103 of file CbmTrdParModAsic.h.
References fType.
Referenced by CbmTrdParManager::CreateModuleParameters(), and CbmTrdParSetAsic::getParams().
|
inlinevirtualinherited |
Definition at line 21 of file CbmTrdParMod.h.
References CbmTrdParMod::fConfig.
|
virtual |
Initialize the CROB addresses as they are used in the DAQ.
Definition at line 181 of file CbmTrdParModAsic.cxx.
References fCrobAdd, fType, and NCROBMOD.
Referenced by CbmTrdParSetAsic::getParams().
|
inlinevirtualinherited |
Definition at line 22 of file CbmTrdParMod.h.
References CbmTrdParMod::fModuleId.
Referenced by CbmTrdParManager::CreateModuleParameters(), CbmTrdParSetAsic::getParams(), and CbmTrdParSetGeo::Init().
|
inlinevirtualinherited |
Definition at line 23 of file CbmTrdParMod.h.
References CbmTrdParMod::fVersion, and v.
|
friend |
Definition at line 31 of file CbmTrdParModAsic.h.
|
protectedinherited |
configuration setup of the module
Definition at line 27 of file CbmTrdParMod.h.
Referenced by CbmTrdParMod::GetConfig(), CbmTrdParModDigi::GetPadPlaneType(), and CbmTrdParMod::SetConfigId().
|
protected |
ordered list of Crobs for current module
Definition at line 112 of file CbmTrdParModAsic.h.
Referenced by GetCrobAddresses(), HasEqId(), Print(), and SetCrobAddresses().
|
protected |
list of ASIC params for module
Definition at line 113 of file CbmTrdParModAsic.h.
Referenced by clear(), GetAsicAddress(), GetAsicAddresses(), GetAsicPar(), GetAsicPar(), GetNofAsicsOnModule(), Print(), CbmTrdParSetAsic::putParams(), and SetAsicPar().
|
protectedinherited |
module id
Definition at line 28 of file CbmTrdParMod.h.
Referenced by CbmTrdParModGas::CbmTrdParModGas(), CbmTrdParMod::GetModuleId(), CbmTrdParModDigi::Print(), CbmTrdParModGas::Print(), CbmTrdParModGas::SetDriftMap(), and CbmTrdParMod::SetModuleId().
|
protected |
type of chamber for current module
Definition at line 111 of file CbmTrdParModAsic.h.
Referenced by GetAsicType(), GetChamberType(), GetNofAsics(), SetChamberType(), and SetCrobAddresses().
|
protectedinherited |
version of the parameter
Definition at line 26 of file CbmTrdParMod.h.
Referenced by CbmTrdParModDigi::GetPadPlaneType(), CbmTrdParMod::GetVersion(), and CbmTrdParMod::SetVersion().