CbmRoot
Loading...
Searching...
No Matches
CbmStar2019TofPar Class Reference

#include <CbmStar2019TofPar.h>

Inheritance diagram for CbmStar2019TofPar:
[legend]
Collaboration diagram for CbmStar2019TofPar:
[legend]

Public Member Functions

 CbmStar2019TofPar (const char *name="CbmStar2019TofPar", const char *title="Tof unpacker parameters", const char *context="Default")
 
virtual ~CbmStar2019TofPar ()
 
virtual void clear ()
 
void putParams (FairParamList *)
 
Bool_t getParams (FairParamList *)
 
Int_t GetNrOfGdpbs ()
 
Int_t GetGdpbId (Int_t i)
 
UInt_t GetNumberOfChannels ()
 
Int_t Get4ChanToPadiChan (UInt_t uChannelInFee)
 
Int_t PadiChanToGet4Chan (UInt_t uChannelInFee)
 
Int_t ElinkIdxToGet4Idx (UInt_t uElink)
 
Int_t Get4IdxToElinkIdx (UInt_t uGet4)
 
Double_t GetPadiThresholdVal (UInt_t uCode)
 
Bool_t GetMonitorMode ()
 
Bool_t GetDebugMonitorMode ()
 
Int_t GetNrOfGbtx ()
 
Int_t GetNrOfModules ()
 
Int_t GetNrOfRpc (UInt_t uGbtx)
 
Int_t GetRpcType (UInt_t uGbtx)
 
Int_t GetRpcSide (UInt_t uGbtx)
 
Int_t GetModuleId (UInt_t uGbtx)
 
Double_t GetSizeMsInNs ()
 
Double_t GetStarTriggAllowedSpread ()
 
Double_t GetStarTriggDeadtime (UInt_t uGdpb)
 
Double_t GetStarTriggDelay (UInt_t uGdpb)
 
Double_t GetStarTriggWinSize (UInt_t uGdpb)
 

Static Public Member Functions

static constexpr UInt_t GetNbByteMessage ()
 
static constexpr UInt_t GetNrOfChannelsPerGet4 ()
 
static constexpr UInt_t GetNrOfGet4PerFee ()
 
static constexpr UInt_t GetNrOfFeePerGbtx ()
 
static constexpr UInt_t GetNrOfGbtxPerGdpb ()
 
static constexpr UInt_t GetNrOfChannelsPerFee ()
 
static constexpr UInt_t GetNrOfChannelsPerGbtx ()
 
static constexpr UInt_t GetNrOfChannelsPerGdpb ()
 
static constexpr UInt_t GetNrOfGet4PerGbtx ()
 
static constexpr UInt_t GetNrOfGet4PerGdpb ()
 
static constexpr UInt_t GetNrOfFeePerGdpb ()
 
static constexpr UInt_t GetGdpbToSectorOffset ()
 
static constexpr UInt_t GetNrOfPadiThrCodes ()
 

Private Member Functions

 ClassDef (CbmStar2019TofPar, 1)
 

Private Attributes

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 kuElinkToGet4 [kuNbGet4PerGbtx]
 Map from PADI channel to GET4 channel.
 
const UInt_t kuGet4ToElink [kuNbGet4PerGbtx]
 
const UInt_t kuThrMeasCode [kuNbThrMeasPoints]
 
const Double_t kdThrMeasVal [kuNbThrMeasPoints]
 
std::vector< Double_t > fvdPadiThrCodeToValue
 
Int_t fiMonitorMode
 Variables.
 
Int_t fiDebugMonitorMode
 
Int_t fiNrOfGdpb
 
TArrayI fiGdpbIdArray
 
Int_t fiNrOfGbtx
 
Int_t fiNrOfModule
 
TArrayI fiNrOfRpc
 
TArrayI fiRpcType
 
TArrayI fiRpcSide
 
TArrayI fiModuleId
 
Double_t fdSizeMsInNs
 
Double_t fdStarTriggAllowedSpread
 
TArrayD fdStarTriggerDeadtime
 
TArrayD fdStarTriggerDelay
 
