Go to the documentation of this file.
8 #include "FairDetParIo.h"
9 #include "FairLogger.h"
10 #include "FairParIo.h"
11 #include "FairParamList.h"
20 TMath::Tan(kdStereoAngle * TMath::DegToRad());
26 : FairParGenericSet(name, title, context)
84 if (!l)
return kFALSE;
86 if (!l->fill(
"NbModules", &
fuNbModules))
return kFALSE;
92 if (!l->fill(
"ModuleType", &
fiModuleType))
return kFALSE;
93 if (!l->fill(
"ModAddress", &
fiModAddress))
return kFALSE;
97 if (!l->fill(
"NrOfDpbs", &
fuNrOfDpbs))
return kFALSE;
100 if (!l->fill(
"DbpIdArray", &
fiDbpIdArray))
return kFALSE;
113 if (!l->fill(
"FebAdcGain", &
fdFebAdcGain))
return kFALSE;
114 if (!l->fill(
"FebAdcBase", &
fdFebAdcBase))
return kFALSE;
130 <<
"CbmMcbm2018StsPar::ElinkIdxToFebIdx => Index out of bound, "
131 <<
"returning crazy value!";
141 <<
"CbmMcbm2018StsPar::ElinkIdxToAsicIdxFebA => Index out of bound, "
142 <<
"returning crazy value!";
151 <<
"CbmMcbm2018StsPar::ElinkIdxToAsicIdxFebB => Index out of bound, "
152 <<
"returning crazy value!";
162 <<
"CbmMcbm2018StsPar::CheckModuleIndex => Index out of bound!";
170 LOG(warning) <<
"CbmMcbm2018StsPar::GetModuleType => Index out of bound, "
171 <<
"returning crazy value!";
180 <<
"CbmMcbm2018StsPar::GetModuleAddress => Index out of bound, "
181 <<
"returning crazy value!";
190 <<
"CbmMcbm2018StsPar::GetModuleCenterPosX => Index out of bound, "
191 <<
"returning crazy value!";
200 <<
"CbmMcbm2018StsPar::GetModuleCenterPosY => Index out of bound, "
201 <<
"returning crazy value!";
210 LOG(warning) <<
"CbmMcbm2018StsPar::GetDpbId => Index out of bound, "
211 <<
"returning crazy value!";
223 <<
"CbmMcbm2018StsPar::IsCrobActive => Crob Index out of bound, "
224 <<
"returning default inactive!";
230 <<
"CbmMcbm2018StsPar::IsCrobActive => Dpb Index out of bound, "
231 <<
"returning default inactive!";
241 LOG(warning) <<
"CbmMcbm2018StsPar::IsFebActive => Feb Index out of bound, "
242 <<
"returning default inactive!";
258 <<
"CbmMcbm2018StsPar::IsFebActive => Feb Index out of bound, "
259 <<
"returning default inactive!";
265 <<
"CbmMcbm2018StsPar::IsFebActive => Crob Index out of bound, "
266 <<
"returning default inactive!";
271 LOG(warning) <<
"CbmMcbm2018StsPar::IsFebActive => Dpb Index out of bound, "
272 <<
"returning default inactive!";
288 <<
"CbmMcbm2018StsPar::GetFebModuleIdx => Feb Index out of bound, "
289 <<
"returning default inactive!";
295 <<
"CbmMcbm2018StsPar::GetFebModuleIdx => Crob Index out of bound, "
296 <<
"returning default inactive!";
302 <<
"CbmMcbm2018StsPar::GetFebModuleIdx => Dpb Index out of bound, "
303 <<
"returning default inactive!";
319 <<
"CbmMcbm2018StsPar::GetFebModuleSide => Feb Index out of bound, "
320 <<
"returning default inactive!";
326 <<
"CbmMcbm2018StsPar::GetFebModuleSide => Crob Index out of bound, "
327 <<
"returning default inactive!";
333 <<
"CbmMcbm2018StsPar::GetFebModuleSide => Dpb Index out of bound, "
334 <<
"returning default inactive!";
350 <<
"CbmMcbm2018StsPar::GetFebAdcGain => Feb Index out of bound, "
351 <<
"returning default value!";
357 <<
"CbmMcbm2018StsPar::GetFebAdcGain => Crob Index out of bound, "
358 <<
"returning default value!";
364 <<
"CbmMcbm2018StsPar::GetFebAdcGain => Dpb Index out of bound, "
365 <<
"returning default value!";
382 <<
"CbmMcbm2018StsPar::GetFebAdcOffset => Feb Index out of bound, "
383 <<
"returning default value!";
389 <<
"CbmMcbm2018StsPar::GetFebAdcOffset => Crob Index out of bound, "
390 <<
"returning default value!";
396 <<
"CbmMcbm2018StsPar::GetFebAdcOffset => Dpb Index out of bound, "
397 <<
"returning default value!";
413 <<
"CbmMcbm2018StsPar::GetFebAdcBase => Feb Index out of bound, "
414 <<
"returning default value!";
420 <<
"CbmMcbm2018StsPar::GetFebAdcBase => Crob Index out of bound, "
421 <<
"returning default value!";
427 <<
"CbmMcbm2018StsPar::GetFebAdcBase => Dpb Index out of bound, "
428 <<
"returning default value!";
444 <<
"CbmMcbm2018StsPar::GetFebAdcThrGain => Feb Index out of bound, "
445 <<
"returning default value!";
451 <<
"CbmMcbm2018StsPar::GetFebAdcThrGain => Crob Index out of bound, "
452 <<
"returning default value!";
458 <<
"CbmMcbm2018StsPar::GetFebAdcThrGain => Dpb Index out of bound, "
459 <<
"returning default value!";
475 <<
"CbmMcbm2018StsPar::GetFebAdcThrOffs => Feb Index out of bound, "
476 <<
"returning default value!";
482 <<
"CbmMcbm2018StsPar::GetFebAdcThrOffs => Crob Index out of bound, "
483 <<
"returning default value!";
489 <<
"CbmMcbm2018StsPar::GetFebAdcThrOffs => Dpb Index out of bound, "
490 <<
"returning default value!";
const UInt_t kuCrobMapElinkFebA[kuNbElinksPerCrob]
UInt_t ElinkIdxToAsicIdxFebA(UInt_t uElink)
UInt_t GetModuleAddress(UInt_t uModuleIdx)
Bool_t IsFebActive(UInt_t uFebInSystIdx)
Int_t GetFebAdcThrOffs(UInt_t uDpbIdx, UInt_t uCrobIdx, UInt_t uFebIdx)
static const UInt_t kuNbCrobsPerDpb
Constants.
Int_t GetFebModuleSide(UInt_t uDpbIdx, UInt_t uCrobIdx, UInt_t uFebIdx)
UInt_t GetModuleType(UInt_t uModuleIdx)
UInt_t ElinkIdxToAsicIdxFebB(UInt_t uElink)
UInt_t GetDpbId(UInt_t uDpbIdx)
Bool_t IsCrobActive(UInt_t uDpbIdx, UInt_t uCrobIdx)
Double_t GetFebAdcThrGain(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 )
Double_t GetFebAdcBase(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 )
virtual ~CbmMcbm2018StsPar()
Double_t GetFebAdcOffset(UInt_t uDpbIdx, UInt_t uCrobIdx, UInt_t uFebIdx)
static const Double_t kdStereoAngleTan
Constants assignation.
ClassImp(CbmConverterManager) InitStatus CbmConverterManager
Double_t GetModuleCenterPosX(UInt_t uModuleIdx)
Int_t GetFebModuleIdx(UInt_t uDpbIdx, UInt_t uCrobIdx, UInt_t uFebIdx)
Double_t GetFebAdcGain(UInt_t uDpbIdx, UInt_t uCrobIdx, UInt_t uFebIdx)
Bool_t getParams(FairParamList *)
CbmMcbm2018StsPar(const char *name="CbmMcbm2018StsPar", const char *title="Sts parameters", const char *context="Default")
Bool_t CheckModuleIndex(UInt_t uModuleIdx)
Int_t ElinkIdxToFebIdx(UInt_t uElink)
Double_t GetModuleCenterPosY(UInt_t uModuleIdx)
static const UInt_t kuNbFebsPerCrob
UInt_t fuNbModules
Variables.
void putParams(FairParamList *)
static const UInt_t kuNbElinksPerCrob