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

#include <CbmMuchUnpackPar.h>

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

Public Member Functions

 CbmMuchUnpackPar (const char *name="CbmMuchUnpackPar", const char *title="Much parameters", const char *context="Default")
 
virtual ~CbmMuchUnpackPar ()
 
virtual void clear ()
 
void putParams (FairParamList *)
 
Bool_t getParams (FairParamList *)
 
Int_t ElinkIdxToFebIdx (UInt_t uElink)
 Convert from eLink index to FEB Connection ( 0 to kuNbFebsPerCrob)
 
UInt_t GetNrOfDpbs ()
 
UInt_t GetDpbId (UInt_t uDpbIdx)
 
UInt_t GetNrOfCrobs ()
 
UInt_t GetNrOfFebs ()
 
UInt_t GetNrOfAsics ()
 
UInt_t GetNrOfFebsInGemA ()
 
UInt_t GetNrOfFebsInGemB ()
 
Int_t GetNrOfChannels ()
 
int32_t GetFebId (UInt_t)
 
UInt_t GetModule (UInt_t)
 
Short_t GetPadXA (UShort_t febid, UShort_t channelid)
 
Short_t GetPadYA (UShort_t febid, UShort_t channelid)
 
Short_t GetPadXB (UShort_t febid, UShort_t channelid)
 
Short_t GetPadYB (UShort_t febid, UShort_t channelid)
 
Double_t GetRealX (Int_t)
 
Double_t GetRealPadSize (Int_t)
 
Double_t GetRealX (Int_t Channel, Int_t Sector)
 
Double_t GetRealPadSize (Int_t Channel, Int_t Sector)
 
UInt_t GetNrOfFebsInRpc ()
 
Short_t GetPadXRpc (UShort_t febid, UShort_t channelid)
 
Short_t GetPadYRpc (UShort_t febid, UShort_t channelid)
 
Bool_t IsCrobActive (UInt_t uDpbIdx, UInt_t uCrobIdx)
 
Bool_t IsFebActive (UInt_t uFebInSystIdx)
 
Bool_t IsFebActive (UInt_t uDpbIdx, UInt_t uCrobIdx, UInt_t uFebIdx)
 
Bool_t IsFebPulser (UInt_t uFebInSystIdx)
 
Bool_t IsFebPulser (UInt_t uDpbIdx, UInt_t uCrobIdx, UInt_t uFebIdx)
 
Double_t GetFebAdcGain (UInt_t uDpbIdx, UInt_t uCrobIdx, UInt_t uFebIdx)
 
Double_t GetFebAdcOffset (UInt_t uDpbIdx, UInt_t uCrobIdx, UInt_t uFebIdx)
 

Static Public Member Functions

static constexpr UInt_t GetNbCrobsPerDpb ()
 
static constexpr UInt_t GetNbElinkPerCrob ()
 
static constexpr UInt_t GetNbElinkPerDpb ()
 
static constexpr UInt_t GetNbFebsPerCrob ()
 
static constexpr UInt_t GetNbFebsPerDpb ()
 
static constexpr UInt_t GetNbAsicsPerFeb ()
 
static constexpr UInt_t GetNbAsicsPerCrob ()
 
static constexpr UInt_t GetNbAsicsPerDpb ()
 
static constexpr UInt_t GetNbChanPerAsic ()
 
static constexpr UInt_t GetNbChanPerFeb ()
 

Private Member Functions

 ClassDef (CbmMuchUnpackPar, 1)
 

Private Attributes

const Int_t kiCrobMapElinkFebIdx [kuNbElinksPerCrob]
 
UInt_t fuNrOfDpbs
 Map from eLink index to ASIC index within CROB ( 0 to kuNbFebsPerCrob * kuNbAsicPerFeb )
 
TArrayI fiDbpIdArray
 
TArrayI fiCrobActiveFlag
 
UInt_t fuFebsInGemA
 
UInt_t fuFebsInGemB
 
UInt_t fuFebsInRpc
 
TArrayI fnFebsIdsArrayGemA
 
TArrayI fnFebsIdsArrayGemB
 
TArrayI fnFebsIdsArrayRpc
 
TArrayI fChannelsToPadXA
 
TArrayI fChannelsToPadYA
 