TArrayD fdStarTriggerWinSize
 

Static Private Attributes

static const uint32_t kuBytesPerMessage = 8
 
static const uint32_t kuNbChannelsPerGet4 = 4
 Readout chain.
 
static const uint32_t kuNbGet4PerFee = 8
 
static const uint32_t kuNbFeePerGbtx = 5
 
static const uint32_t kuNbGbtxPerGdpb = 6
 
static const uint32_t kuNbChannelsPerFee = kuNbChannelsPerGet4 * kuNbGet4PerFee
 
static const uint32_t kuNbChannelsPerGbtx = kuNbChannelsPerFee * kuNbFeePerGbtx
 
static const uint32_t kuNbChannelsPerGdpb = kuNbChannelsPerGbtx * kuNbGbtxPerGdpb
 
static const uint32_t kuNbGet4PerGbtx = kuNbGet4PerFee * kuNbFeePerGbtx
 
static const uint32_t kuNbGet4PerGdpb = kuNbGet4PerGbtx * kuNbGbtxPerGdpb
 
static const uint32_t kuNbFeePerGdpb = kuNbFeePerGbtx * kuNbGbtxPerGdpb
 
static const uint32_t kuGdpbToSectorOffset = 13
 Mapping in STAR.
 
static const uint32_t kuNbPadiThrCodes = 1024
 PADI threshold measures and extrapolated code to value map.
 
static const uint32_t kuNbThrMeasPoints = 65
 

Detailed Description

Definition at line 22 of file CbmStar2019TofPar.h.

Constructor & Destructor Documentation

◆ CbmStar2019TofPar()

CbmStar2019TofPar::CbmStar2019TofPar ( const char * name = "CbmStar2019TofPar",
const char * title = "Tof unpacker parameters",
const char * context = "Default" )

Standard constructor

PADI threshold measures and extrapolated code to value map

Linear extrapolation between measured points

Definition at line 22 of file CbmStar2019TofPar.cxx.

References fvdPadiThrCodeToValue, kdThrMeasVal, kuNbThrMeasPoints, and kuThrMeasCode.

◆ ~CbmStar2019TofPar()

CbmStar2019TofPar::~CbmStar2019TofPar ( )
virtual

Destructor

Definition at line 63 of file CbmStar2019TofPar.cxx.

Member Function Documentation

◆ ClassDef()

CbmStar2019TofPar::ClassDef ( CbmStar2019TofPar ,
1  )
private

◆ clear()

void CbmStar2019TofPar::clear ( )
virtual

Reset all parameters

Definition at line 68 of file CbmStar2019TofPar.cxx.

◆ ElinkIdxToGet4Idx()

◆ Get4ChanToPadiChan()

Int_t CbmStar2019TofPar::Get4ChanToPadiChan ( UInt_t uChannelInFee)

◆ Get4IdxToElinkIdx()

Int_t CbmStar2019TofPar::Get4IdxToElinkIdx ( UInt_t uGet4)

◆ GetDebugMonitorMode()

Bool_t CbmStar2019TofPar::GetDebugMonitorMode ( )
inline

Definition at line 73 of file CbmStar2019TofPar.h.

References fiDebugMonitorMode.

◆ GetGdpbId()

◆ GetGdpbToSectorOffset()

◆ GetModuleId()

Int_t CbmStar2019TofPar::GetModuleId ( UInt_t uGbtx)

◆ GetMonitorMode()

Bool_t CbmStar2019TofPar::GetMonitorMode ( )
inline

Definition at line 72 of file CbmStar2019TofPar.h.

References fiMonitorMode.

◆ GetNbByteMessage()

static constexpr UInt_t CbmStar2019TofPar::GetNbByteMessage ( )
inlinestaticconstexpr

Definition at line 39 of file CbmStar2019TofPar.h.

References kuBytesPerMessage.

Referenced by CbmStar2019EventBuilderEtofAlgo::ProcessMs().

◆ GetNrOfChannelsPerFee()

static constexpr UInt_t CbmStar2019TofPar::GetNrOfChannelsPerFee ( )
inlinestaticconstexpr

