Go to the documentation of this file.
10 #include "FairDetParIo.h"
11 #include "FairLogger.h"
12 #include "FairParIo.h"
13 #include "FairParamList.h"
21 : FairParGenericSet(name, title, context)
22 , fvdPadiThrCodeToValue(GetNrOfPadiThrCodes(), 0.0)
24 , fiDebugMonitorMode(0)
34 , fdStarTriggAllowedSpread(0.0)
35 , fdStarTriggerDeadtime()
36 , fdStarTriggerDelay()
37 , fdStarTriggerWinSize() {
51 for (UInt_t uStep = 1; uStep < uNbSteps; ++uStep) {
99 LOG(info) <<
"CbmStar2019TofPar::getParams";
101 if (!l)
return kFALSE;
107 if (!l->fill(
"NrOfGdpbs", &
fiNrOfGdpb))
return kFALSE;
112 if (!l->fill(
"NrOfGbtx", &
fiNrOfGbtx))
return kFALSE;
114 if (!l->fill(
"NrOfModule", &
fiNrOfModule))
return kFALSE;
117 if (!l->fill(
"NrOfRpc", &
fiNrOfRpc))
return kFALSE;
120 if (!l->fill(
"RpcType", &
fiRpcType))
return kFALSE;
123 if (!l->fill(
"RpcSide", &
fiRpcSide))
return kFALSE;
126 if (!l->fill(
"ModuleId", &
fiModuleId))
return kFALSE;
128 if (!l->fill(
"SizeMsInNs", &
fdSizeMsInNs))
return kFALSE;
140 LOG(info) <<
"CbmStar2019TofPar::getParams DONE!";
151 <<
"CbmStar2019TofPar::Get4ChanToPadiChan => Index out of bound, "
153 <<
", returning crazy value!";
162 <<
"CbmStar2019TofPar::PadiChanToGet4Chan => Index out of bound, "
164 <<
", returning crazy value!";
176 LOG(fatal) <<
"CbmStar2019TofPar::ElinkIdxToGet4Idx => Index out of bound, "
178 <<
", returning crazy value!";
189 LOG(fatal) <<
"CbmStar2019TofPar::Get4IdxToElinkIdx => Index out of bound, "
191 <<
", returning crazy value!";
201 <<
"CbmStar2019TofPar::GetPadiThresholdVal => Code out of bound, "
212 LOG(fatal) <<
"CbmStar2019TofPar::GetNrOfRpc => Index out of bound, "
213 << uGbtx <<
" vs " <<
fiNrOfGbtx <<
", returning crazy value!";
222 LOG(fatal) <<
"CbmStar2019TofPar::GetRpcType => Index out of bound, "
223 << uGbtx <<
" vs " <<
fiNrOfGbtx <<
", returning crazy value!";
232 LOG(fatal) <<
"CbmStar2019TofPar::GetRpcSide => Index out of bound, "
233 << uGbtx <<
" vs " <<
fiNrOfGbtx <<
", returning crazy value!";
242 LOG(fatal) <<
"CbmStar2019TofPar::GetModuleId => Index out of bound, "
243 << uGbtx <<
" vs " <<
fiNrOfGbtx <<
", returning crazy value!";
254 <<
"CbmStar2019TofPar::GetStarTriggDeadtime => Index out of bound, "
255 << uGdpb <<
" vs " <<
fiNrOfGdpb <<
", returning crazy value!";
264 LOG(fatal) <<
"CbmStar2019TofPar::GetStarTriggDelay => Index out of bound, "
265 << uGdpb <<
" vs " <<
fiNrOfGdpb <<
", returning crazy value!";
275 <<
"CbmStar2019TofPar::GetStarTriggWinSize => Index out of bound, "
276 << uGdpb <<
" vs " <<
fiNrOfGdpb <<
", returning crazy value!";
static constexpr UInt_t GetNrOfGet4PerGdpb()
Int_t GetNrOfRpc(UInt_t uGbtx)
void putParams(FairParamList *)
std::vector< Double_t > fvdPadiThrCodeToValue
CbmStar2019TofPar(const char *name="CbmStar2019TofPar", const char *title="Tof unpacker parameters", const char *context="Default")
TArrayD fdStarTriggerWinSize
Bool_t getParams(FairParamList *)
static constexpr UInt_t GetNrOfPadiThrCodes()
static constexpr UInt_t GetNrOfChannelsPerFee()
Int_t PadiChanToGet4Chan(UInt_t uChannelInFee)
Int_t ElinkIdxToGet4Idx(UInt_t uElink)
static const uint32_t kuNbThrMeasPoints
Int_t Get4ChanToPadiChan(UInt_t uChannelInFee)
const UInt_t kuElinkToGet4[kuNbGet4PerGbtx]
Map from PADI channel to GET4 channel.
Double_t GetStarTriggDelay(UInt_t uGdpb)
virtual ~CbmStar2019TofPar()
Int_t Get4IdxToElinkIdx(UInt_t uGet4)
Int_t GetModuleId(UInt_t uGbtx)
const uint32_t kuChipIdMergedEpoch
Double_t fdStarTriggAllowedSpread
ClassImp(CbmConverterManager) InitStatus CbmConverterManager
Double_t GetStarTriggWinSize(UInt_t uGdpb)
Int_t GetRpcType(UInt_t uGbtx)
const UInt_t kuGet4topadi[kuNbChannelsPerFee]
Mapping in Readout chain PCBs.
const UInt_t kuPaditoget4[kuNbChannelsPerFee]
Map from GET4 channel to PADI channel.
const UInt_t kuThrMeasCode[kuNbThrMeasPoints]
static const uint32_t kuNbGet4PerGbtx
Double_t GetStarTriggDeadtime(UInt_t uGdpb)
const UInt_t kuGet4ToElink[kuNbGet4PerGbtx]
const Double_t kdThrMeasVal[kuNbThrMeasPoints]
Double_t GetPadiThresholdVal(UInt_t uCode)
Int_t GetRpcSide(UInt_t uGbtx)
Int_t fiMonitorMode
Variables.
TArrayD fdStarTriggerDelay
TArrayD fdStarTriggerDeadtime