CbmRoot
CbmMcbm2018RichPar Class Reference

#include <CbmMcbm2018RichPar.h>

Inheritance diagram for CbmMcbm2018RichPar:
[legend]
Collaboration diagram for CbmMcbm2018RichPar:
[legend]

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
 

Detailed Description

Definition at line 13 of file CbmMcbm2018RichPar.h.

Constructor & Destructor Documentation

◆ CbmMcbm2018RichPar()

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.

◆ ~CbmMcbm2018RichPar()

CbmMcbm2018RichPar::~CbmMcbm2018RichPar ( )
virtual

Definition at line 26 of file CbmMcbm2018RichPar.cxx.

Member Function Documentation

◆ ClassDef()

CbmMcbm2018RichPar::ClassDef ( CbmMcbm2018RichPar  ,
 
)
private

◆ GetAddress()

Int_t CbmMcbm2018RichPar::GetAddress ( Int_t  ind) const

Definition at line 71 of file CbmMcbm2018RichPar.cxx.

References fTRBaddresses.

Referenced by CbmMcbm2018UnpackerAlgoRich::CreateHistograms().

◆ GetAddressIdx()

Int_t CbmMcbm2018RichPar::GetAddressIdx ( Int_t  addr) const

Definition at line 58 of file CbmMcbm2018RichPar.cxx.

References fTRBaddrMap.

Referenced by GetToTshift(), and CbmMcbm2018UnpackerAlgoRich::ProcessTimestampWord().

◆ GetNaddresses()

Int_t CbmMcbm2018RichPar::GetNaddresses ( void  ) const
inline

◆ getParams()

Bool_t CbmMcbm2018RichPar::getParams ( FairParamList *  l)
virtual

Definition at line 35 of file CbmMcbm2018RichPar.cxx.

References fToTshiftMap, fToTshifts, fTRBaddresses, fTRBaddrMap, and i.

◆ GetToTshift()

Double_t CbmMcbm2018RichPar::GetToTshift ( Int_t  tdc,
Int_t  ch 
) const
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().

◆ GetToTshift2()

Double_t CbmMcbm2018RichPar::GetToTshift2 ( Int_t  tdcIdx,
Int_t  ch 
) const
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().

◆ putParams()

void CbmMcbm2018RichPar::putParams ( FairParamList *  l)
virtual

Definition at line 28 of file CbmMcbm2018RichPar.cxx.

References fToTshifts, and fTRBaddresses.

Member Data Documentation

◆ fToTshiftMap

std::map<Int_t, Double_t> CbmMcbm2018RichPar::fToTshiftMap
private

key - unique channel ID, value - ToT shift

Definition at line 75 of file CbmMcbm2018RichPar.h.

Referenced by getParams(), and GetToTshift2().

◆ fToTshifts

TArrayD CbmMcbm2018RichPar::fToTshifts
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().

◆ fTRBaddresses

TArrayI CbmMcbm2018RichPar::fTRBaddresses
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().

◆ fTRBaddrMap

std::map<Int_t, Int_t> CbmMcbm2018RichPar::fTRBaddrMap
private

key - TRB address (0x7211), value - index in the array

Definition at line 70 of file CbmMcbm2018RichPar.h.

Referenced by GetAddressIdx(), and getParams().


The documentation for this class was generated from the following files: