11#ifndef CBMMUCHUNPACKPAR_H
12#define CBMMUCHUNPACKPAR_H
14#include "FairParGenericSet.h"
27 CbmMuchUnpackPar(
const char* name =
"CbmMuchUnpackPar",
const char* title =
"Much parameters",
28 const char* context =
"Default");
78 Short_t
GetPadXA(UShort_t febid, UShort_t channelid);
79 Short_t
GetPadYA(UShort_t febid, UShort_t channelid);
80 Short_t
GetPadXB(UShort_t febid, UShort_t channelid);
81 Short_t
GetPadYB(UShort_t febid, UShort_t channelid);
85 Double_t
GetRealX(Int_t Channel, Int_t Sector);
90 Short_t
GetPadXRpc(UShort_t febid, UShort_t channelid);
91 Short_t
GetPadYRpc(UShort_t febid, UShort_t channelid);
95 Bool_t
IsFebActive(UInt_t uDpbIdx, UInt_t uCrobIdx, UInt_t uFebIdx);
97 Bool_t
IsFebPulser(UInt_t uDpbIdx, UInt_t uCrobIdx, UInt_t uFebIdx);
98 Double_t
GetFebAdcGain(UInt_t uDpbIdx, UInt_t uCrobIdx, UInt_t uFebIdx);
110 const Int_t
kiCrobMapElinkFebIdx[
kuNbElinksPerCrob] = {0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4,
111 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8};
static constexpr UInt_t GetNbAsicsPerCrob()
UInt_t GetNrOfFebsInRpc()
Double_t GetFebAdcOffset(UInt_t uDpbIdx, UInt_t uCrobIdx, UInt_t uFebIdx)
Short_t GetPadXA(UShort_t febid, UShort_t channelid)
static const UInt_t kuNbAsicsPerFeb
static const UInt_t kuNbFebsPerCrob
void putParams(FairParamList *)
Short_t GetPadYA(UShort_t febid, UShort_t channelid)
Short_t GetPadXB(UShort_t febid, UShort_t channelid)
UInt_t fuNrOfDpbs
Map from eLink index to ASIC index within CROB ( 0 to kuNbFebsPerCrob * kuNbAsicPerFeb )
Short_t GetPadYRpc(UShort_t febid, UShort_t channelid)
static const UInt_t kuNbCrobsPerDpb
Constants.
TArrayI fChannelsToPadXRpc
TArrayI fnFebsIdsArrayGemA
Short_t GetPadYB(UShort_t febid, UShort_t channelid)
static constexpr UInt_t GetNbChanPerFeb()
UInt_t GetNrOfFebsInGemB()
Int_t ElinkIdxToFebIdx(UInt_t uElink)
Convert from eLink index to FEB Connection ( 0 to kuNbFebsPerCrob)
static const UInt_t kuNbChanPerAsic
Bool_t IsFebPulser(UInt_t uDpbIdx, UInt_t uCrobIdx, UInt_t uFebIdx)
Bool_t getParams(FairParamList *)
static constexpr UInt_t GetNbFebsPerCrob()
static constexpr UInt_t GetNbCrobsPerDpb()
virtual ~CbmMuchUnpackPar()
static constexpr UInt_t GetNbAsicsPerDpb()
Short_t GetPadXRpc(UShort_t febid, UShort_t channelid)
ClassDef(CbmMuchUnpackPar, 1)
static constexpr UInt_t GetNbAsicsPerFeb()
const Int_t kiCrobMapElinkFebIdx[kuNbElinksPerCrob]
static constexpr UInt_t GetNbElinkPerDpb()
UInt_t GetNrOfFebsInGemA()
TArrayI fChannelsToPadYRpc
Double_t GetRealPadSize(Int_t)
Bool_t IsFebActive(UInt_t uFebInSystIdx)
TArrayI fnFebsIdsArrayRpc
static const UInt_t kuNbElinksPerCrob
static constexpr UInt_t GetNbFebsPerDpb()
CbmMuchUnpackPar(const char *name="CbmMuchUnpackPar", const char *title="Much parameters", const char *context="Default")
TArrayI fnFebsIdsArrayGemB
static constexpr UInt_t GetNbElinkPerCrob()
Bool_t IsCrobActive(UInt_t uDpbIdx, UInt_t uCrobIdx)
Bool_t IsFebPulser(UInt_t uFebInSystIdx)
static constexpr UInt_t GetNbChanPerAsic()
UInt_t GetDpbId(UInt_t uDpbIdx)
Double_t GetFebAdcGain(UInt_t uDpbIdx, UInt_t uCrobIdx, UInt_t uFebIdx)