12#include "FairDetParIo.h"
14#include "FairParamList.h"
23 : FairParGenericSet(name, title, context)
24 , fvdPadiThrCodeToValue(GetNrOfPadiThrCodes(), 0.0)
26 , fiDebugMonitorMode(0)
36 , fdStarTriggAllowedSpread(0.0)
37 , fdStarTriggerDeadtime()
38 , fdStarTriggerDelay()
39 , fdStarTriggerWinSize()
52 for (UInt_t uStep = 1; uStep < uNbSteps; ++uStep) {
102 LOG(info) <<
"CbmStar2019TofPar::getParams";
104 if (!l)
return kFALSE;
110 if (!l->fill(
"NrOfGdpbs", &
fiNrOfGdpb))
return kFALSE;
115 if (!l->fill(
"NrOfGbtx", &
fiNrOfGbtx))
return kFALSE;
117 if (!l->fill(
"NrOfModule", &
fiNrOfModule))
return kFALSE;
120 if (!l->fill(
"NrOfRpc", &
fiNrOfRpc))
return kFALSE;
123 if (!l->fill(
"RpcType", &
fiRpcType))
return kFALSE;
126 if (!l->fill(
"RpcSide", &
fiRpcSide))
return kFALSE;
129 if (!l->fill(
"ModuleId", &
fiModuleId))
return kFALSE;
131 if (!l->fill(
"SizeMsInNs", &
fdSizeMsInNs))
return kFALSE;
142 LOG(info) <<
"CbmStar2019TofPar::getParams DONE!";
152 LOG(fatal) <<
"CbmStar2019TofPar::Get4ChanToPadiChan => Index out of bound, " << uChannelInFee <<
" vs "
161 LOG(fatal) <<
"CbmStar2019TofPar::PadiChanToGet4Chan => Index out of bound, " << uChannelInFee <<
" vs "
173 LOG(fatal) <<
"CbmStar2019TofPar::ElinkIdxToGet4Idx => Index out of bound, " << uElink <<
" vs "
184 LOG(fatal) <<
"CbmStar2019TofPar::Get4IdxToElinkIdx => Index out of bound, " << uGet4 <<
" vs "
194 LOG(error) <<
"CbmStar2019TofPar::GetPadiThresholdVal => Code out of bound, " << uCode <<
" vs "
205 LOG(fatal) <<
"CbmStar2019TofPar::GetNrOfRpc => Index out of bound, " << uGbtx <<
" vs " <<
fiNrOfGbtx
206 <<
", returning crazy value!";
215 LOG(fatal) <<
"CbmStar2019TofPar::GetRpcType => Index out of bound, " << uGbtx <<
" vs " <<
fiNrOfGbtx
216 <<
", returning crazy value!";
225 LOG(fatal) <<
"CbmStar2019TofPar::GetRpcSide => Index out of bound, " << uGbtx <<
" vs " <<
fiNrOfGbtx
226 <<
", returning crazy value!";
235 LOG(fatal) <<
"CbmStar2019TofPar::GetModuleId => Index out of bound, " << uGbtx <<
" vs " <<
fiNrOfGbtx
236 <<
", returning crazy value!";
246 LOG(fatal) <<
"CbmStar2019TofPar::GetStarTriggDeadtime => Index out of bound, " << uGdpb <<
" vs " <<
fiNrOfGdpb
247 <<
", returning crazy value!";
256 LOG(fatal) <<
"CbmStar2019TofPar::GetStarTriggDelay => Index out of bound, " << uGdpb <<
" vs " <<
fiNrOfGdpb
257 <<
", returning crazy value!";
266 LOG(fatal) <<
"CbmStar2019TofPar::GetStarTriggWinSize => Index out of bound, " << uGdpb <<
" vs " <<
fiNrOfGdpb
267 <<
", returning crazy value!";
ClassImp(CbmConverterManager)
TArrayD fdStarTriggerDelay
Int_t GetRpcType(UInt_t uGbtx)
static constexpr UInt_t GetNrOfChannelsPerFee()
static constexpr UInt_t GetNrOfGet4PerGdpb()
const UInt_t kuGet4topadi[kuNbChannelsPerFee]
Mapping in Readout chain PCBs.
Int_t GetModuleId(UInt_t uGbtx)
Int_t GetNrOfRpc(UInt_t uGbtx)
Bool_t getParams(FairParamList *)
static const uint32_t kuNbGet4PerGbtx
void putParams(FairParamList *)
Double_t GetStarTriggDeadtime(UInt_t uGdpb)
CbmStar2019TofPar(const char *name="CbmStar2019TofPar", const char *title="Tof unpacker parameters", const char *context="Default")
Double_t GetStarTriggWinSize(UInt_t uGdpb)
Int_t ElinkIdxToGet4Idx(UInt_t uElink)
Int_t fiMonitorMode
Variables.
const UInt_t kuGet4ToElink[kuNbGet4PerGbtx]
Int_t PadiChanToGet4Chan(UInt_t uChannelInFee)
TArrayD fdStarTriggerWinSize
const UInt_t kuPaditoget4[kuNbChannelsPerFee]
Map from GET4 channel to PADI channel.
const Double_t kdThrMeasVal[kuNbThrMeasPoints]
static const uint32_t kuNbThrMeasPoints
Int_t Get4IdxToElinkIdx(UInt_t uGet4)
const UInt_t kuElinkToGet4[kuNbGet4PerGbtx]
Map from PADI channel to GET4 channel.
Int_t Get4ChanToPadiChan(UInt_t uChannelInFee)
Double_t fdStarTriggAllowedSpread
virtual ~CbmStar2019TofPar()
static constexpr UInt_t GetNrOfPadiThrCodes()
Int_t GetRpcSide(UInt_t uGbtx)
Double_t GetPadiThresholdVal(UInt_t uCode)
const UInt_t kuThrMeasCode[kuNbThrMeasPoints]
Double_t GetStarTriggDelay(UInt_t uGdpb)
TArrayD fdStarTriggerDeadtime
std::vector< Double_t > fvdPadiThrCodeToValue
const uint32_t kuChipIdMergedEpoch