CbmRoot
|
#include <CbmMcbm2018RichPar.h>
Public Member Functions | |
CbmMcbm2018RichPar (const char *name="CbmMcbm2018RichPar", const char *title="RICH unpacker parameters", const char *context="Default") | |
CbmMcbm2018RichPar & | operator= (const CbmMcbm2018RichPar &other) |
Explicit copy assignment operator due to vector and map members! | |
virtual | ~CbmMcbm2018RichPar () |
virtual void | putParams (FairParamList *) |
virtual Bool_t | getParams (FairParamList *) |
void | LoadInternalContainers () |
Int_t | GetNaddresses (void) const |
Int_t | GetAddressIdx (Int_t addr, bool bVerbose=true) const |
Int_t | GetAddress (Int_t ind) const |
Double_t | GetToTshift (Int_t tdc, Int_t ch) const |
Double_t | GetToTshift2 (Int_t tdcIdx, Int_t ch) const |
void | Print (Option_t *option="") const |
Private Member Functions | |
ClassDef (CbmMcbm2018RichPar, 2) | |
Private Attributes | |
TArrayI | fTRBaddresses |
TArrayD | fToTshifts |
std::map< Int_t, Int_t > | fTRBaddrMap |
std::vector< Double_t > | fToTshiftMap |
Definition at line 18 of file CbmMcbm2018RichPar.h.
CbmMcbm2018RichPar::CbmMcbm2018RichPar | ( | const char * | name = "CbmMcbm2018RichPar", |
const char * | title = "RICH unpacker parameters", | ||
const char * | context = "Default" ) |
TODO: If the TBR addess is not provided in the par file but found in the data file, The std::map::at will throw out an exception which is not currectly caught.
Definition at line 23 of file CbmMcbm2018RichPar.cxx.
|
virtual |
Definition at line 29 of file CbmMcbm2018RichPar.cxx.
|
private |
Int_t CbmMcbm2018RichPar::GetAddress | ( | Int_t | ind | ) | const |
Definition at line 89 of file CbmMcbm2018RichPar.cxx.
References fTRBaddresses.
Referenced by CbmMcbm2018UnpackerAlgoRich2020::CreateHistograms(), CbmMcbm2018UnpackerAlgoRich::CreateHistograms(), CbmRichUnpackMonitor::CreateHistograms(), and Print().
Int_t CbmMcbm2018RichPar::GetAddressIdx | ( | Int_t | addr, |
bool | bVerbose = true ) const |
Definition at line 70 of file CbmMcbm2018RichPar.cxx.
References fTRBaddrMap, GetNaddresses(), and Print().
Referenced by CbmRichUnpackMonitor::FillDigisToTDiRICH(), GetToTshift(), CbmRichUnpackAlgo2022::processSubSubEvent(), and CbmMcbm2018UnpackerAlgoRich2020::ProcessTimestampWord().
|
inline |
Definition at line 41 of file CbmMcbm2018RichPar.h.
References fTRBaddresses.
Referenced by CbmMcbm2018UnpackerAlgoRich2020::CreateHistograms(), CbmMcbm2018UnpackerAlgoRich::CreateHistograms(), CbmRichUnpackMonitor::CreateHistograms(), GetAddressIdx(), CbmMcbm2018UnpackerAlgoRich2020::InitStorage(), and Print().
|
virtual |
Definition at line 39 of file CbmMcbm2018RichPar.cxx.
References fToTshifts, fTRBaddresses, and LoadInternalContainers().
|
inline |
First argument is TDC ID (i.e. 0x7210) TODO: test!
Definition at line 51 of file CbmMcbm2018RichPar.h.
References GetAddressIdx(), and GetToTshift2().
Referenced by CbmMcbm2018UnpackerAlgoRich2020::WriteOutputDigi(), CbmMcbm2018UnpackerAlgoRich::WriteOutputDigi(), CbmRichUnpackAlgo2022::writeOutputDigi(), and CbmRichUnpackAlgo::writeOutputDigi().
Double_t CbmMcbm2018RichPar::GetToTshift2 | ( | Int_t | tdcIdx, |
Int_t | ch ) const |
First argument is TDC index (i.e. 0,1,2,...) TODO: test!
Definition at line 95 of file CbmMcbm2018RichPar.cxx.
References fToTshiftMap.
Referenced by GetToTshift().
void CbmMcbm2018RichPar::LoadInternalContainers | ( | ) |
Definition at line 51 of file CbmMcbm2018RichPar.cxx.
References fToTshiftMap, fToTshifts, fTRBaddresses, and fTRBaddrMap.
Referenced by getParams(), and operator=().
|
inline |
Explicit copy assignment operator due to vector and map members!
Definition at line 24 of file CbmMcbm2018RichPar.h.
References fToTshifts, fTRBaddresses, and LoadInternalContainers().
void CbmMcbm2018RichPar::Print | ( | Option_t * | option = "" | ) | const |
Definition at line 104 of file CbmMcbm2018RichPar.cxx.
References fTRBaddrMap, GetAddress(), and GetNaddresses().
Referenced by GetAddressIdx(), and CbmRichUnpackAlgoBase::initParSet().
|
virtual |
Definition at line 31 of file CbmMcbm2018RichPar.cxx.
References fToTshifts, and fTRBaddresses.
|
private |
index - unique channel ID, value - ToT shift
Definition at line 91 of file CbmMcbm2018RichPar.h.
Referenced by GetToTshift2(), and LoadInternalContainers().
|
private |
Array of shifts added to the calculated ToTs for each channel. The array is organized as follows: For each entry in the fTRBaddresses there is a sub-array of 33 elements corresponding to the 33 channels of the TDC. These sub-arrays are listed one after another in the order the TDCs appear in the fTRBaddresses array.
Definition at line 80 of file CbmMcbm2018RichPar.h.
Referenced by getParams(), LoadInternalContainers(), operator=(), and putParams().
|
private |
List of TRB addresses required for unpacking (at least)
Definition at line 70 of file CbmMcbm2018RichPar.h.
Referenced by GetAddress(), GetNaddresses(), getParams(), LoadInternalContainers(), operator=(), and putParams().
|
private |
key - TRB address (0x7211), value - index in the array
Definition at line 86 of file CbmMcbm2018RichPar.h.
Referenced by GetAddressIdx(), LoadInternalContainers(), and Print().