Definition at line 52 of file CbmStar2019TofPar.h.

References kuNbChannelsPerFee.

Referenced by Get4ChanToPadiChan(), and PadiChanToGet4Chan().

◆ GetNrOfChannelsPerGbtx()

static constexpr UInt_t CbmStar2019TofPar::GetNrOfChannelsPerGbtx ( )
inlinestaticconstexpr

Definition at line 53 of file CbmStar2019TofPar.h.

References kuNbChannelsPerGbtx.

◆ GetNrOfChannelsPerGdpb()

static constexpr UInt_t CbmStar2019TofPar::GetNrOfChannelsPerGdpb ( )
inlinestaticconstexpr

Definition at line 54 of file CbmStar2019TofPar.h.

References kuNbChannelsPerGdpb.

◆ GetNrOfChannelsPerGet4()

◆ GetNrOfFeePerGbtx()

static constexpr UInt_t CbmStar2019TofPar::GetNrOfFeePerGbtx ( )
inlinestaticconstexpr

Definition at line 50 of file CbmStar2019TofPar.h.

References kuNbFeePerGbtx.

◆ GetNrOfFeePerGdpb()

static constexpr UInt_t CbmStar2019TofPar::GetNrOfFeePerGdpb ( )
inlinestaticconstexpr

◆ GetNrOfGbtx()

Int_t CbmStar2019TofPar::GetNrOfGbtx ( )
inline

◆ GetNrOfGbtxPerGdpb()

static constexpr UInt_t CbmStar2019TofPar::GetNrOfGbtxPerGdpb ( )
inlinestaticconstexpr

Definition at line 51 of file CbmStar2019TofPar.h.

References kuNbGbtxPerGdpb.

◆ GetNrOfGdpbs()

◆ GetNrOfGet4PerFee()

◆ GetNrOfGet4PerGbtx()

static constexpr UInt_t CbmStar2019TofPar::GetNrOfGet4PerGbtx ( )
inlinestaticconstexpr

Definition at line 55 of file CbmStar2019TofPar.h.

References kuNbGet4PerGbtx.

◆ GetNrOfGet4PerGdpb()

static constexpr UInt_t CbmStar2019TofPar::GetNrOfGet4PerGdpb ( )
inlinestaticconstexpr

◆ GetNrOfModules()

Int_t CbmStar2019TofPar::GetNrOfModules ( )
inline

◆ GetNrOfPadiThrCodes()

static constexpr UInt_t CbmStar2019TofPar::GetNrOfPadiThrCodes ( )
inlinestaticconstexpr

Definition at line 69 of file CbmStar2019TofPar.h.

References kuNbPadiThrCodes.

Referenced by GetPadiThresholdVal().

◆ GetNrOfRpc()

Int_t CbmStar2019TofPar::GetNrOfRpc ( UInt_t uGbtx)

◆ GetNumberOfChannels()

UInt_t CbmStar2019TofPar::GetNumberOfChannels ( )
inline

Definition at line 59 of file CbmStar2019TofPar.h.

References fiNrOfGdpb, and kuNbChannelsPerGdpb.

Referenced by CbmStar2019EventBuilderEtofAlgo::ProcessHit().

◆ GetPadiThresholdVal()

Double_t CbmStar2019TofPar::GetPadiThresholdVal ( UInt_t uCode)

◆ getParams()

◆ GetRpcSide()

Int_t CbmStar2019TofPar::GetRpcSide ( UInt_t uGbtx)

◆ GetRpcType()

Int_t CbmStar2019TofPar::GetRpcType ( UInt_t uGbtx)

◆ GetSizeMsInNs()

◆ GetStarTriggAllowedSpread()

Double_t CbmStar2019TofPar::GetStarTriggAllowedSpread ( )
inline

◆ GetStarTriggDeadtime()

Double_t CbmStar2019TofPar::GetStarTriggDeadtime ( UInt_t uGdpb)

◆ GetStarTriggDelay()

Double_t CbmStar2019TofPar::GetStarTriggDelay ( UInt_t uGdpb)

