CbmRoot
|
#include <CbmMcbm2018RichPar.h>
Public Member Functions | |
CbmMcbm2018RichPar (const char *name="CbmMcbm2018RichPar", const char *title="RICH unpacker parameters", const char *context="Default") | |
virtual | ~CbmMcbm2018RichPar () |
virtual void | putParams (FairParamList *) |
virtual Bool_t | getParams (FairParamList *) |
Int_t | GetNaddresses (void) const |
Int_t | GetAddressIdx (Int_t addr) 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 |
Private Member Functions | |
ClassDef (CbmMcbm2018RichPar, 1) | |
Private Attributes | |
TArrayI | fTRBaddresses |
TArrayD | fToTshifts |
std::map< Int_t, Int_t > | fTRBaddrMap |
std::map< Int_t, Double_t > | fToTshiftMap |
Definition at line 13 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 19 of file CbmMcbm2018RichPar.cxx.
|
virtual |
Definition at line 26 of file CbmMcbm2018RichPar.cxx.
|
private |
Int_t CbmMcbm2018RichPar::GetAddress | ( | Int_t | ind | ) | const |
Definition at line 71 of file CbmMcbm2018RichPar.cxx.
References fTRBaddresses.
Referenced by CbmMcbm2018UnpackerAlgoRich::CreateHistograms().
Int_t CbmMcbm2018RichPar::GetAddressIdx | ( | Int_t | addr | ) | const |
Definition at line 58 of file CbmMcbm2018RichPar.cxx.
References fTRBaddrMap.
Referenced by GetToTshift(), and CbmMcbm2018UnpackerAlgoRich::ProcessTimestampWord().
|
inline |
Definition at line 26 of file CbmMcbm2018RichPar.h.
References fTRBaddresses.
Referenced by CbmMcbm2018UnpackerAlgoRich::CreateHistograms(), and CbmMcbm2018UnpackerAlgoRich::InitStorage().
|
virtual |
Definition at line 35 of file CbmMcbm2018RichPar.cxx.
References fToTshiftMap, fToTshifts, fTRBaddresses, fTRBaddrMap, and i.
|
inline |
First argument is TDC ID (i.e. 0x7210) TODO: test!
Definition at line 36 of file CbmMcbm2018RichPar.h.
References GetAddressIdx(), and GetToTshift2().
Referenced by CbmMcbm2018UnpackerAlgoRich::WriteOutputDigi().
|
inline |
First argument is TDC index (i.e. 0,1,2,...) TODO: test!
Definition at line 45 of file CbmMcbm2018RichPar.h.
References fToTshiftMap.
Referenced by GetToTshift().
|
virtual |
Definition at line 28 of file CbmMcbm2018RichPar.cxx.
References fToTshifts, and fTRBaddresses.
|
private |
key - unique channel ID, value - ToT shift
Definition at line 75 of file CbmMcbm2018RichPar.h.
Referenced by getParams(), and GetToTshift2().
|
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 64 of file CbmMcbm2018RichPar.h.
Referenced by getParams(), and putParams().
|
private |
List of TRB addresses required for unpacking (at least)
Definition at line 54 of file CbmMcbm2018RichPar.h.
Referenced by GetAddress(), GetNaddresses(), getParams(), and putParams().
|
private |
key - TRB address (0x7211), value - index in the array
Definition at line 70 of file CbmMcbm2018RichPar.h.
Referenced by GetAddressIdx(), and getParams().