12#include "FairDetParIo.h"
14#include "FairParamList.h"
27 : FairParGenericSet(name, title, context)
91 if (!l)
return kFALSE;
93 if (!l->fill(
"NbModules", &
fuNbModules))
return kFALSE;
99 if (!l->fill(
"ModuleType", &
fiModuleType))
return kFALSE;
100 if (!l->fill(
"ModAddress", &
fiModAddress))
return kFALSE;
104 if (!l->fill(
"NrOfDpbs", &
fuNrOfDpbs))
return kFALSE;
107 if (!l->fill(
"DbpIdArray", &
fiDbpIdArray))
return kFALSE;
122 if (!l->fill(
"FebAdcGain", &
fdFebAdcGain))
return kFALSE;
123 if (!l->fill(
"FebAdcBase", &
fdFebAdcBase))
return kFALSE;
138 LOG(warning) <<
"CbmMcbm2018StsPar::ElinkIdxToFebIdx => Index out of bound, "
139 <<
"returning crazy value!";
148 LOG(warning) <<
"CbmMcbm2018StsPar::ElinkIdxToAsicIdxFebA => Index out of bound, "
149 <<
"returning crazy value!";
157 LOG(warning) <<
"CbmMcbm2018StsPar::ElinkIdxToAsicIdxFebB => Index out of bound, "
158 <<
"returning crazy value!";
167 LOG(warning) <<
"CbmMcbm2018StsPar::CheckModuleIndex => Index out of bound!";
175 LOG(warning) <<
"CbmMcbm2018StsPar::GetModuleType => Index out of bound, "
176 <<
"returning crazy value!";
184 LOG(warning) <<
"CbmMcbm2018StsPar::GetModuleAddress => Index out of bound, "
185 <<
"returning crazy value!";
193 LOG(warning) <<
"CbmMcbm2018StsPar::GetModuleCenterPosX => Index out of bound, "
194 <<
"returning crazy value!";
202 LOG(warning) <<
"CbmMcbm2018StsPar::GetModuleCenterPosY => Index out of bound, "
203 <<
"returning crazy value!";
212 LOG(warning) <<
"CbmMcbm2018StsPar::GetDpbId => Index out of bound, "
213 <<
"returning crazy value!";
222 LOG(warning) <<
"CbmMcbm2018StsPar::IsCrobActive => Crob Index out of bound, "
223 <<
"returning default inactive!";
228 LOG(warning) <<
"CbmMcbm2018StsPar::IsCrobActive => Dpb Index out of bound, "
229 <<
"returning default inactive!";
239 LOG(warning) <<
"CbmMcbm2018StsPar::IsFebActive => Feb Index out of bound, "
240 <<
"returning default inactive!";
253 LOG(warning) <<
"CbmMcbm2018StsPar::IsFebActive => Feb Index out of bound, "
254 <<
"returning default inactive!";
259 LOG(warning) <<
"CbmMcbm2018StsPar::IsFebActive => Crob Index out of bound, "
260 <<
"returning default inactive!";
265 LOG(warning) <<
"CbmMcbm2018StsPar::IsFebActive => Dpb Index out of bound, "
266 <<
"returning default inactive!";
276 LOG(warning) <<
"CbmMcbm2018StsPar::IsFebPulser => Feb Index out of bound, "
277 <<
"returning default standard FEB!";
290 LOG(warning) <<
"CbmMcbm2018StsPar::IsFebPulser => Feb Index out of bound, "
291 <<
"returning default standard FEB!";
296 LOG(warning) <<
"CbmMcbm2018StsPar::IsFebPulser => Crob Index out of bound, "
297 <<
"returning default standard FEB!";
302 LOG(warning) <<
"CbmMcbm2018StsPar::IsFebPulser => Dpb Index out of bound, "
303 <<
"returning default standard FEB!";
316 LOG(warning) <<
"CbmMcbm2018StsPar::GetFebModuleIdx => Feb Index out of bound, "
317 <<
"returning default inactive!";
322 LOG(warning) <<
"CbmMcbm2018StsPar::GetFebModuleIdx => Crob Index out of bound, "
323 <<
"returning default inactive!";
328 LOG(warning) <<
"CbmMcbm2018StsPar::GetFebModuleIdx => Dpb Index out of bound, "
329 <<
"returning default inactive!";
342 LOG(warning) <<
"CbmMcbm2018StsPar::GetFebModuleSide => Feb Index out of bound, "
343 <<
"returning default inactive!";
348 LOG(warning) <<
"CbmMcbm2018StsPar::GetFebModuleSide => Crob Index out of bound, "
349 <<
"returning default inactive!";
354 LOG(warning) <<
"CbmMcbm2018StsPar::GetFebModuleSide => Dpb Index out of bound, "
355 <<
"returning default inactive!";
368 LOG(warning) <<
"CbmMcbm2018StsPar::GetFebAdcGain => Feb Index out of bound, "
369 <<
"returning default value!";
374 LOG(warning) <<
"CbmMcbm2018StsPar::GetFebAdcGain => Crob Index out of bound, "
375 <<
"returning default value!";
380 LOG(warning) <<
"CbmMcbm2018StsPar::GetFebAdcGain => Dpb Index out of bound, "
381 <<
"returning default value!";
394 LOG(warning) <<
"CbmMcbm2018StsPar::GetFebAdcOffset => Feb Index out of bound, "
395 <<
"returning default value!";
400 LOG(warning) <<
"CbmMcbm2018StsPar::GetFebAdcOffset => Crob Index out of bound, "
401 <<
"returning default value!";
406 LOG(warning) <<
"CbmMcbm2018StsPar::GetFebAdcOffset => Dpb Index out of bound, "
407 <<
"returning default value!";
420 LOG(warning) <<
"CbmMcbm2018StsPar::GetFebAdcBase => Feb Index out of bound, "
421 <<
"returning default value!";
426 LOG(warning) <<
"CbmMcbm2018StsPar::GetFebAdcBase => Crob Index out of bound, "
427 <<
"returning default value!";
432 LOG(warning) <<
"CbmMcbm2018StsPar::GetFebAdcBase => Dpb Index out of bound, "
433 <<
"returning default value!";
446 LOG(warning) <<
"CbmMcbm2018StsPar::GetFebAdcThrGain => Feb Index out of bound, "
447 <<
"returning default value!";
452 LOG(warning) <<
"CbmMcbm2018StsPar::GetFebAdcThrGain => Crob Index out of bound, "
453 <<
"returning default value!";
458 LOG(warning) <<
"CbmMcbm2018StsPar::GetFebAdcThrGain => Dpb Index out of bound, "
459 <<
"returning default value!";
472 LOG(warning) <<
"CbmMcbm2018StsPar::GetFebAdcThrOffs => Feb Index out of bound, "
473 <<
"returning default value!";
478 LOG(warning) <<
"CbmMcbm2018StsPar::GetFebAdcThrOffs => Crob Index out of bound, "
479 <<
"returning default value!";
484 LOG(warning) <<
"CbmMcbm2018StsPar::GetFebAdcThrOffs => Dpb Index out of bound, "
485 <<
"returning default value!";
ClassImp(CbmConverterManager)
CbmMcbm2018StsPar(const char *name="CbmMcbm2018StsPar", const char *title="Sts parameters", const char *context="Default")
UInt_t fuNbModules
Variables.
Double_t GetFebAdcGain(UInt_t uDpbIdx, UInt_t uCrobIdx, UInt_t uFebIdx)
UInt_t GetDpbId(UInt_t uDpbIdx)
const UInt_t kuCrobMapElinkFebA[kuNbElinksPerCrob]
Int_t ElinkIdxToFebIdx(UInt_t uElink)
Bool_t CheckModuleIndex(UInt_t uModuleIdx)
Int_t GetFebAdcThrOffs(UInt_t uDpbIdx, UInt_t uCrobIdx, UInt_t uFebIdx)
static const UInt_t kuNbCrobsPerDpb
Constants.
static const UInt_t kuNbElinksPerCrob
Int_t GetFebModuleIdx(UInt_t uDpbIdx, UInt_t uCrobIdx, UInt_t uFebIdx)
Double_t GetModuleCenterPosY(UInt_t uModuleIdx)
Bool_t IsFebActive(UInt_t uFebInSystIdx)
UInt_t GetModuleType(UInt_t uModuleIdx)
Bool_t getParams(FairParamList *)
Double_t GetFebAdcOffset(UInt_t uDpbIdx, UInt_t uCrobIdx, UInt_t uFebIdx)
const UInt_t kuCrobMapElinkFebB[kuNbElinksPerCrob]
Map from eLink index to ASIC index within CROB ( 0 to kuNbFebsPerCrob * kuNbAsicPerFeb )
Bool_t IsCrobActive(UInt_t uDpbIdx, UInt_t uCrobIdx)
static const UInt_t kuNbFebsPerCrob
UInt_t ElinkIdxToAsicIdxFebA(UInt_t uElink)
void putParams(FairParamList *)
UInt_t ElinkIdxToAsicIdxFebB(UInt_t uElink)
Double_t GetFebAdcThrGain(UInt_t uDpbIdx, UInt_t uCrobIdx, UInt_t uFebIdx)
static const Double_t kdStereoAngleTan
Constants assignation.
UInt_t GetModuleAddress(UInt_t uModuleIdx)
Double_t GetFebAdcBase(UInt_t uDpbIdx, UInt_t uCrobIdx, UInt_t uFebIdx)
const Int_t kiCrobMapElinkFebIdx[kuNbElinksPerCrob]
Map from eLink index to ASIC index within CROB ( 0 to kuNbFebsPerCrob * kuNbAsicPerFeb )
Bool_t IsFebPulser(UInt_t uFebInSystIdx)
virtual ~CbmMcbm2018StsPar()
Int_t GetFebModuleSide(UInt_t uDpbIdx, UInt_t uCrobIdx, UInt_t uFebIdx)
Double_t GetModuleCenterPosX(UInt_t uModuleIdx)