TArrayI fChannelsToPadXB
 
TArrayI fChannelsToPadYB
 
TArrayI fChannelsToPadXRpc
 
TArrayI fChannelsToPadYRpc
 
TArrayD fRealX
 
TArrayD fRealPadSize
 

Static Private Attributes

static const UInt_t kuNbCrobsPerDpb = 1
 Constants.
 
static const UInt_t kuNbElinksPerCrob = 42
 
static const UInt_t kuNbFebsPerCrob = 9
 
static const UInt_t kuNbAsicsPerFeb = 1
 
static const UInt_t kuNbChanPerAsic = 128
 

Detailed Description

Definition at line 23 of file CbmMuchUnpackPar.h.

Constructor & Destructor Documentation

◆ CbmMuchUnpackPar()

CbmMuchUnpackPar::CbmMuchUnpackPar ( const char * name = "CbmMuchUnpackPar",
const char * title = "Much parameters",
const char * context = "Default" )

Standard constructor

Definition at line 18 of file CbmMuchUnpackPar.cxx.

◆ ~CbmMuchUnpackPar()

CbmMuchUnpackPar::~CbmMuchUnpackPar ( )
virtual

Destructor

Definition at line 44 of file CbmMuchUnpackPar.cxx.

Member Function Documentation

◆ ClassDef()

CbmMuchUnpackPar::ClassDef ( CbmMuchUnpackPar ,
1  )
private

◆ clear()

void CbmMuchUnpackPar::clear ( )
virtual

Reset all parameters

Definition at line 49 of file CbmMuchUnpackPar.cxx.

◆ ElinkIdxToFebIdx()

Int_t CbmMuchUnpackPar::ElinkIdxToFebIdx ( UInt_t uElink)

Convert from eLink index to FEB Connection ( 0 to kuNbFebsPerCrob)

Definition at line 138 of file CbmMuchUnpackPar.cxx.

References kiCrobMapElinkFebIdx, and kuNbElinksPerCrob.

Referenced by CbmMuchUnpackAlgo::processHitInfo(), and CbmMuchUnpackAlgo::processStatusInfo().

◆ GetDpbId()

UInt_t CbmMuchUnpackPar::GetDpbId ( UInt_t uDpbIdx)

Definition at line 161 of file CbmMuchUnpackPar.cxx.

References fiDbpIdArray, and fuNrOfDpbs.

Referenced by CbmMuchUnpackAlgo::initDpbIdIndexMap().

◆ GetFebAdcGain()

Double_t CbmMuchUnpackPar::GetFebAdcGain ( UInt_t uDpbIdx,
UInt_t uCrobIdx,
UInt_t uFebIdx )

◆ GetFebAdcOffset()

Double_t CbmMuchUnpackPar::GetFebAdcOffset ( UInt_t uDpbIdx,
UInt_t uCrobIdx,
UInt_t uFebIdx )

◆ GetFebId()

int32_t CbmMuchUnpackPar::GetFebId ( UInt_t uAsicIdx)

◆ GetModule()

UInt_t CbmMuchUnpackPar::GetModule ( UInt_t uAsicIdx)

Definition at line 408 of file CbmMuchUnpackPar.cxx.

References GetNrOfFebsInGemA(), and GetNrOfFebsInRpc().

◆ GetNbAsicsPerCrob()

static constexpr UInt_t CbmMuchUnpackPar::GetNbAsicsPerCrob ( )
inlinestaticconstexpr

Definition at line 46 of file CbmMuchUnpackPar.h.

References kuNbAsicsPerFeb, and kuNbFebsPerCrob.

Referenced by GetNbAsicsPerDpb(), and CbmMuchUnpackAlgo::initParSet().

◆ GetNbAsicsPerDpb()

static constexpr UInt_t CbmMuchUnpackPar::GetNbAsicsPerDpb ( )
inlinestaticconstexpr

Definition at line 47 of file CbmMuchUnpackPar.h.

References GetNbAsicsPerCrob(), and kuNbCrobsPerDpb.

◆ GetNbAsicsPerFeb()

static constexpr UInt_t CbmMuchUnpackPar::GetNbAsicsPerFeb ( )
inlinestaticconstexpr

◆ GetNbChanPerAsic()

