13#include <FairParamList.h>
17#include <TGenericClassInfo.h>
19#include <TObjString.h>
52 for (
int ich(0), ch(pad << 1); ich < 2; ich++, ch++) {
56 LOG(debug) << GetName() <<
"::GetFaspChannelPar : Could not find FASP params for address=" << faspAddress
75 if (asic.second->QueryChannel(chAddress) >= 0)
return asic.first;
87 a->push_back(asic.first);
115 LOG(warn) << GetName() <<
"::GetNofAsics : The chamber type " <<
fType <<
" has no mapping to ASICs. Skip.";
131 LOG(warn) << GetName() <<
"::GetAsicType : The chamber type " <<
fType <<
" has no mapping to ASICs. Skip.";
141 if ((add & 0xffff) == eq) {
145 else if (((add >> 16) & 0xffff) == eq) {
162 if (strcmp(opt,
"all") == 0) {
164 asic.second->Print(opt);
173 if (address % 1000 == 999)
return;
174 LOG(warn) << GetName() <<
"::SetAsicPar : The ASIC @ " << address <<
" already initialized. Skip.";
188 case 8:
fCrobAdd.push_back(addresses[0]);
break;
194 LOG(warn) << GetName() <<
"::SetCrobAddresses : The chamber type " <<
fType <<
" has no mapping to CROBs. Skip.";
ClassImp(CbmConverterManager)
Definition of ASIC parameters.
virtual Int_t GetAddress() const
Definition of FASP channel calibration container.
Definition of FASP parameters.
const CbmTrdParFaspChannel * GetChannel(Int_t pad_address, UChar_t pair) const
Query the calibration for one FASP RO channel.
Describe TRD module ASIC settings (electronic gain, delays, etc)
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....
virtual void SetCrobAddresses(int *addresses)
Initialize the CROB addresses as they are used in the DAQ.
uint8_t fType
type of chamber for current module
std::map< int, CbmTrdParAsic * > fModPar
list of ASIC params for module
virtual int GetNofAsics() const
Returns the DEFAULT number of ASICs for the current module.
CbmTrdParModAsic(const char *name="CbmTrdParModAsic", const char *title="Generic list of ASICs for TRD modules")
virtual CbmTrdDigi::eCbmTrdAsicType GetAsicType() const
Query the type of ASICs in the list.
virtual void clear()
Reset all parameters.
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.
bool GetFaspChannelPar(int pad, const CbmTrdParFaspChannel *&tilt, const CbmTrdParFaspChannel *&rect) const
Access the calibration objects describing the two FASP channels allocated to a pad....
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 void Print(Option_t *opt="") const
std::vector< int32_t > fCrobAdd
ordered list of Crobs for current module
virtual void SetAsicPar(CbmTrdParAsic *p)
Initialize the ASIC parameters for DAQ id It applies to the list of ASICs.
Definition of generic parameters for one TRD module.