CbmRoot
Loading...
Searching...
No Matches
CbmRichUnpackConfig Class Reference

#include <CbmRichUnpackConfig.h>

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

Public Member Functions

 CbmRichUnpackConfig (std::string detGeoSetupTag, UInt_t runid=0)
 Create the Cbm Trd Unpack Task object.
 
virtual ~CbmRichUnpackConfig ()
 Destroy the Cbm Trd Unpack Task object.
 
 CbmRichUnpackConfig (const CbmRichUnpackConfig &)=delete
 Copy constructor - not implemented.
 
CbmRichUnpackConfigoperator= (const CbmRichUnpackConfig &)=delete
 Assignment operator - not implemented.
 
std::shared_ptr< CbmRichUnpackMonitorGetMonitor ()
 Get the potentially added monitor.
 
void InitAlgo ()
 Initialize the algorithm, should include all steps needing te parameter objects to be present. In this function most initialization steps of the unpacker algorithms happen.
 
void MaskDiRICH (Int_t DiRICH)
 
void SetUnpackerVersion (CbmRichUnpackerVersion vers)
 
void SetMonitor (std::shared_ptr< CbmRichUnpackMonitor > value)
 Add a monitor to the unpacker.
 
void DoTotOffsetCorrection (Bool_t activate=true)
 (De-) Activate Tot offset correction of digis
 

Protected Member Functions

virtual std::shared_ptr< CbmRichUnpackAlgoBasechooseAlgo ()
 Choose the derived unpacker algorithm to be used for the DAQ output to Digi translation. If algo was already set manually by the user this algorithm is used.
 

Protected Attributes

std::vector< Int_t > fMaskedDiRICHes = {}
 
std::shared_ptr< CbmRichUnpackMonitorfMonitor = nullptr
 pointer to the monitor object
 
CbmRichUnpackerVersion fUnpackerVersion = CbmRichUnpackerVersion::v02
 Selector of Unpacker Version.
 
Bool_t fbDoToTCorr = true
 

Detailed Description

Definition at line 40 of file CbmRichUnpackConfig.h.

Constructor & Destructor Documentation

◆ CbmRichUnpackConfig() [1/2]

CbmRichUnpackConfig::CbmRichUnpackConfig ( std::string detGeoSetupTag,
UInt_t runid = 0 )

Create the Cbm Trd Unpack Task object.

Parameters
geoSetupTagGeometry setup tag for the given detector as used by CbmSetup objects
runidset if unpacker is rerun on a special run with special parameters
Remarks
We use the string instead of CbmSetup here, to not having to link against sim/steer...

Definition at line 18 of file CbmRichUnpackConfig.cxx.

◆ ~CbmRichUnpackConfig()

CbmRichUnpackConfig::~CbmRichUnpackConfig ( )
virtual

Destroy the Cbm Trd Unpack Task object.

Definition at line 23 of file CbmRichUnpackConfig.cxx.

◆ CbmRichUnpackConfig() [2/2]

CbmRichUnpackConfig::CbmRichUnpackConfig ( const CbmRichUnpackConfig & )
delete

Copy constructor - not implemented.

Member Function Documentation

◆ chooseAlgo()

std::shared_ptr< CbmRichUnpackAlgoBase > CbmRichUnpackConfig::chooseAlgo ( )
protectedvirtual

Choose the derived unpacker algorithm to be used for the DAQ output to Digi translation. If algo was already set manually by the user this algorithm is used.

Returns
Bool_t initOk

Definition at line 41 of file CbmRichUnpackConfig.cxx.

References fUnpackerVersion, v02, and v03.

◆ DoTotOffsetCorrection()

void CbmRichUnpackConfig::DoTotOffsetCorrection ( Bool_t activate = true)
inline

(De-) Activate Tot offset correction of digis

Parameters
activatebool to activate the Tot offset correction

Definition at line 85 of file CbmRichUnpackConfig.h.

References fbDoToTCorr.

◆ GetMonitor()

std::shared_ptr< CbmRichUnpackMonitor > CbmRichUnpackConfig::GetMonitor ( )
inline

Get the potentially added monitor.

Definition at line 67 of file CbmRichUnpackConfig.h.

References fMonitor.

◆ InitAlgo()

void CbmRichUnpackConfig::InitAlgo ( )

Initialize the algorithm, should include all steps needing te parameter objects to be present. In this function most initialization steps of the unpacker algorithms happen.

Definition at line 26 of file CbmRichUnpackConfig.cxx.

References fbDoToTCorr, fMaskedDiRICHes, and fMonitor.

◆ MaskDiRICH()

void CbmRichUnpackConfig::MaskDiRICH ( Int_t DiRICH)
inline

Definition at line 77 of file CbmRichUnpackConfig.h.

References fMaskedDiRICHes.

◆ operator=()

CbmRichUnpackConfig & CbmRichUnpackConfig::operator= ( const CbmRichUnpackConfig & )
delete

Assignment operator - not implemented.

◆ SetMonitor()

void CbmRichUnpackConfig::SetMonitor ( std::shared_ptr< CbmRichUnpackMonitor > value)
inline

Add a monitor to the unpacker.

Parameters
valueCbmRichUnpackMonitor

Definition at line 82 of file CbmRichUnpackConfig.h.

References fMonitor.

◆ SetUnpackerVersion()

void CbmRichUnpackConfig::SetUnpackerVersion ( CbmRichUnpackerVersion vers)
inline

Definition at line 79 of file CbmRichUnpackConfig.h.

References fUnpackerVersion.

Member Data Documentation

◆ fbDoToTCorr

Bool_t CbmRichUnpackConfig::fbDoToTCorr = true
protected

Definition at line 103 of file CbmRichUnpackConfig.h.

Referenced by DoTotOffsetCorrection(), and InitAlgo().

◆ fMaskedDiRICHes

std::vector<Int_t> CbmRichUnpackConfig::fMaskedDiRICHes = {}
protected

Definition at line 95 of file CbmRichUnpackConfig.h.

Referenced by InitAlgo(), and MaskDiRICH().

◆ fMonitor

std::shared_ptr<CbmRichUnpackMonitor> CbmRichUnpackConfig::fMonitor = nullptr
protected

pointer to the monitor object

Definition at line 98 of file CbmRichUnpackConfig.h.

Referenced by GetMonitor(), InitAlgo(), and SetMonitor().

◆ fUnpackerVersion

CbmRichUnpackerVersion CbmRichUnpackConfig::fUnpackerVersion = CbmRichUnpackerVersion::v02
protected

Selector of Unpacker Version.

Definition at line 101 of file CbmRichUnpackConfig.h.

Referenced by chooseAlgo(), and SetUnpackerVersion().


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