static constexpr UInt_t CbmMuchUnpackPar::GetNbChanPerAsic ( )
inlinestaticconstexpr

◆ GetNbChanPerFeb()

static constexpr UInt_t CbmMuchUnpackPar::GetNbChanPerFeb ( )
inlinestaticconstexpr

◆ GetNbCrobsPerDpb()

static constexpr UInt_t CbmMuchUnpackPar::GetNbCrobsPerDpb ( )
inlinestaticconstexpr

Definition at line 40 of file CbmMuchUnpackPar.h.

References kuNbCrobsPerDpb.

Referenced by CbmMuchUnpackAlgo::initParSet().

◆ GetNbElinkPerCrob()

static constexpr UInt_t CbmMuchUnpackPar::GetNbElinkPerCrob ( )
inlinestaticconstexpr

Definition at line 41 of file CbmMuchUnpackPar.h.

References kuNbElinksPerCrob.

Referenced by CbmMuchUnpackAlgo::initParSet().

◆ GetNbElinkPerDpb()

static constexpr UInt_t CbmMuchUnpackPar::GetNbElinkPerDpb ( )
inlinestaticconstexpr

Definition at line 42 of file CbmMuchUnpackPar.h.

References kuNbCrobsPerDpb, and kuNbElinksPerCrob.

Referenced by CbmMuchUnpackMonitor::Init().

◆ GetNbFebsPerCrob()

static constexpr UInt_t CbmMuchUnpackPar::GetNbFebsPerCrob ( )
inlinestaticconstexpr

Definition at line 43 of file CbmMuchUnpackPar.h.

References kuNbFebsPerCrob.

Referenced by CbmMuchUnpackAlgo::initParSet().

◆ GetNbFebsPerDpb()

static constexpr UInt_t CbmMuchUnpackPar::GetNbFebsPerDpb ( )
inlinestaticconstexpr

◆ GetNrOfAsics()

UInt_t CbmMuchUnpackPar::GetNrOfAsics ( )
inline

◆ GetNrOfChannels()

Int_t CbmMuchUnpackPar::GetNrOfChannels ( )
inline

Definition at line 72 of file CbmMuchUnpackPar.h.

References kuNbChanPerAsic.

◆ GetNrOfCrobs()

UInt_t CbmMuchUnpackPar::GetNrOfCrobs ( )
inline

Definition at line 66 of file CbmMuchUnpackPar.h.

References fuNrOfDpbs, and kuNbCrobsPerDpb.

Referenced by GetNrOfFebs().

◆ GetNrOfDpbs()

◆ GetNrOfFebs()

◆ GetNrOfFebsInGemA()

UInt_t CbmMuchUnpackPar::GetNrOfFebsInGemA ( )
inline

Definition at line 70 of file CbmMuchUnpackPar.h.

References fuFebsInGemA.

Referenced by GetFebId(), GetModule(), and getParams().

◆ GetNrOfFebsInGemB()

UInt_t CbmMuchUnpackPar::GetNrOfFebsInGemB ( )
inline

Definition at line 71 of file CbmMuchUnpackPar.h.

References fuFebsInGemB.

Referenced by GetFebId(), and getParams().

◆ GetNrOfFebsInRpc()

UInt_t CbmMuchUnpackPar::GetNrOfFebsInRpc ( )
inline

Definition at line 89 of file CbmMuchUnpackPar.h.

References fuFebsInRpc.

Referenced by GetFebId(), GetModule(), and getParams().

◆ GetPadXA()

Short_t CbmMuchUnpackPar::GetPadXA ( UShort_t febid,
UShort_t channelid )

Definition at line 323 of file CbmMuchUnpackPar.cxx.

References fChannelsToPadXA, and kuNbChanPerAsic.

Referenced by CbmMuchUnpackAlgo::CreateMuchAddress().

◆ GetPadXB()

Short_t CbmMuchUnpackPar::GetPadXB ( UShort_t febid,
UShort_t channelid )

Definition at line 345 of file CbmMuchUnpackPar.cxx.

References fChannelsToPadXB, and kuNbChanPerAsic.

Referenced by CbmMuchUnpackAlgo::CreateMuchAddress().

◆ GetPadXRpc()

Short_t CbmMuchUnpackPar::GetPadXRpc ( UShort_t febid,
UShort_t channelid )

