CbmRoot
|
#include <CbmMuchUnpackPar.h>
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 |
Definition at line 23 of file CbmMuchUnpackPar.h.
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.
|
virtual |
Destructor
Definition at line 44 of file CbmMuchUnpackPar.cxx.
|
private |
|
virtual |
Reset all parameters
Definition at line 49 of file CbmMuchUnpackPar.cxx.
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().
UInt_t CbmMuchUnpackPar::GetDpbId | ( | UInt_t | uDpbIdx | ) |
Definition at line 161 of file CbmMuchUnpackPar.cxx.
References fiDbpIdArray, and fuNrOfDpbs.
Referenced by CbmMuchUnpackAlgo::initDpbIdIndexMap().
Double_t CbmMuchUnpackPar::GetFebAdcGain | ( | UInt_t | uDpbIdx, |
UInt_t | uCrobIdx, | ||
UInt_t | uFebIdx ) |
Double_t CbmMuchUnpackPar::GetFebAdcOffset | ( | UInt_t | uDpbIdx, |
UInt_t | uCrobIdx, | ||
UInt_t | uFebIdx ) |
int32_t CbmMuchUnpackPar::GetFebId | ( | UInt_t | uAsicIdx | ) |
Definition at line 390 of file CbmMuchUnpackPar.cxx.
References fnFebsIdsArrayGemA, fnFebsIdsArrayGemB, fnFebsIdsArrayRpc, GetNrOfFebsInGemA(), GetNrOfFebsInGemB(), and GetNrOfFebsInRpc().
Referenced by CbmMuchUnpackAlgo::processHitInfo().
UInt_t CbmMuchUnpackPar::GetModule | ( | UInt_t | uAsicIdx | ) |
Definition at line 408 of file CbmMuchUnpackPar.cxx.
References GetNrOfFebsInGemA(), and GetNrOfFebsInRpc().
|
inlinestaticconstexpr |
Definition at line 46 of file CbmMuchUnpackPar.h.
References kuNbAsicsPerFeb, and kuNbFebsPerCrob.
Referenced by GetNbAsicsPerDpb(), and CbmMuchUnpackAlgo::initParSet().
|
inlinestaticconstexpr |
Definition at line 47 of file CbmMuchUnpackPar.h.
References GetNbAsicsPerCrob(), and kuNbCrobsPerDpb.
|
inlinestaticconstexpr |
Definition at line 45 of file CbmMuchUnpackPar.h.
References kuNbAsicsPerFeb.
Referenced by CbmMuchUnpackMonitor::CreateHistograms(), and CbmMuchUnpackAlgo::initParSet().
|
inlinestaticconstexpr |
Definition at line 48 of file CbmMuchUnpackPar.h.
References kuNbChanPerAsic.
Referenced by CbmMuchUnpackMonitor::CreateDebugHistograms(), and CbmMuchUnpackAlgo::initParSet().
|
inlinestaticconstexpr |
Definition at line 49 of file CbmMuchUnpackPar.h.
References kuNbAsicsPerFeb, and kuNbChanPerAsic.
Referenced by CbmMuchUnpackMonitor::CreateDebugHistograms(), CbmMuchUnpackMonitor::CreateHistograms(), and CbmMuchUnpackAlgo::initParSet().
|
inlinestaticconstexpr |
Definition at line 40 of file CbmMuchUnpackPar.h.
References kuNbCrobsPerDpb.
Referenced by CbmMuchUnpackAlgo::initParSet().
|
inlinestaticconstexpr |
Definition at line 41 of file CbmMuchUnpackPar.h.
References kuNbElinksPerCrob.
Referenced by CbmMuchUnpackAlgo::initParSet().
|
inlinestaticconstexpr |
Definition at line 42 of file CbmMuchUnpackPar.h.
References kuNbCrobsPerDpb, and kuNbElinksPerCrob.
Referenced by CbmMuchUnpackMonitor::Init().
|
inlinestaticconstexpr |
Definition at line 43 of file CbmMuchUnpackPar.h.
References kuNbFebsPerCrob.
Referenced by CbmMuchUnpackAlgo::initParSet().
|
inlinestaticconstexpr |
Definition at line 44 of file CbmMuchUnpackPar.h.
References kuNbCrobsPerDpb, and kuNbFebsPerCrob.
Referenced by CbmMuchUnpackAlgo::processHitInfo(), and CbmMuchUnpackAlgo::processStatusInfo().
|
inline |
Definition at line 68 of file CbmMuchUnpackPar.h.
References GetNrOfFebs(), and kuNbAsicsPerFeb.
Referenced by CbmMuchUnpackMonitor::CreateDebugHistograms(), CbmMuchUnpackMonitor::CreateHistograms(), and CbmMuchUnpackAlgo::initInternalStatus().
|
inline |
Definition at line 72 of file CbmMuchUnpackPar.h.
References kuNbChanPerAsic.
|
inline |
Definition at line 66 of file CbmMuchUnpackPar.h.
References fuNrOfDpbs, and kuNbCrobsPerDpb.
Referenced by GetNrOfFebs().
|
inline |
Definition at line 64 of file CbmMuchUnpackPar.h.
References fuNrOfDpbs.
Referenced by CbmMuchUnpackMonitor::CreateDebugHistograms(), CbmMuchUnpackAlgo::initDpbIdIndexMap(), CbmMuchUnpackAlgo::initInternalStatus(), CbmMuchUnpackAlgo::initParSet(), and CbmMuchUnpackAlgo::printActiveCrobs().
|
inline |
Definition at line 67 of file CbmMuchUnpackPar.h.
References GetNrOfCrobs(), and kuNbFebsPerCrob.
Referenced by CbmMuchUnpackMonitor::CreateDebugHistograms(), CbmMuchUnpackMonitor::CreateHistograms(), GetNrOfAsics(), getParams(), CbmMuchUnpackAlgo::initParSet(), and IsFebActive().
|
inline |
Definition at line 70 of file CbmMuchUnpackPar.h.
References fuFebsInGemA.
Referenced by GetFebId(), GetModule(), and getParams().
|
inline |
Definition at line 71 of file CbmMuchUnpackPar.h.
References fuFebsInGemB.
Referenced by GetFebId(), and getParams().
|
inline |
Definition at line 89 of file CbmMuchUnpackPar.h.
References fuFebsInRpc.
Referenced by GetFebId(), GetModule(), and getParams().
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().
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().
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().
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().
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().
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().
Bool_t CbmMuchUnpackPar::getParams | ( | FairParamList * | l | ) |
Definition at line 83 of file CbmMuchUnpackPar.cxx.
References fChannelsToPadXA, fChannelsToPadXB, fChannelsToPadXRpc, fChannelsToPadYA, fChannelsToPadYB, fChannelsToPadYRpc, fiCrobActiveFlag, fiDbpIdArray, fnFebsIdsArrayGemA, fnFebsIdsArrayGemB, fnFebsIdsArrayRpc, fRealPadSize, fRealX, fuFebsInGemA, fuFebsInGemB, fuFebsInRpc, fuNrOfDpbs, GetNrOfFebs(), GetNrOfFebsInGemA(), GetNrOfFebsInGemB(), GetNrOfFebsInRpc(), kuNbChanPerAsic, and kuNbCrobsPerDpb.
Double_t CbmMuchUnpackPar::GetRealPadSize | ( | Int_t | Channel, |
Int_t | Sector ) |
Definition at line 455 of file CbmMuchUnpackPar.cxx.
References fRealPadSize.
Double_t CbmMuchUnpackPar::GetRealPadSize | ( | Int_t | SectorIndex | ) |
Definition at line 432 of file CbmMuchUnpackPar.cxx.
References fRealPadSize.
Double_t CbmMuchUnpackPar::GetRealX | ( | Int_t | Channel, |
Int_t | Sector ) |
Definition at line 444 of file CbmMuchUnpackPar.cxx.
References fRealX.
Double_t CbmMuchUnpackPar::GetRealX | ( | Int_t | SectorIndex | ) |
Definition at line 420 of file CbmMuchUnpackPar.cxx.
References fRealX.
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().
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.
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().
Bool_t CbmMuchUnpackPar::IsFebPulser | ( | UInt_t | uDpbIdx, |
UInt_t | uCrobIdx, | ||
UInt_t | uFebIdx ) |
Bool_t CbmMuchUnpackPar::IsFebPulser | ( | UInt_t | uFebInSystIdx | ) |
void CbmMuchUnpackPar::putParams | ( | FairParamList * | l | ) |
Definition at line 58 of file CbmMuchUnpackPar.cxx.
References fChannelsToPadXA, fChannelsToPadXB, fChannelsToPadXRpc, fChannelsToPadYA, fChannelsToPadYB, fChannelsToPadYRpc, fiCrobActiveFlag, fiDbpIdArray, fnFebsIdsArrayGemA, fnFebsIdsArrayGemB, fnFebsIdsArrayRpc, fRealPadSize, fRealX, fuFebsInGemA, fuFebsInGemB, fuFebsInRpc, and fuNrOfDpbs.
|
private |
Definition at line 126 of file CbmMuchUnpackPar.h.
Referenced by GetPadXA(), getParams(), and putParams().
|
private |
Definition at line 128 of file CbmMuchUnpackPar.h.
Referenced by GetPadXB(), getParams(), and putParams().
|
private |
Definition at line 130 of file CbmMuchUnpackPar.h.
Referenced by GetPadXRpc(), getParams(), and putParams().
|
private |
Definition at line 127 of file CbmMuchUnpackPar.h.
Referenced by GetPadYA(), getParams(), and putParams().
|
private |
Definition at line 129 of file CbmMuchUnpackPar.h.
Referenced by GetPadYB(), getParams(), and putParams().
|
private |
Definition at line 131 of file CbmMuchUnpackPar.h.
Referenced by GetPadYRpc(), getParams(), and putParams().
|
private |
Definition at line 119 of file CbmMuchUnpackPar.h.
Referenced by getParams(), IsCrobActive(), and putParams().
|
private |
Definition at line 118 of file CbmMuchUnpackPar.h.
Referenced by GetDpbId(), getParams(), and putParams().
|
private |
Definition at line 123 of file CbmMuchUnpackPar.h.
Referenced by GetFebId(), getParams(), and putParams().
|
private |
Definition at line 124 of file CbmMuchUnpackPar.h.
Referenced by GetFebId(), getParams(), and putParams().
|
private |
Definition at line 125 of file CbmMuchUnpackPar.h.
Referenced by GetFebId(), getParams(), and putParams().
|
private |
Definition at line 133 of file CbmMuchUnpackPar.h.
Referenced by getParams(), GetRealPadSize(), GetRealPadSize(), and putParams().
|
private |
Definition at line 132 of file CbmMuchUnpackPar.h.
Referenced by getParams(), GetRealX(), GetRealX(), and putParams().
|
private |
Definition at line 120 of file CbmMuchUnpackPar.h.
Referenced by GetNrOfFebsInGemA(), getParams(), and putParams().
|
private |
Definition at line 121 of file CbmMuchUnpackPar.h.
Referenced by GetNrOfFebsInGemB(), getParams(), and putParams().
|
private |
Definition at line 122 of file CbmMuchUnpackPar.h.
Referenced by GetNrOfFebsInRpc(), getParams(), and putParams().
|
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().
|
private |
Definition at line 110 of file CbmMuchUnpackPar.h.
Referenced by ElinkIdxToFebIdx().
|
staticprivate |
Definition at line 107 of file CbmMuchUnpackPar.h.
Referenced by GetNbAsicsPerCrob(), GetNbAsicsPerFeb(), GetNbChanPerFeb(), and GetNrOfAsics().
|
staticprivate |
Definition at line 108 of file CbmMuchUnpackPar.h.
Referenced by GetNbChanPerAsic(), GetNbChanPerFeb(), GetNrOfChannels(), GetPadXA(), GetPadXB(), GetPadXRpc(), GetPadYA(), GetPadYB(), GetPadYRpc(), and getParams().
|
staticprivate |
Constants.
Definition at line 104 of file CbmMuchUnpackPar.h.
Referenced by GetNbAsicsPerDpb(), GetNbCrobsPerDpb(), GetNbElinkPerDpb(), GetNbFebsPerDpb(), GetNrOfCrobs(), getParams(), IsCrobActive(), and IsFebActive().
|
staticprivate |
Definition at line 105 of file CbmMuchUnpackPar.h.
Referenced by ElinkIdxToFebIdx(), GetNbElinkPerCrob(), and GetNbElinkPerDpb().
|
staticprivate |
Definition at line 106 of file CbmMuchUnpackPar.h.
Referenced by GetNbAsicsPerCrob(), GetNbFebsPerCrob(), GetNbFebsPerDpb(), GetNrOfFebs(), and IsFebActive().