10#ifndef CBMMCBM2018TOFPAR_H
11#define CBMMCBM2018TOFPAR_H
13#include "FairParGenericSet.h"
25 CbmMcbm2018TofPar(
const char* name =
"CbmMcbm2018TofPar",
const char* title =
"Tof unpacker parameters",
26 const char* context =
"Default");
87 inline bool CheckBmonComp(uint32_t uCompId) {
return ((uCompId & 0xFFF0) == 0xABF0); }
88 inline bool CheckInnerComp(uint32_t uCompId) {
return ((uCompId & 0xFFF0) == 0xBBC0); }
118 3, 2, 1, 0, 7, 6, 5, 4, 11, 10, 9, 8, 15, 14, 13, 12,
119 19, 18, 17, 16, 23, 22, 21, 20, 27, 26, 25, 24, 31, 30, 29, 28};
122 3, 2, 1, 0, 7, 6, 5, 4, 11, 10, 9, 8, 15, 14, 13, 12,
123 19, 18, 17, 16, 23, 22, 21, 20, 27, 26, 25, 24, 31, 30, 29, 28};
124 const UInt_t
kuElinkToGet4[
kuNbGet4PerGbtx] = {27, 2, 7, 3, 31, 26, 30, 1, 33, 37, 32, 13, 9, 14,
125 10, 15, 17, 21, 16, 35, 34, 38, 25, 24, 0, 6, 20, 23,
126 18, 22, 28, 4, 29, 5, 19, 36, 39, 8, 12, 11};
127 const UInt_t
kuGet4ToElink[
kuNbGet4PerGbtx] = {24, 7, 1, 3, 31, 33, 25, 2, 37, 12, 14, 39, 38, 11,
128 13, 15, 18, 16, 28, 34, 26, 17, 29, 27, 23, 22, 5, 0,
129 30, 32, 6, 4, 10, 8, 20, 19, 35, 9, 21, 36};
131 const UInt_t
kuElinkToGet4A[
kuNbGet4PerGbtx] = {0, 16, 8, 17, 1, 18, 9, 19, 2, 20, 10, 21, 3, 22,
132 11, 23, 4, 24, 12, 25, 5, 26, 13, 27, 6, 28, 14, 29,
133 7, 30, 15, 31, 32, 33, 34, 35, 36, 37, 38, 39};
134 const UInt_t
kuGet4ToElinkA[
kuNbGet4PerGbtx] = {0, 4, 8, 12, 16, 20, 24, 28, 2, 6, 10, 14, 18, 22,
135 26, 30, 1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23,
136 25, 27, 29, 31, 32, 33, 34, 35, 36, 37, 38, 39};
141 0x000, 0x010, 0x020, 0x030, 0x040, 0x050, 0x060, 0x070, 0x080, 0x090, 0x0A0, 0x0B0, 0x0C0,
142 0x0D0, 0x0E0, 0x0F0, 0x100, 0x110, 0x120, 0x130, 0x140, 0x150, 0x160, 0x170, 0x180, 0x190,
143 0x1A0, 0x1B0, 0x1C0, 0x1D0, 0x1E0, 0x1F0, 0x200, 0x210, 0x220, 0x230, 0x240, 0x250, 0x260,
144 0x270, 0x280, 0x290, 0x2A0, 0x2B0, 0x2C0, 0x2D0, 0x2E0, 0x2F0, 0x300, 0x310, 0x320, 0x330,
145 0x340, 0x350, 0x360, 0x370, 0x380, 0x390, 0x3A0, 0x3B0, 0x3C0, 0x3D0, 0x3E0, 0x3F0, 0x3FF};
147 -652.6, -631.2, -611.4, -590.6, -570.9, -550.0, -529.9, -509.4, -490.6, -469.5, -449.3, -428.5, -408.5,
148 -388.2, -367.8, -347.2, -329.2, -308.2, -287.5, -266.8, -246.9, -226.0, -205.6, -185.0, -165.7, -144.9,
149 -124.4, -103.8, -83.4, -62.9, -42.4, -21.2, -5.3, 15.5, 36.2, 56.8, 77.3, 97.8, 118.4,
150 139.1, 158.7, 179.2, 199.7, 220.2, 240.8, 261.1, 281.7, 302.2, 321.3, 341.4, 362.0, 382.2,
151 402.9, 422.8, 443.4, 463.7, 483.7, 503.7, 524.1, 544.3, 565.0, 585.0, 605.5, 626.0, 646.1};
188 CbmMcbm2018BmonPar(
const char* name =
"CbmMcbm2018BmonPar",
const char* title =
"Bmon unpacker parameters",
189 const char* context =
"Default")
ClassDef(CbmMcbm2018BmonPar, 1)
CbmMcbm2018BmonPar(const char *name="CbmMcbm2018BmonPar", const char *title="Bmon unpacker parameters", const char *context="Default")
static constexpr UInt_t GetNrOfFeePerGdpb()
Int_t GetModuleId(Int_t i)
const UInt_t kuPaditoget4[kuNbChannelsPerFee]
Map from GET4 channel to PADI channel.
void BuildChannelsUidMapCera(UInt_t &uCh, UInt_t uGbtx)
static constexpr UInt_t GetNbByteMessage()
static const uint32_t kuNbGet4PerGbtx
std::vector< Int_t > GetRpcChUidMap()
void BuildChannelsUidMapBuc(UInt_t &uCh, UInt_t uGbtx)
Int_t Get4IdxToElinkIdxA(UInt_t uGet4)
static constexpr UInt_t GetNrOfGet4PerGdpb()
void putParams(FairParamList *)
ClassDef(CbmMcbm2018TofPar, 1)
void BuildChannelsUidMapBmon_2022(UInt_t &uCh, UInt_t uGbtx)
static constexpr UInt_t GetNrOfChannelsPerGbtx()
static constexpr UInt_t GetNrOfFeePerGbtx()
Int_t GetRpcSide(Int_t i)
Int_t GetNrOfGdpbs()
FIXME: replace with method returning the correspondign constants! see Star2019 parameter.
static const uint32_t kuNbGbtxPerGdpb
Double_t GetStarTriggWinSize(Int_t gdpb)
Int_t GetNrOfRpc(Int_t i)
Int_t GetNrOfGet4PerFee()
static const uint32_t kuNbGet4PerGdpb
TArrayD fdStarTriggerDelay
static const uint32_t kuBytesPerMessage
CbmMcbm2018TofPar(const char *name="CbmMcbm2018TofPar", const char *title="Tof unpacker parameters", const char *context="Default")
std::vector< Int_t > fviRpcChUId
Double_t GetStarTriggDelay(Int_t gdpb)
const UInt_t kuElinkToGet4[kuNbGet4PerGbtx]
Map from PADI channel to GET4 channel.
Double_t GetStarTriggDeadtime(Int_t gdpb)
static const uint32_t kuNbPadiThrCodes
PADI threshold measures and extrapolated code to value map.
void BuildChannelsUidMapBmon(UInt_t &uCh, UInt_t uGbtx)
const UInt_t kuThrMeasCode[kuNbThrMeasPoints]
Int_t Get4IdxToElinkIdx(UInt_t uGet4)
Bool_t getParams(FairParamList *)
void BuildChannelsUidMap()
const UInt_t kuGet4ToElink[kuNbGet4PerGbtx]
Int_t GetNrOfFeesPerGdpb()
const UInt_t kuElinkToGet4A[kuNbGet4PerGbtx]
void BuildChannelsUidMapStar2A(UInt_t &uCh, UInt_t uGbtx)
const UInt_t kuGet4ToElinkA[kuNbGet4PerGbtx]
void BuildChannelsUidMapStar(UInt_t &uCh, UInt_t uGbtx)
Double_t GetTsDeadtimePeriod()
UInt_t GetNumberOfChannels()
virtual ~CbmMcbm2018TofPar()
Double_t fdTsDeadtimePeriod
Double_t GetPadiThresholdVal(UInt_t uCode)
std::vector< Double_t > fvdPadiThrCodeToValue
const Double_t kdThrMeasVal[kuNbThrMeasPoints]
void BuildChannelsUidMapCbm(UInt_t &uCh, UInt_t uGbtx)
static const uint32_t kuNbThrMeasPoints
Int_t Get4ChanToPadiChan(UInt_t uChannelInFee)
static constexpr UInt_t GetNrOfGet4PerGbtx()
void BuildChannelsUidMapCern(UInt_t &uCh, UInt_t uGbtx)
bool CheckInnerComp(uint32_t uCompId)
Int_t GetRpcType(Int_t i)
static const uint32_t kuNbFeePerGbtx
static constexpr UInt_t GetNrOfChannelsPerGdpb()
static const uint32_t kuNbFeePerGdpb
Int_t PadiChanToGet4Chan(UInt_t uChannelInFee)
void BuildChannelsUidMapStar2(UInt_t &uCh, UInt_t uGbtx)
static const uint32_t kuNbGet4PerFee
static const uint32_t kuNbChannelsPerGbtx
static constexpr UInt_t GetNrOfGbtxPerGdpb()
Int_t GetNrOfChannelsPerGet4()
static const uint32_t kuNbChannelsPerFee
TArrayD fdStarTriggerDeadtime
Int_t ElinkIdxToGet4Idx(UInt_t uElink)
static constexpr UInt_t GetNrOfPadiThrCodes()
Int_t ElinkIdxToGet4IdxA(UInt_t uElink)
Int_t fiNrOfChannelsPerGet4
TArrayD fdStarTriggerWinSize
static const uint32_t kuNbChannelsPerGdpb
bool CheckBmonComp(uint32_t uCompId)
const UInt_t kuGet4topadi[kuNbChannelsPerFee]
Mapping in Readout chain PCBs.
static constexpr UInt_t GetNrOfChannelsPerFee()
static const uint32_t kuNbChannelsPerGet4
Readout chain.