CbmRoot
|
#include <CbmMcbm2018HodoPar.h>
Public Member Functions | |
CbmMcbm2018HodoPar (const char *name="CbmMcbm2018HodoPar", const char *title="Much parameters", const char *context="Default") | |
virtual | ~CbmMcbm2018HodoPar () |
virtual void | clear () |
void | putParams (FairParamList *) |
Bool_t | getParams (FairParamList *) |
Int_t | ElinkIdxToFebIdx (UInt_t uElink) |
UInt_t | ElinkIdxToAsicIdx (UInt_t uElink) |
UInt_t | ElinkIdxToAsicIdxFebMuch (UInt_t uElink) |
UInt_t | ChannelToFiber (UInt_t uChan) |
UInt_t | ChannelToPixel (UInt_t uChan) |
UInt_t | ChannelToAxis (UInt_t uChan) |
UInt_t | GetNbOfModules () |
Bool_t | CheckModuleIndex (UInt_t uModuleIdx) |
UInt_t | GetModuleAddress (UInt_t uModuleIdx) |
Double_t | GetModuleCenterPosX (UInt_t uModuleIdx) |
Double_t | GetModuleCenterPosY (UInt_t uModuleIdx) |
Bool_t | GetModuleSwapXY (UInt_t uModuleIdx) |
Bool_t | GetModuleInvertX (UInt_t uModuleIdx) |
Bool_t | GetModuleInvertY (UInt_t uModuleIdx) |
UInt_t | GetNrOfDpbs () |
UInt_t | GetDpbId (UInt_t uDpbIdx) |
UInt_t | GetNrOfCrobs () |
UInt_t | GetNrOfFebs () |
UInt_t | GetNrOfAsics () |
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) |
Int_t | GetFebModuleIdx (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) |
Double_t | GetFebAdcBase (UInt_t uDpbIdx, UInt_t uCrobIdx, UInt_t uFebIdx) |
Double_t | GetFebAdcThrGain (UInt_t uDpbIdx, UInt_t uCrobIdx, UInt_t uFebIdx) |
Int_t | GetFebAdcThrOffs (UInt_t uDpbIdx, UInt_t uCrobIdx, UInt_t uFebIdx) |
UInt_t | GetChannelInModule (UInt_t uModuleIdx, UInt_t uChan) |
Static Public Member Functions | |
static constexpr UInt_t | GetNbCrobsPerDpb () |
static constexpr UInt_t | GetNbElinkPerCrob () |
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 (CbmMcbm2018HodoPar, 1) | |
Private Attributes | |
const UInt_t | kuCrobMapElinkFebMuch [kuNbElinksPerCrob] |
const Int_t | kiCrobMapElinkFebIdx [kuNbElinksPerCrob] |
Map from eLink index to ASIC index within CROB ( 0 to kuNbFebsPerCrob * kuNbAsicPerFeb ) More... | |
const UInt_t | kuChannelToFiberMap [kuNbChanPerAsic] |
Map from eLink index to ASIC index within CROB ( 0 to kuNbFebsPerCrob * kuNbAsicPerFeb ) More... | |
const UInt_t | kuChannelToPixelMap [kuNbChanPerAsic] |
Map from channel index to Hodoscope Fiber. More... | |
const UInt_t | kuChannelToPlaneMap [kuNbChanPerAsic] |
Map from channel index to PMT pixel. More... | |
UInt_t | fuNbModules |
Map from channel index to Hodoscope Axis (X or Y) More... | |
TArrayI | fiModAddress |
TArrayD | fdModCenterPosX |
TArrayD | fdModCenterPosY |
TArrayI | fiModSwapXY |
TArrayI | fiModInvertX |
TArrayI | fiModInvertY |
UInt_t | fuNrOfDpbs |
TArrayI | fiDbpIdArray |
TArrayI | fiCrobActiveFlag |
TArrayI | fiFebModuleIdx |
TArrayD | fdFebAdcGain |
TArrayD | fdFebAdcBase |
TArrayD | fdFebAdcThrGain |
TArrayI | fiFebAdcThrOffs |
Static Private Attributes | |
static const UInt_t | kuNbCrobsPerDpb = 1 |
Constants. More... | |
static const UInt_t | kuNbElinksPerCrob |
static const UInt_t | kuNbFebsPerCrob |
static const UInt_t | kuNbAsicsPerFeb |
static const UInt_t | kuNbChanPerAsic = 128 |
static const UInt_t | kuNbFiberPerAxis = 64 |
Definition at line 18 of file CbmMcbm2018HodoPar.h.
CbmMcbm2018HodoPar::CbmMcbm2018HodoPar | ( | const char * | name = "CbmMcbm2018HodoPar" , |
const char * | title = "Much parameters" , |
||
const char * | context = "Default" |
||
) |
Standard constructor
Definition at line 19 of file CbmMcbm2018HodoPar.cxx.
|
virtual |
Destructor
Definition at line 44 of file CbmMcbm2018HodoPar.cxx.
UInt_t CbmMcbm2018HodoPar::ChannelToAxis | ( | UInt_t | uChan | ) |
Definition at line 163 of file CbmMcbm2018HodoPar.cxx.
References kuChannelToPlaneMap, and kuNbChanPerAsic.
Referenced by GetChannelInModule().
UInt_t CbmMcbm2018HodoPar::ChannelToFiber | ( | UInt_t | uChan | ) |
Definition at line 145 of file CbmMcbm2018HodoPar.cxx.
References kuChannelToFiberMap, and kuNbChanPerAsic.
Referenced by GetChannelInModule().
UInt_t CbmMcbm2018HodoPar::ChannelToPixel | ( | UInt_t | uChan | ) |
Definition at line 154 of file CbmMcbm2018HodoPar.cxx.
References kuChannelToPixelMap, and kuNbChanPerAsic.
Bool_t CbmMcbm2018HodoPar::CheckModuleIndex | ( | UInt_t | uModuleIdx | ) |
Definition at line 173 of file CbmMcbm2018HodoPar.cxx.
References fuNbModules.
|
private |
|
virtual |
Reset all parameters
Definition at line 49 of file CbmMcbm2018HodoPar.cxx.
|
inline |
Definition at line 55 of file CbmMcbm2018HodoPar.h.
References ElinkIdxToAsicIdxFebMuch().
Referenced by CbmMcbm2018UnpackerAlgoHodo::ProcessMs().
UInt_t CbmMcbm2018HodoPar::ElinkIdxToAsicIdxFebMuch | ( | UInt_t | uElink | ) |
Definition at line 134 of file CbmMcbm2018HodoPar.cxx.
References kuCrobMapElinkFebMuch, and kuNbElinksPerCrob.
Referenced by ElinkIdxToAsicIdx().
Int_t CbmMcbm2018HodoPar::ElinkIdxToFebIdx | ( | UInt_t | uElink | ) |
Definition at line 122 of file CbmMcbm2018HodoPar.cxx.
References kiCrobMapElinkFebIdx, and kuNbElinksPerCrob.
Referenced by CbmMcbm2018UnpackerAlgoHodo::ProcessMs().
UInt_t CbmMcbm2018HodoPar::GetChannelInModule | ( | UInt_t | uModuleIdx, |
UInt_t | uChan | ||
) |
Check for Axis inversion
Check for axis swap
Definition at line 503 of file CbmMcbm2018HodoPar.cxx.
References ChannelToAxis(), ChannelToFiber(), fuNbModules, GetModuleInvertX(), GetModuleInvertY(), GetModuleSwapXY(), kuNbChanPerAsic, and kuNbFiberPerAxis.
Referenced by CbmMcbm2018UnpackerAlgoHodo::ProcessTs().
UInt_t CbmMcbm2018HodoPar::GetDpbId | ( | UInt_t | uDpbIdx | ) |
Definition at line 243 of file CbmMcbm2018HodoPar.cxx.
References fiDbpIdArray, and fuNrOfDpbs.
Referenced by CbmMcbm2018UnpackerAlgoHodo::InitParameters().
Double_t CbmMcbm2018HodoPar::GetFebAdcBase | ( | UInt_t | uDpbIdx, |
UInt_t | uCrobIdx, | ||
UInt_t | uFebIdx | ||
) |
Definition at line 409 of file CbmMcbm2018HodoPar.cxx.
References fdFebAdcBase, fuNrOfDpbs, kuNbCrobsPerDpb, and kuNbFebsPerCrob.
Double_t CbmMcbm2018HodoPar::GetFebAdcGain | ( | UInt_t | uDpbIdx, |
UInt_t | uCrobIdx, | ||
UInt_t | uFebIdx | ||
) |
Definition at line 346 of file CbmMcbm2018HodoPar.cxx.
References fdFebAdcGain, fuNrOfDpbs, kuNbCrobsPerDpb, and kuNbFebsPerCrob.
Referenced by CbmMcbm2018UnpackerAlgoHodo::InitParameters().
Double_t CbmMcbm2018HodoPar::GetFebAdcOffset | ( | UInt_t | uDpbIdx, |
UInt_t | uCrobIdx, | ||
UInt_t | uFebIdx | ||
) |
Definition at line 377 of file CbmMcbm2018HodoPar.cxx.
References fdFebAdcBase, fdFebAdcThrGain, fiFebAdcThrOffs, fuNrOfDpbs, kuNbCrobsPerDpb, and kuNbFebsPerCrob.
Referenced by CbmMcbm2018UnpackerAlgoHodo::InitParameters().
Double_t CbmMcbm2018HodoPar::GetFebAdcThrGain | ( | UInt_t | uDpbIdx, |
UInt_t | uCrobIdx, | ||
UInt_t | uFebIdx | ||
) |
Definition at line 440 of file CbmMcbm2018HodoPar.cxx.
References fdFebAdcThrGain, fuNrOfDpbs, kuNbCrobsPerDpb, and kuNbFebsPerCrob.
Int_t CbmMcbm2018HodoPar::GetFebAdcThrOffs | ( | UInt_t | uDpbIdx, |
UInt_t | uCrobIdx, | ||
UInt_t | uFebIdx | ||
) |
Definition at line 471 of file CbmMcbm2018HodoPar.cxx.
References fiFebAdcThrOffs, fuNrOfDpbs, kuNbCrobsPerDpb, and kuNbFebsPerCrob.
Int_t CbmMcbm2018HodoPar::GetFebModuleIdx | ( | UInt_t | uDpbIdx, |
UInt_t | uCrobIdx, | ||
UInt_t | uFebIdx | ||
) |
Definition at line 315 of file CbmMcbm2018HodoPar.cxx.
References fiFebModuleIdx, fuNrOfDpbs, kuNbCrobsPerDpb, and kuNbFebsPerCrob.
Referenced by CbmMcbm2018UnpackerAlgoHodo::InitParameters().
UInt_t CbmMcbm2018HodoPar::GetModuleAddress | ( | UInt_t | uModuleIdx | ) |
Definition at line 182 of file CbmMcbm2018HodoPar.cxx.
References fiModAddress, and fuNbModules.
Referenced by CbmMcbm2018UnpackerAlgoHodo::InitParameters().
Double_t CbmMcbm2018HodoPar::GetModuleCenterPosX | ( | UInt_t | uModuleIdx | ) |
Definition at line 192 of file CbmMcbm2018HodoPar.cxx.
References fdModCenterPosX, and fuNbModules.
Double_t CbmMcbm2018HodoPar::GetModuleCenterPosY | ( | UInt_t | uModuleIdx | ) |
Definition at line 202 of file CbmMcbm2018HodoPar.cxx.
References fdModCenterPosY, and fuNbModules.
Bool_t CbmMcbm2018HodoPar::GetModuleInvertX | ( | UInt_t | uModuleIdx | ) |
Definition at line 222 of file CbmMcbm2018HodoPar.cxx.
References fiModInvertX, and fuNbModules.
Referenced by GetChannelInModule().
Bool_t CbmMcbm2018HodoPar::GetModuleInvertY | ( | UInt_t | uModuleIdx | ) |
Definition at line 232 of file CbmMcbm2018HodoPar.cxx.
References fiModInvertY, and fuNbModules.
Referenced by GetChannelInModule().
Bool_t CbmMcbm2018HodoPar::GetModuleSwapXY | ( | UInt_t | uModuleIdx | ) |
Definition at line 212 of file CbmMcbm2018HodoPar.cxx.
References fiModSwapXY, and fuNbModules.
Referenced by GetChannelInModule().
|
inlinestaticconstexpr |
Definition at line 43 of file CbmMcbm2018HodoPar.h.
References kuNbAsicsPerFeb, and kuNbFebsPerCrob.
Referenced by GetNbAsicsPerDpb(), and CbmMcbm2018UnpackerAlgoHodo::ProcessMs().
|
inlinestaticconstexpr |
Definition at line 46 of file CbmMcbm2018HodoPar.h.
References GetNbAsicsPerCrob(), and kuNbCrobsPerDpb.
|
inlinestaticconstexpr |
Definition at line 42 of file CbmMcbm2018HodoPar.h.
References kuNbAsicsPerFeb.
Referenced by CbmMcbm2018UnpackerAlgoHodo::ProcessTs().
|
inlinestaticconstexpr |
Definition at line 49 of file CbmMcbm2018HodoPar.h.
References kuNbChanPerAsic.
|
inlinestaticconstexpr |
Definition at line 50 of file CbmMcbm2018HodoPar.h.
References kuNbAsicsPerFeb, and kuNbChanPerAsic.
|
inlinestaticconstexpr |
Definition at line 36 of file CbmMcbm2018HodoPar.h.
References kuNbCrobsPerDpb.
Referenced by CbmMcbm2018UnpackerAlgoHodo::InitParameters(), and CbmMcbm2018UnpackerAlgoHodo::ProcessMs().
|
inlinestaticconstexpr |
Definition at line 37 of file CbmMcbm2018HodoPar.h.
References kuNbElinksPerCrob.
Referenced by CbmMcbm2018UnpackerAlgoHodo::ProcessHitInfo(), and CbmMcbm2018UnpackerAlgoHodo::ProcessMs().
|
inlinestaticconstexpr |
Definition at line 38 of file CbmMcbm2018HodoPar.h.
References kuNbFebsPerCrob.
Referenced by CbmMcbm2018UnpackerAlgoHodo::InitParameters().
|
inlinestaticconstexpr |
Definition at line 39 of file CbmMcbm2018HodoPar.h.
References kuNbCrobsPerDpb, and kuNbFebsPerCrob.
|
inline |
Definition at line 65 of file CbmMcbm2018HodoPar.h.
References fuNbModules.
Referenced by CbmMcbm2018UnpackerAlgoHodo::InitParameters().
|
inline |
Definition at line 78 of file CbmMcbm2018HodoPar.h.
References GetNrOfFebs(), and kuNbAsicsPerFeb.
Referenced by CbmMcbm2018UnpackerAlgoHodo::InitParameters().
|
inline |
Definition at line 76 of file CbmMcbm2018HodoPar.h.
References fuNrOfDpbs, and kuNbCrobsPerDpb.
Referenced by GetNrOfFebs().
|
inline |
Definition at line 74 of file CbmMcbm2018HodoPar.h.
References fuNrOfDpbs.
Referenced by CbmMcbm2018UnpackerAlgoHodo::InitParameters().
|
inline |
Definition at line 77 of file CbmMcbm2018HodoPar.h.
References GetNrOfCrobs(), and kuNbFebsPerCrob.
Referenced by GetNrOfAsics(), CbmMcbm2018UnpackerAlgoHodo::InitParameters(), and IsFebActive().
Bool_t CbmMcbm2018HodoPar::getParams | ( | FairParamList * | l | ) |
Definition at line 81 of file CbmMcbm2018HodoPar.cxx.
References fdFebAdcBase, fdFebAdcGain, fdFebAdcThrGain, fdModCenterPosX, fdModCenterPosY, fiCrobActiveFlag, fiDbpIdArray, fiFebAdcThrOffs, fiFebModuleIdx, fiModAddress, fiModInvertX, fiModInvertY, fiModSwapXY, fuNbModules, fuNrOfDpbs, kuNbCrobsPerDpb, and kuNbFebsPerCrob.
Bool_t CbmMcbm2018HodoPar::IsCrobActive | ( | UInt_t | uDpbIdx, |
UInt_t | uCrobIdx | ||
) |
Definition at line 252 of file CbmMcbm2018HodoPar.cxx.
References fiCrobActiveFlag, fuNrOfDpbs, and kuNbCrobsPerDpb.
Referenced by CbmMcbm2018UnpackerAlgoHodo::InitParameters().
Bool_t CbmMcbm2018HodoPar::IsFebActive | ( | UInt_t | uDpbIdx, |
UInt_t | uCrobIdx, | ||
UInt_t | uFebIdx | ||
) |
Definition at line 284 of file CbmMcbm2018HodoPar.cxx.
References fuNrOfDpbs, IsFebActive(), kuNbCrobsPerDpb, and kuNbFebsPerCrob.
Bool_t CbmMcbm2018HodoPar::IsFebActive | ( | UInt_t | uFebInSystIdx | ) |
Definition at line 272 of file CbmMcbm2018HodoPar.cxx.
References fiFebModuleIdx, and GetNrOfFebs().
Referenced by IsFebActive().
void CbmMcbm2018HodoPar::putParams | ( | FairParamList * | l | ) |
Definition at line 57 of file CbmMcbm2018HodoPar.cxx.
References fdFebAdcBase, fdFebAdcGain, fdFebAdcThrGain, fdModCenterPosX, fdModCenterPosY, fiCrobActiveFlag, fiDbpIdArray, fiFebAdcThrOffs, fiFebModuleIdx, fiModAddress, fiModInvertX, fiModInvertY, fiModSwapXY, fuNbModules, and fuNrOfDpbs.
|
private |
Definition at line 184 of file CbmMcbm2018HodoPar.h.
Referenced by GetFebAdcBase(), GetFebAdcOffset(), getParams(), and putParams().
|
private |
Definition at line 182 of file CbmMcbm2018HodoPar.h.
Referenced by GetFebAdcGain(), getParams(), and putParams().
|
private |
Definition at line 186 of file CbmMcbm2018HodoPar.h.
Referenced by GetFebAdcOffset(), GetFebAdcThrGain(), getParams(), and putParams().
|
private |
Definition at line 164 of file CbmMcbm2018HodoPar.h.
Referenced by GetModuleCenterPosX(), getParams(), and putParams().
|
private |
Definition at line 166 of file CbmMcbm2018HodoPar.h.
Referenced by GetModuleCenterPosY(), getParams(), and putParams().
|
private |
Definition at line 178 of file CbmMcbm2018HodoPar.h.
Referenced by getParams(), IsCrobActive(), and putParams().
|
private |
Definition at line 176 of file CbmMcbm2018HodoPar.h.
Referenced by GetDpbId(), getParams(), and putParams().
|
private |
Definition at line 188 of file CbmMcbm2018HodoPar.h.
Referenced by GetFebAdcOffset(), GetFebAdcThrOffs(), getParams(), and putParams().
|
private |
Definition at line 180 of file CbmMcbm2018HodoPar.h.
Referenced by GetFebModuleIdx(), getParams(), IsFebActive(), and putParams().
|
private |
Definition at line 162 of file CbmMcbm2018HodoPar.h.
Referenced by GetModuleAddress(), getParams(), and putParams().
|
private |
Definition at line 170 of file CbmMcbm2018HodoPar.h.
Referenced by GetModuleInvertX(), getParams(), and putParams().
|
private |
Definition at line 172 of file CbmMcbm2018HodoPar.h.
Referenced by GetModuleInvertY(), getParams(), and putParams().
|
private |
Definition at line 168 of file CbmMcbm2018HodoPar.h.
Referenced by GetModuleSwapXY(), getParams(), and putParams().
|
private |
Map from channel index to Hodoscope Axis (X or Y)
Variables
Definition at line 161 of file CbmMcbm2018HodoPar.h.
Referenced by CheckModuleIndex(), GetChannelInModule(), GetModuleAddress(), GetModuleCenterPosX(), GetModuleCenterPosY(), GetModuleInvertX(), GetModuleInvertY(), GetModuleSwapXY(), GetNbOfModules(), getParams(), and putParams().
|
private |
Definition at line 174 of file CbmMcbm2018HodoPar.h.
Referenced by GetDpbId(), GetFebAdcBase(), GetFebAdcGain(), GetFebAdcOffset(), GetFebAdcThrGain(), GetFebAdcThrOffs(), GetFebModuleIdx(), GetNrOfCrobs(), GetNrOfDpbs(), getParams(), IsCrobActive(), IsFebActive(), and putParams().
|
private |
Map from eLink index to ASIC index within CROB ( 0 to kuNbFebsPerCrob * kuNbAsicPerFeb )
Definition at line 114 of file CbmMcbm2018HodoPar.h.
Referenced by ElinkIdxToFebIdx().
|
private |
Map from eLink index to ASIC index within CROB ( 0 to kuNbFebsPerCrob * kuNbAsicPerFeb )
Definition at line 120 of file CbmMcbm2018HodoPar.h.
Referenced by ChannelToFiber().
|
private |
Map from channel index to Hodoscope Fiber.
Definition at line 140 of file CbmMcbm2018HodoPar.h.
Referenced by ChannelToPixel().
|
private |
Map from channel index to PMT pixel.
Definition at line 150 of file CbmMcbm2018HodoPar.h.
Referenced by ChannelToAxis().
|
private |
Definition at line 104 of file CbmMcbm2018HodoPar.h.
Referenced by ElinkIdxToAsicIdxFebMuch().
|
staticprivate |
Definition at line 99 of file CbmMcbm2018HodoPar.h.
Referenced by GetNbAsicsPerCrob(), GetNbAsicsPerFeb(), GetNbChanPerFeb(), and GetNrOfAsics().
|
staticprivate |
Definition at line 101 of file CbmMcbm2018HodoPar.h.
Referenced by ChannelToAxis(), ChannelToFiber(), ChannelToPixel(), GetChannelInModule(), GetNbChanPerAsic(), and GetNbChanPerFeb().
|
staticprivate |
Constants.
Definition at line 94 of file CbmMcbm2018HodoPar.h.
Referenced by GetFebAdcBase(), GetFebAdcGain(), GetFebAdcOffset(), GetFebAdcThrGain(), GetFebAdcThrOffs(), GetFebModuleIdx(), GetNbAsicsPerDpb(), GetNbCrobsPerDpb(), GetNbFebsPerDpb(), GetNrOfCrobs(), getParams(), IsCrobActive(), and IsFebActive().
|
staticprivate |
Definition at line 95 of file CbmMcbm2018HodoPar.h.
Referenced by ElinkIdxToAsicIdxFebMuch(), ElinkIdxToFebIdx(), and GetNbElinkPerCrob().
|
staticprivate |
Definition at line 97 of file CbmMcbm2018HodoPar.h.
Referenced by GetFebAdcBase(), GetFebAdcGain(), GetFebAdcOffset(), GetFebAdcThrGain(), GetFebAdcThrOffs(), GetFebModuleIdx(), GetNbAsicsPerCrob(), GetNbFebsPerCrob(), GetNbFebsPerDpb(), GetNrOfFebs(), getParams(), and IsFebActive().
|
staticprivate |
Definition at line 102 of file CbmMcbm2018HodoPar.h.
Referenced by GetChannelInModule().