CbmRoot
|
#include <CbmCosy2019HodoPar.h>
Public Member Functions | |
CbmCosy2019HodoPar (const char *name="CbmCosy2019HodoPar", const char *title="Much parameters", const char *context="Default") | |
virtual | ~CbmCosy2019HodoPar () |
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 (CbmCosy2019HodoPar, 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 ) | |
const UInt_t | kuChannelToFiberMap [kuNbChanPerAsic] |
Map from eLink index to ASIC index within CROB ( 0 to kuNbFebsPerCrob * kuNbAsicPerFeb ) | |
const UInt_t | kuChannelToPixelMap [kuNbChanPerAsic] |
Map from channel index to Hodoscope Fiber. | |
const UInt_t | kuChannelToPlaneMap [kuNbChanPerAsic] |
Map from channel index to PMT pixel. | |
UInt_t | fuNbModules |
Map from channel index to Hodoscope Axis (X or Y) | |
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. | |
static const UInt_t | kuNbElinksPerCrob = 42 |
static const UInt_t | kuNbFebsPerCrob = 6 |
static const UInt_t | kuNbAsicsPerFeb = 1 |
static const UInt_t | kuNbChanPerAsic = 128 |
static const UInt_t | kuNbFiberPerAxis = 64 |
Definition at line 22 of file CbmCosy2019HodoPar.h.
CbmCosy2019HodoPar::CbmCosy2019HodoPar | ( | const char * | name = "CbmCosy2019HodoPar", |
const char * | title = "Much parameters", | ||
const char * | context = "Default" ) |
Standard constructor
Definition at line 23 of file CbmCosy2019HodoPar.cxx.
|
virtual |
Destructor
Definition at line 47 of file CbmCosy2019HodoPar.cxx.
UInt_t CbmCosy2019HodoPar::ChannelToAxis | ( | UInt_t | uChan | ) |
Definition at line 167 of file CbmCosy2019HodoPar.cxx.
References kuChannelToPlaneMap, and kuNbChanPerAsic.
Referenced by GetChannelInModule().
UInt_t CbmCosy2019HodoPar::ChannelToFiber | ( | UInt_t | uChan | ) |
Definition at line 149 of file CbmCosy2019HodoPar.cxx.
References kuChannelToFiberMap, and kuNbChanPerAsic.
Referenced by GetChannelInModule().
UInt_t CbmCosy2019HodoPar::ChannelToPixel | ( | UInt_t | uChan | ) |
Definition at line 158 of file CbmCosy2019HodoPar.cxx.
References kuChannelToPixelMap, and kuNbChanPerAsic.
Bool_t CbmCosy2019HodoPar::CheckModuleIndex | ( | UInt_t | uModuleIdx | ) |
Definition at line 177 of file CbmCosy2019HodoPar.cxx.
References fuNbModules.
|
private |
|
virtual |
Reset all parameters
Definition at line 52 of file CbmCosy2019HodoPar.cxx.
|
inline |
Definition at line 50 of file CbmCosy2019HodoPar.h.
References ElinkIdxToAsicIdxFebMuch().
Referenced by CbmCosy2019UnpackerAlgoHodo::ProcessMs().
UInt_t CbmCosy2019HodoPar::ElinkIdxToAsicIdxFebMuch | ( | UInt_t | uElink | ) |
Definition at line 139 of file CbmCosy2019HodoPar.cxx.
References kuCrobMapElinkFebMuch, and kuNbElinksPerCrob.
Referenced by ElinkIdxToAsicIdx().
Int_t CbmCosy2019HodoPar::ElinkIdxToFebIdx | ( | UInt_t | uElink | ) |
Definition at line 128 of file CbmCosy2019HodoPar.cxx.
References kiCrobMapElinkFebIdx, and kuNbElinksPerCrob.
Referenced by CbmCosy2019UnpackerAlgoHodo::ProcessMs().
UInt_t CbmCosy2019HodoPar::GetChannelInModule | ( | UInt_t | uModuleIdx, |
UInt_t | uChan ) |
Check for Axis inversion
Check for axis swap
Definition at line 460 of file CbmCosy2019HodoPar.cxx.
References ChannelToAxis(), ChannelToFiber(), fuNbModules, GetModuleInvertX(), GetModuleInvertY(), GetModuleSwapXY(), kuNbChanPerAsic, and kuNbFiberPerAxis.
Referenced by CbmCosy2019UnpackerAlgoHodo::ProcessTs().
UInt_t CbmCosy2019HodoPar::GetDpbId | ( | UInt_t | uDpbIdx | ) |
Definition at line 240 of file CbmCosy2019HodoPar.cxx.
References fiDbpIdArray, and fuNrOfDpbs.
Referenced by CbmCosy2019UnpackerAlgoHodo::InitParameters().
Double_t CbmCosy2019HodoPar::GetFebAdcBase | ( | UInt_t | uDpbIdx, |
UInt_t | uCrobIdx, | ||
UInt_t | uFebIdx ) |
Definition at line 381 of file CbmCosy2019HodoPar.cxx.
References fdFebAdcBase, fuNrOfDpbs, kuNbCrobsPerDpb, and kuNbFebsPerCrob.
Double_t CbmCosy2019HodoPar::GetFebAdcGain | ( | UInt_t | uDpbIdx, |
UInt_t | uCrobIdx, | ||
UInt_t | uFebIdx ) |
Definition at line 329 of file CbmCosy2019HodoPar.cxx.
References fdFebAdcGain, fuNrOfDpbs, kuNbCrobsPerDpb, and kuNbFebsPerCrob.
Referenced by CbmCosy2019UnpackerAlgoHodo::InitParameters().
Double_t CbmCosy2019HodoPar::GetFebAdcOffset | ( | UInt_t | uDpbIdx, |
UInt_t | uCrobIdx, | ||
UInt_t | uFebIdx ) |
Definition at line 355 of file CbmCosy2019HodoPar.cxx.
References fdFebAdcBase, fdFebAdcThrGain, fiFebAdcThrOffs, fuNrOfDpbs, kuNbCrobsPerDpb, and kuNbFebsPerCrob.
Referenced by CbmCosy2019UnpackerAlgoHodo::InitParameters().
Double_t CbmCosy2019HodoPar::GetFebAdcThrGain | ( | UInt_t | uDpbIdx, |
UInt_t | uCrobIdx, | ||
UInt_t | uFebIdx ) |
Definition at line 407 of file CbmCosy2019HodoPar.cxx.
References fdFebAdcThrGain, fuNrOfDpbs, kuNbCrobsPerDpb, and kuNbFebsPerCrob.
Int_t CbmCosy2019HodoPar::GetFebAdcThrOffs | ( | UInt_t | uDpbIdx, |
UInt_t | uCrobIdx, | ||
UInt_t | uFebIdx ) |
Definition at line 433 of file CbmCosy2019HodoPar.cxx.
References fiFebAdcThrOffs, fuNrOfDpbs, kuNbCrobsPerDpb, and kuNbFebsPerCrob.
Int_t CbmCosy2019HodoPar::GetFebModuleIdx | ( | UInt_t | uDpbIdx, |
UInt_t | uCrobIdx, | ||
UInt_t | uFebIdx ) |
Definition at line 303 of file CbmCosy2019HodoPar.cxx.
References fiFebModuleIdx, fuNrOfDpbs, kuNbCrobsPerDpb, and kuNbFebsPerCrob.
Referenced by CbmCosy2019UnpackerAlgoHodo::InitParameters().
UInt_t CbmCosy2019HodoPar::GetModuleAddress | ( | UInt_t | uModuleIdx | ) |
Definition at line 185 of file CbmCosy2019HodoPar.cxx.
References fiModAddress, and fuNbModules.
Referenced by CbmCosy2019UnpackerAlgoHodo::InitParameters().
Double_t CbmCosy2019HodoPar::GetModuleCenterPosX | ( | UInt_t | uModuleIdx | ) |
Definition at line 194 of file CbmCosy2019HodoPar.cxx.
References fdModCenterPosX, and fuNbModules.
Double_t CbmCosy2019HodoPar::GetModuleCenterPosY | ( | UInt_t | uModuleIdx | ) |
Definition at line 203 of file CbmCosy2019HodoPar.cxx.
References fdModCenterPosY, and fuNbModules.
Bool_t CbmCosy2019HodoPar::GetModuleInvertX | ( | UInt_t | uModuleIdx | ) |
Definition at line 221 of file CbmCosy2019HodoPar.cxx.
References fiModInvertX, and fuNbModules.
Referenced by GetChannelInModule().
Bool_t CbmCosy2019HodoPar::GetModuleInvertY | ( | UInt_t | uModuleIdx | ) |
Definition at line 230 of file CbmCosy2019HodoPar.cxx.
References fiModInvertY, and fuNbModules.
Referenced by GetChannelInModule().
Bool_t CbmCosy2019HodoPar::GetModuleSwapXY | ( | UInt_t | uModuleIdx | ) |
Definition at line 212 of file CbmCosy2019HodoPar.cxx.
References fiModSwapXY, and fuNbModules.
Referenced by GetChannelInModule().
|
inlinestaticconstexpr |
Definition at line 44 of file CbmCosy2019HodoPar.h.
References kuNbAsicsPerFeb, and kuNbFebsPerCrob.
Referenced by GetNbAsicsPerDpb(), and CbmCosy2019UnpackerAlgoHodo::ProcessMs().
|
inlinestaticconstexpr |
Definition at line 45 of file CbmCosy2019HodoPar.h.
References GetNbAsicsPerCrob(), and kuNbCrobsPerDpb.
|
inlinestaticconstexpr |
Definition at line 43 of file CbmCosy2019HodoPar.h.
References kuNbAsicsPerFeb.
Referenced by CbmCosy2019UnpackerAlgoHodo::ProcessTs().
|
inlinestaticconstexpr |
Definition at line 46 of file CbmCosy2019HodoPar.h.
References kuNbChanPerAsic.
|
inlinestaticconstexpr |
Definition at line 47 of file CbmCosy2019HodoPar.h.
References kuNbAsicsPerFeb, and kuNbChanPerAsic.
|
inlinestaticconstexpr |
Definition at line 39 of file CbmCosy2019HodoPar.h.
References kuNbCrobsPerDpb.
Referenced by CbmCosy2019UnpackerAlgoHodo::InitParameters(), and CbmCosy2019UnpackerAlgoHodo::ProcessMs().
|
inlinestaticconstexpr |
Definition at line 40 of file CbmCosy2019HodoPar.h.
References kuNbElinksPerCrob.
Referenced by CbmCosy2019UnpackerAlgoHodo::ProcessHitInfo(), and CbmCosy2019UnpackerAlgoHodo::ProcessMs().
|
inlinestaticconstexpr |
Definition at line 41 of file CbmCosy2019HodoPar.h.
References kuNbFebsPerCrob.
Referenced by CbmCosy2019UnpackerAlgoHodo::InitParameters().
|
inlinestaticconstexpr |
Definition at line 42 of file CbmCosy2019HodoPar.h.
References kuNbCrobsPerDpb, and kuNbFebsPerCrob.
|
inline |
Definition at line 58 of file CbmCosy2019HodoPar.h.
References fuNbModules.
Referenced by CbmCosy2019UnpackerAlgoHodo::InitParameters().
|
inline |
Definition at line 71 of file CbmCosy2019HodoPar.h.
References GetNrOfFebs(), and kuNbAsicsPerFeb.
Referenced by CbmCosy2019UnpackerAlgoHodo::InitParameters().
|
inline |
Definition at line 69 of file CbmCosy2019HodoPar.h.
References fuNrOfDpbs, and kuNbCrobsPerDpb.
Referenced by GetNrOfFebs().
|
inline |
Definition at line 67 of file CbmCosy2019HodoPar.h.
References fuNrOfDpbs.
Referenced by CbmCosy2019UnpackerAlgoHodo::InitParameters().
|
inline |
Definition at line 70 of file CbmCosy2019HodoPar.h.
References GetNrOfCrobs(), and kuNbFebsPerCrob.
Referenced by GetNrOfAsics(), CbmCosy2019UnpackerAlgoHodo::InitParameters(), and IsFebActive().
Bool_t CbmCosy2019HodoPar::getParams | ( | FairParamList * | l | ) |
Definition at line 86 of file CbmCosy2019HodoPar.cxx.
References fdFebAdcBase, fdFebAdcGain, fdFebAdcThrGain, fdModCenterPosX, fdModCenterPosY, fiCrobActiveFlag, fiDbpIdArray, fiFebAdcThrOffs, fiFebModuleIdx, fiModAddress, fiModInvertX, fiModInvertY, fiModSwapXY, fuNbModules, fuNrOfDpbs, kuNbCrobsPerDpb, and kuNbFebsPerCrob.
Bool_t CbmCosy2019HodoPar::IsCrobActive | ( | UInt_t | uDpbIdx, |
UInt_t | uCrobIdx ) |
Definition at line 249 of file CbmCosy2019HodoPar.cxx.
References fiCrobActiveFlag, fuNrOfDpbs, and kuNbCrobsPerDpb.
Referenced by CbmCosy2019UnpackerAlgoHodo::InitParameters().
Bool_t CbmCosy2019HodoPar::IsFebActive | ( | UInt_t | uDpbIdx, |
UInt_t | uCrobIdx, | ||
UInt_t | uFebIdx ) |
Definition at line 277 of file CbmCosy2019HodoPar.cxx.
References fuNrOfDpbs, IsFebActive(), kuNbCrobsPerDpb, and kuNbFebsPerCrob.
Bool_t CbmCosy2019HodoPar::IsFebActive | ( | UInt_t | uFebInSystIdx | ) |
Definition at line 265 of file CbmCosy2019HodoPar.cxx.
References fiFebModuleIdx, and GetNrOfFebs().
Referenced by IsFebActive().
void CbmCosy2019HodoPar::putParams | ( | FairParamList * | l | ) |
Definition at line 61 of file CbmCosy2019HodoPar.cxx.
References fdFebAdcBase, fdFebAdcGain, fdFebAdcThrGain, fdModCenterPosX, fdModCenterPosY, fiCrobActiveFlag, fiDbpIdArray, fiFebAdcThrOffs, fiFebModuleIdx, fiModAddress, fiModInvertX, fiModInvertY, fiModSwapXY, fuNbModules, and fuNrOfDpbs.
|
private |
Definition at line 155 of file CbmCosy2019HodoPar.h.
Referenced by GetFebAdcBase(), GetFebAdcOffset(), getParams(), and putParams().
|
private |
Definition at line 154 of file CbmCosy2019HodoPar.h.
Referenced by GetFebAdcGain(), getParams(), and putParams().
|
private |
Definition at line 156 of file CbmCosy2019HodoPar.h.
Referenced by GetFebAdcOffset(), GetFebAdcThrGain(), getParams(), and putParams().
|
private |
Definition at line 143 of file CbmCosy2019HodoPar.h.
Referenced by GetModuleCenterPosX(), getParams(), and putParams().
|
private |
Definition at line 144 of file CbmCosy2019HodoPar.h.
Referenced by GetModuleCenterPosY(), getParams(), and putParams().
|
private |
Definition at line 151 of file CbmCosy2019HodoPar.h.
Referenced by getParams(), IsCrobActive(), and putParams().
|
private |
Definition at line 150 of file CbmCosy2019HodoPar.h.
Referenced by GetDpbId(), getParams(), and putParams().
|
private |
Definition at line 158 of file CbmCosy2019HodoPar.h.
Referenced by GetFebAdcOffset(), GetFebAdcThrOffs(), getParams(), and putParams().
|
private |
Definition at line 153 of file CbmCosy2019HodoPar.h.
Referenced by GetFebModuleIdx(), getParams(), IsFebActive(), and putParams().
|
private |
Definition at line 142 of file CbmCosy2019HodoPar.h.
Referenced by GetModuleAddress(), getParams(), and putParams().
|
private |
Definition at line 146 of file CbmCosy2019HodoPar.h.
Referenced by GetModuleInvertX(), getParams(), and putParams().
|
private |
Definition at line 147 of file CbmCosy2019HodoPar.h.
Referenced by GetModuleInvertY(), getParams(), and putParams().
|
private |
Definition at line 145 of file CbmCosy2019HodoPar.h.
Referenced by GetModuleSwapXY(), getParams(), and putParams().
|
private |
Map from channel index to Hodoscope Axis (X or Y)
Variables
Definition at line 141 of file CbmCosy2019HodoPar.h.
Referenced by CheckModuleIndex(), GetChannelInModule(), GetModuleAddress(), GetModuleCenterPosX(), GetModuleCenterPosY(), GetModuleInvertX(), GetModuleInvertY(), GetModuleSwapXY(), GetNbOfModules(), getParams(), and putParams().
|
private |
Definition at line 149 of file CbmCosy2019HodoPar.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 103 of file CbmCosy2019HodoPar.h.
Referenced by ElinkIdxToFebIdx().
|
private |
Map from eLink index to ASIC index within CROB ( 0 to kuNbFebsPerCrob * kuNbAsicPerFeb )
Definition at line 106 of file CbmCosy2019HodoPar.h.
Referenced by ChannelToFiber().
|
private |
Map from channel index to Hodoscope Fiber.
Definition at line 125 of file CbmCosy2019HodoPar.h.
Referenced by ChannelToPixel().
|
private |
Map from channel index to PMT pixel.
Definition at line 134 of file CbmCosy2019HodoPar.h.
Referenced by ChannelToAxis().
|
private |
Definition at line 93 of file CbmCosy2019HodoPar.h.
Referenced by ElinkIdxToAsicIdxFebMuch().
|
staticprivate |
Definition at line 90 of file CbmCosy2019HodoPar.h.
Referenced by GetNbAsicsPerCrob(), GetNbAsicsPerFeb(), GetNbChanPerFeb(), and GetNrOfAsics().
|
staticprivate |
Definition at line 91 of file CbmCosy2019HodoPar.h.
Referenced by ChannelToAxis(), ChannelToFiber(), ChannelToPixel(), GetChannelInModule(), GetNbChanPerAsic(), and GetNbChanPerFeb().
|
staticprivate |
Constants.
Definition at line 87 of file CbmCosy2019HodoPar.h.
Referenced by GetFebAdcBase(), GetFebAdcGain(), GetFebAdcOffset(), GetFebAdcThrGain(), GetFebAdcThrOffs(), GetFebModuleIdx(), GetNbAsicsPerDpb(), GetNbCrobsPerDpb(), GetNbFebsPerDpb(), GetNrOfCrobs(), getParams(), IsCrobActive(), and IsFebActive().
|
staticprivate |
Definition at line 88 of file CbmCosy2019HodoPar.h.
Referenced by ElinkIdxToAsicIdxFebMuch(), ElinkIdxToFebIdx(), and GetNbElinkPerCrob().
|
staticprivate |
Definition at line 89 of file CbmCosy2019HodoPar.h.
Referenced by GetFebAdcBase(), GetFebAdcGain(), GetFebAdcOffset(), GetFebAdcThrGain(), GetFebAdcThrOffs(), GetFebModuleIdx(), GetNbAsicsPerCrob(), GetNbFebsPerCrob(), GetNbFebsPerDpb(), GetNrOfFebs(), getParams(), and IsFebActive().
|
staticprivate |
Definition at line 92 of file CbmCosy2019HodoPar.h.
Referenced by GetChannelInModule().