◆ GetStarTriggWinSize()

Double_t CbmStar2019TofPar::GetStarTriggWinSize ( UInt_t uGdpb)

◆ PadiChanToGet4Chan()

Int_t CbmStar2019TofPar::PadiChanToGet4Chan ( UInt_t uChannelInFee)

Definition at line 157 of file CbmStar2019TofPar.cxx.

References GetNrOfChannelsPerFee(), and kuPaditoget4.

◆ putParams()

Member Data Documentation

◆ fdSizeMsInNs

Double_t CbmStar2019TofPar::fdSizeMsInNs
private

Definition at line 166 of file CbmStar2019TofPar.h.

Referenced by getParams(), GetSizeMsInNs(), and putParams().

◆ fdStarTriggAllowedSpread

Double_t CbmStar2019TofPar::fdStarTriggAllowedSpread
private

Definition at line 169 of file CbmStar2019TofPar.h.

Referenced by getParams(), GetStarTriggAllowedSpread(), and putParams().

◆ fdStarTriggerDeadtime

TArrayD CbmStar2019TofPar::fdStarTriggerDeadtime
private

Definition at line 170 of file CbmStar2019TofPar.h.

Referenced by getParams(), and GetStarTriggDeadtime().

◆ fdStarTriggerDelay

TArrayD CbmStar2019TofPar::fdStarTriggerDelay
private

Definition at line 172 of file CbmStar2019TofPar.h.

Referenced by getParams(), GetStarTriggDelay(), and putParams().

◆ fdStarTriggerWinSize

TArrayD CbmStar2019TofPar::fdStarTriggerWinSize
private

Definition at line 173 of file CbmStar2019TofPar.h.

Referenced by getParams(), GetStarTriggWinSize(), and putParams().

◆ fiDebugMonitorMode

Int_t CbmStar2019TofPar::fiDebugMonitorMode
private

Definition at line 156 of file CbmStar2019TofPar.h.

Referenced by GetDebugMonitorMode(), getParams(), and putParams().

◆ fiGdpbIdArray

TArrayI CbmStar2019TofPar::fiGdpbIdArray
private

Definition at line 158 of file CbmStar2019TofPar.h.

Referenced by GetGdpbId(), getParams(), and putParams().

◆ fiModuleId

TArrayI CbmStar2019TofPar::fiModuleId
private

Definition at line 164 of file CbmStar2019TofPar.h.

Referenced by GetModuleId(), getParams(), and putParams().

◆ fiMonitorMode

Int_t CbmStar2019TofPar::fiMonitorMode
private

Variables.

Definition at line 154 of file CbmStar2019TofPar.h.

Referenced by GetMonitorMode(), getParams(), and putParams().

◆ fiNrOfGbtx

Int_t CbmStar2019TofPar::fiNrOfGbtx
private

◆ fiNrOfGdpb

Int_t CbmStar2019TofPar::fiNrOfGdpb
private

◆ fiNrOfModule

Int_t CbmStar2019TofPar::fiNrOfModule
private

Definition at line 160 of file CbmStar2019TofPar.h.

Referenced by GetNrOfModules(), getParams(), and putParams().

◆ fiNrOfRpc

TArrayI CbmStar2019TofPar::fiNrOfRpc
private

Definition at line 161 of file CbmStar2019TofPar.h.

Referenced by GetNrOfRpc(), getParams(), and putParams().

◆ fiRpcSide

TArrayI CbmStar2019TofPar::fiRpcSide
private

Definition at line 163 of file CbmStar2019TofPar.h.

Referenced by getParams(), GetRpcSide(), and putParams().

◆ fiRpcType

TArrayI CbmStar2019TofPar::fiRpcType
private

Definition at line 162 of file CbmStar2019TofPar.h.

Referenced by getParams(), GetRpcType(), and putParams().

◆ fvdPadiThrCodeToValue

std::vector<Double_t> CbmStar2019TofPar::fvdPadiThrCodeToValue
private

Definition at line 151 of file CbmStar2019TofPar.h.

Referenced by CbmStar2019TofPar(), and GetPadiThresholdVal().

