CbmRoot
Loading...
Searching...
No Matches
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")
 
CbmMcbm2018RichParoperator= (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
 

Detailed Description

Definition at line 18 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 23 of file CbmMcbm2018RichPar.cxx.

◆ ~CbmMcbm2018RichPar()

CbmMcbm2018RichPar::~CbmMcbm2018RichPar ( )
virtual

Definition at line 29 of file CbmMcbm2018RichPar.cxx.

Member Function Documentation

◆ ClassDef()

CbmMcbm2018RichPar::ClassDef ( CbmMcbm2018RichPar ,
2  )
private

◆ GetAddress()

Int_t CbmMcbm2018RichPar::GetAddress ( Int_t ind) const

◆ GetAddressIdx()

Int_t CbmMcbm2018RichPar::GetAddressIdx ( Int_t addr,
bool bVerbose = true ) const

◆ GetNaddresses()

◆ getParams()

Bool_t CbmMcbm2018RichPar::getParams ( FairParamList * l)
virtual

Definition at line 39 of file CbmMcbm2018RichPar.cxx.

References fToTshifts, fTRBaddresses, and LoadInternalContainers().

◆ GetToTshift()

Double_t CbmMcbm2018RichPar::GetToTshift ( Int_t tdc,
Int_t ch ) const
inline

◆ GetToTshift2()

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().

◆ LoadInternalContainers()

void CbmMcbm2018RichPar::LoadInternalContainers ( )

Definition at line 51 of file CbmMcbm2018RichPar.cxx.

References fToTshiftMap, fToTshifts, fTRBaddresses, and fTRBaddrMap.

Referenced by getParams(), and operator=().

◆ operator=()

CbmMcbm2018RichPar & CbmMcbm2018RichPar::operator= ( const CbmMcbm2018RichPar & other)
inline

Explicit copy assignment operator due to vector and map members!

Definition at line 24 of file CbmMcbm2018RichPar.h.

References fToTshifts, fTRBaddresses, and LoadInternalContainers().

◆ Print()

void CbmMcbm2018RichPar::Print ( Option_t * option = "") const

◆ putParams()

void CbmMcbm2018RichPar::putParams ( FairParamList * l)
virtual

Definition at line 31 of file CbmMcbm2018RichPar.cxx.

References fToTshifts, and fTRBaddresses.

Member Data Documentation

◆ fToTshiftMap

std::vector<Double_t> CbmMcbm2018RichPar::fToTshiftMap
private

index - unique channel ID, value - ToT shift

Definition at line 91 of file CbmMcbm2018RichPar.h.

Referenced by GetToTshift2(), and LoadInternalContainers().

◆ 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 80 of file CbmMcbm2018RichPar.h.

Referenced by getParams(), LoadInternalContainers(), operator=(), and putParams().

◆ fTRBaddresses

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

◆ fTRBaddrMap

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

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

Definition at line 86 of file CbmMcbm2018RichPar.h.

Referenced by GetAddressIdx(), LoadInternalContainers(), and Print().


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