Definition at line 367 of file CbmMuchUnpackPar.cxx.

References fChannelsToPadXRpc, and kuNbChanPerAsic.

Referenced by CbmMuchUnpackAlgo::CreateMuchAddress().

◆ GetPadYA()

Short_t CbmMuchUnpackPar::GetPadYA ( UShort_t febid,
UShort_t channelid )

Definition at line 334 of file CbmMuchUnpackPar.cxx.

References fChannelsToPadYA, and kuNbChanPerAsic.

Referenced by CbmMuchUnpackAlgo::CreateMuchAddress().

◆ GetPadYB()

Short_t CbmMuchUnpackPar::GetPadYB ( UShort_t febid,
UShort_t channelid )

Definition at line 356 of file CbmMuchUnpackPar.cxx.

References fChannelsToPadYB, and kuNbChanPerAsic.

Referenced by CbmMuchUnpackAlgo::CreateMuchAddress().

◆ GetPadYRpc()

Short_t CbmMuchUnpackPar::GetPadYRpc ( UShort_t febid,
UShort_t channelid )

Definition at line 378 of file CbmMuchUnpackPar.cxx.

References fChannelsToPadYRpc, and kuNbChanPerAsic.

Referenced by CbmMuchUnpackAlgo::CreateMuchAddress().

◆ getParams()

◆ GetRealPadSize() [1/2]

Double_t CbmMuchUnpackPar::GetRealPadSize ( Int_t Channel,
Int_t Sector )

Definition at line 455 of file CbmMuchUnpackPar.cxx.

References fRealPadSize.

◆ GetRealPadSize() [2/2]

Double_t CbmMuchUnpackPar::GetRealPadSize ( Int_t SectorIndex)

Definition at line 432 of file CbmMuchUnpackPar.cxx.

References fRealPadSize.

◆ GetRealX() [1/2]

Double_t CbmMuchUnpackPar::GetRealX ( Int_t Channel,
Int_t Sector )

Definition at line 444 of file CbmMuchUnpackPar.cxx.

References fRealX.

◆ GetRealX() [2/2]

Double_t CbmMuchUnpackPar::GetRealX ( Int_t SectorIndex)

Definition at line 420 of file CbmMuchUnpackPar.cxx.

References fRealX.

◆ IsCrobActive()

Bool_t CbmMuchUnpackPar::IsCrobActive ( UInt_t uDpbIdx,
UInt_t uCrobIdx )

Definition at line 170 of file CbmMuchUnpackPar.cxx.

References fiCrobActiveFlag, fuNrOfDpbs, and kuNbCrobsPerDpb.

Referenced by CbmMuchUnpackAlgo::initParSet().

◆ IsFebActive() [1/2]

Bool_t CbmMuchUnpackPar::IsFebActive ( UInt_t uDpbIdx,
UInt_t uCrobIdx,
UInt_t uFebIdx )

Definition at line 199 of file CbmMuchUnpackPar.cxx.

References fuNrOfDpbs, IsFebActive(), kuNbCrobsPerDpb, and kuNbFebsPerCrob.

◆ IsFebActive() [2/2]

Bool_t CbmMuchUnpackPar::IsFebActive ( UInt_t uFebInSystIdx)

Always return true for now

Definition at line 186 of file CbmMuchUnpackPar.cxx.

References GetNrOfFebs().

Referenced by IsFebActive().

◆ IsFebPulser() [1/2]

Bool_t CbmMuchUnpackPar::IsFebPulser ( UInt_t uDpbIdx,
UInt_t uCrobIdx,
UInt_t uFebIdx )

◆ IsFebPulser() [2/2]

Bool_t CbmMuchUnpackPar::IsFebPulser ( UInt_t uFebInSystIdx)

◆ putParams()

Member Data Documentation

◆ fChannelsToPadXA

TArrayI CbmMuchUnpackPar::fChannelsToPadXA
private

Definition at line 126 of file CbmMuchUnpackPar.h.

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

◆ fChannelsToPadXB

TArrayI CbmMuchUnpackPar::fChannelsToPadXB
private

Definition at line 128 of file CbmMuchUnpackPar.h.

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

◆ fChannelsToPadXRpc

TArrayI CbmMuchUnpackPar::fChannelsToPadXRpc
private

Definition at line 130 of file CbmMuchUnpackPar.h.

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

◆ fChannelsToPadYA

TArrayI CbmMuchUnpackPar::fChannelsToPadYA
private

Definition at line 127 of file CbmMuchUnpackPar.h.

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

◆ fChannelsToPadYB

TArrayI CbmMuchUnpackPar::fChannelsToPadYB
private

Definition at line 129 of file CbmMuchUnpackPar.h.

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

◆ fChannelsToPadYRpc

TArrayI CbmMuchUnpackPar::fChannelsToPadYRpc
private

Definition at line 131 of file CbmMuchUnpackPar.h.

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

◆ fiCrobActiveFlag

TArrayI CbmMuchUnpackPar::fiCrobActiveFlag
private

Definition at line 119 of file CbmMuchUnpackPar.h.

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

◆ fiDbpIdArray

TArrayI CbmMuchUnpackPar::fiDbpIdArray
private

Definition at line 118 of file CbmMuchUnpackPar.h.

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

◆ fnFebsIdsArrayGemA

TArrayI CbmMuchUnpackPar::fnFebsIdsArrayGemA
private

Definition at line 123 of file CbmMuchUnpackPar.h.

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

◆ fnFebsIdsArrayGemB

TArrayI CbmMuchUnpackPar::fnFebsIdsArrayGemB
private

Definition at line 124 of file CbmMuchUnpackPar.h.

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

◆ fnFebsIdsArrayRpc

TArrayI CbmMuchUnpackPar::fnFebsIdsArrayRpc
private

Definition at line 125 of file CbmMuchUnpackPar.h.

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

◆ fRealPadSize

TArrayD CbmMuchUnpackPar::fRealPadSize
private

Definition at line 133 of file CbmMuchUnpackPar.h.

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

◆ fRealX

TArrayD CbmMuchUnpackPar::fRealX
private

Definition at line 132 of file CbmMuchUnpackPar.h.

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

◆ fuFebsInGemA

UInt_t CbmMuchUnpackPar::fuFebsInGemA
private

Definition at line 120 of file CbmMuchUnpackPar.h.

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

◆ fuFebsInGemB

UInt_t CbmMuchUnpackPar::fuFebsInGemB
private

Definition at line 121 of file CbmMuchUnpackPar.h.

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

◆ fuFebsInRpc

UInt_t CbmMuchUnpackPar::fuFebsInRpc
private

Definition at line 122 of file CbmMuchUnpackPar.h.

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

◆ fuNrOfDpbs

UInt_t CbmMuchUnpackPar::fuNrOfDpbs
private

Map from eLink index to ASIC index within CROB ( 0 to kuNbFebsPerCrob * kuNbAsicPerFeb )

Variables

Definition at line 117 of file CbmMuchUnpackPar.h.

Referenced by GetDpbId(), GetNrOfCrobs(), GetNrOfDpbs(), getParams(), IsCrobActive(), IsFebActive(), and putParams().

◆ kiCrobMapElinkFebIdx

const Int_t CbmMuchUnpackPar::kiCrobMapElinkFebIdx[kuNbElinksPerCrob]
private
Initial value:
= {0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4,
4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8}

Definition at line 110 of file CbmMuchUnpackPar.h.

Referenced by ElinkIdxToFebIdx().

◆ kuNbAsicsPerFeb

const UInt_t CbmMuchUnpackPar::kuNbAsicsPerFeb = 1
staticprivate

◆ kuNbChanPerAsic

const UInt_t CbmMuchUnpackPar::kuNbChanPerAsic = 128
staticprivate

◆ kuNbCrobsPerDpb

const UInt_t CbmMuchUnpackPar::kuNbCrobsPerDpb = 1
staticprivate

◆ kuNbElinksPerCrob

const UInt_t CbmMuchUnpackPar::kuNbElinksPerCrob = 42
staticprivate

Definition at line 105 of file CbmMuchUnpackPar.h.

Referenced by ElinkIdxToFebIdx(), GetNbElinkPerCrob(), and GetNbElinkPerDpb().

◆ kuNbFebsPerCrob

const UInt_t CbmMuchUnpackPar::kuNbFebsPerCrob = 9
staticprivate

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