◆ kdThrMeasVal

const Double_t CbmStar2019TofPar::kdThrMeasVal[kuNbThrMeasPoints]
private
Initial value:
= {
-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,
-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,
-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,
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,
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}

Definition at line 145 of file CbmStar2019TofPar.h.

Referenced by CbmStar2019TofPar().

◆ kuBytesPerMessage

const uint32_t CbmStar2019TofPar::kuBytesPerMessage = 8
staticprivate

Constants Data format

Definition at line 92 of file CbmStar2019TofPar.h.

Referenced by GetNbByteMessage().

◆ kuElinkToGet4

const UInt_t CbmStar2019TofPar::kuElinkToGet4[kuNbGet4PerGbtx]
private
Initial value:
= {27, 2, 7, 3, 31, 26, 30, 1, 33, 37, 32, 13, 9, 14,
10, 15, 17, 21, 16, 35, 34, 38, 25, 24, 0, 6, 20, 23,
18, 22, 28, 4, 29, 5, 19, 36, 39, 8, 12, 11}

Map from PADI channel to GET4 channel.

Definition at line 127 of file CbmStar2019TofPar.h.

Referenced by ElinkIdxToGet4Idx().

◆ kuGdpbToSectorOffset

const uint32_t CbmStar2019TofPar::kuGdpbToSectorOffset = 13
staticprivate

Mapping in STAR.

Definition at line 134 of file CbmStar2019TofPar.h.

Referenced by GetGdpbToSectorOffset().

◆ kuGet4ToElink

const UInt_t CbmStar2019TofPar::kuGet4ToElink[kuNbGet4PerGbtx]
private
Initial value:
= {24, 7, 1, 3, 31, 33, 25, 2, 37, 12, 14, 39, 38, 11,
13, 15, 18, 16, 28, 34, 26, 17, 29, 27, 23, 22, 5, 0,
30, 32, 6, 4, 10, 8, 20, 19, 35, 9, 21, 36}

Definition at line 130 of file CbmStar2019TofPar.h.

Referenced by Get4IdxToElinkIdx().

◆ kuGet4topadi

const UInt_t CbmStar2019TofPar::kuGet4topadi[kuNbChannelsPerFee]
private
Initial value:
= {
4, 3, 2, 1,
8, 7, 6, 5, 12, 11, 10, 9, 16, 15, 14, 13, 20, 19,
18, 17, 24, 23, 22, 21, 28, 27, 26, 25, 32, 31, 30, 29}

Mapping in Readout chain PCBs.

Definition at line 117 of file CbmStar2019TofPar.h.

Referenced by Get4ChanToPadiChan().

◆ kuNbChannelsPerFee

const uint32_t CbmStar2019TofPar::kuNbChannelsPerFee = kuNbChannelsPerGet4 * kuNbGet4PerFee
staticprivate

Definition at line 98 of file CbmStar2019TofPar.h.

Referenced by GetNrOfChannelsPerFee().

◆ kuNbChannelsPerGbtx

const uint32_t CbmStar2019TofPar::kuNbChannelsPerGbtx = kuNbChannelsPerFee * kuNbFeePerGbtx
staticprivate

Definition at line 99 of file CbmStar2019TofPar.h.

Referenced by GetNrOfChannelsPerGbtx().

◆ kuNbChannelsPerGdpb

const uint32_t CbmStar2019TofPar::kuNbChannelsPerGdpb = kuNbChannelsPerGbtx * kuNbGbtxPerGdpb
staticprivate

Definition at line 100 of file CbmStar2019TofPar.h.

Referenced by GetNrOfChannelsPerGdpb(), and GetNumberOfChannels().

◆ kuNbChannelsPerGet4

const uint32_t CbmStar2019TofPar::kuNbChannelsPerGet4 = 4
staticprivate

Readout chain.

Definition at line 94 of file CbmStar2019TofPar.h.

Referenced by GetNrOfChannelsPerGet4().

◆ kuNbFeePerGbtx

const uint32_t CbmStar2019TofPar::kuNbFeePerGbtx = 5
staticprivate

Definition at line 96 of file CbmStar2019TofPar.h.

Referenced by GetNrOfFeePerGbtx().

◆ kuNbFeePerGdpb

const uint32_t CbmStar2019TofPar::kuNbFeePerGdpb = kuNbFeePerGbtx * kuNbGbtxPerGdpb
staticprivate

Definition at line 103 of file CbmStar2019TofPar.h.

Referenced by GetNrOfFeePerGdpb().

◆ kuNbGbtxPerGdpb

const uint32_t CbmStar2019TofPar::kuNbGbtxPerGdpb = 6
staticprivate

Definition at line 97 of file CbmStar2019TofPar.h.

Referenced by GetNrOfGbtxPerGdpb().

◆ kuNbGet4PerFee

const uint32_t CbmStar2019TofPar::kuNbGet4PerFee = 8
staticprivate

Definition at line 95 of file CbmStar2019TofPar.h.

Referenced by GetNrOfGet4PerFee().

◆ kuNbGet4PerGbtx

const uint32_t CbmStar2019TofPar::kuNbGet4PerGbtx = kuNbGet4PerFee * kuNbFeePerGbtx
staticprivate

Definition at line 101 of file CbmStar2019TofPar.h.

Referenced by ElinkIdxToGet4Idx(), Get4IdxToElinkIdx(), and GetNrOfGet4PerGbtx().

◆ kuNbGet4PerGdpb

const uint32_t CbmStar2019TofPar::kuNbGet4PerGdpb = kuNbGet4PerGbtx * kuNbGbtxPerGdpb
staticprivate

Definition at line 102 of file CbmStar2019TofPar.h.

Referenced by GetNrOfGet4PerGdpb().

◆ kuNbPadiThrCodes

const uint32_t CbmStar2019TofPar::kuNbPadiThrCodes = 1024
staticprivate

PADI threshold measures and extrapolated code to value map.

Definition at line 137 of file CbmStar2019TofPar.h.

Referenced by GetNrOfPadiThrCodes().

◆ kuNbThrMeasPoints

const uint32_t CbmStar2019TofPar::kuNbThrMeasPoints = 65
staticprivate

Definition at line 138 of file CbmStar2019TofPar.h.

Referenced by CbmStar2019TofPar().

◆ kuPaditoget4

const UInt_t CbmStar2019TofPar::kuPaditoget4[kuNbChannelsPerFee]
private
Initial value:
= {
4, 3, 2, 1, 12, 11, 10, 9, 20, 19, 18, 17, 28, 27, 26, 25,
32, 31, 30, 29, 8, 7, 6, 5, 16, 15, 14, 13, 24, 23, 22, 21}

Map from GET4 channel to PADI channel.

Definition at line 123 of file CbmStar2019TofPar.h.

Referenced by PadiChanToGet4Chan().

◆ kuThrMeasCode

const UInt_t CbmStar2019TofPar::kuThrMeasCode[kuNbThrMeasPoints]
private
Initial value:
= {
0x000, 0x010, 0x020, 0x030, 0x040, 0x050, 0x060, 0x070, 0x080, 0x090, 0x0A0, 0x0B0, 0x0C0,
0x0D0, 0x0E0, 0x0F0, 0x100, 0x110, 0x120, 0x130, 0x140, 0x150, 0x160, 0x170, 0x180, 0x190,
0x1A0, 0x1B0, 0x1C0, 0x1D0, 0x1E0, 0x1F0, 0x200, 0x210, 0x220, 0x230, 0x240, 0x250, 0x260,
0x270, 0x280, 0x290, 0x2A0, 0x2B0, 0x2C0, 0x2D0, 0x2E0, 0x2F0, 0x300, 0x310, 0x320, 0x330,
0x340, 0x350, 0x360, 0x370, 0x380, 0x390, 0x3A0, 0x3B0, 0x3C0, 0x3D0, 0x3E0, 0x3F0, 0x3FF}

Definition at line 139 of file CbmStar2019TofPar.h.

Referenced by CbmStar2019TofPar().


The documentation for this class was generated from the following files: