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

#include <CbmTofUnpackConfig.h>

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

Public Member Functions

 CbmTofUnpackConfig (std::string detGeoSetupTag, UInt_t runid=0)
 Create the Cbm Tof Unpack Task object.
 
virtual ~CbmTofUnpackConfig ()
 Destroy the Cbm Tof Unpack Task object.
 
 CbmTofUnpackConfig (const CbmTofUnpackConfig &)=delete
 Copy constructor - not implemented.
 
CbmTofUnpackConfigoperator= (const CbmTofUnpackConfig &)=delete
 Assignment operator - not implemented.
 
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 SetFlagEpochCountHack2021 (bool bFlagin=true)
 Sets the flag enabling the epoch offset hack for the July 2021 data. Default is enable.
 
void SetFlagBmonParMode (bool bFlagin=true)
 Sets the flag switching to a request of CbmMcbm2018BmonPar. Default is enable.
 
void SetParFileName (std::string sNewName)
 Sets the name of the parameter file to be used.
 
void LoadParFileName ()
 
void SetMonitor (std::shared_ptr< CbmTofUnpackMonitor > value)
 Add a monitor to the unpacker.
 
std::shared_ptr< CbmTofUnpackMonitorGetMonitor ()
 Returns the monitor of the unpacker if any.
 

Protected Member Functions

virtual std::shared_ptr< CbmTofUnpackAlgochooseAlgo ()
 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.
 

Private Attributes

bool fbEpochCountHack2021 = false
 Control flags.
 
bool fbBmonParMode = false
 
std::string fsParFileName = "mTofCriPar.par"
 Parameter file name.
 
std::shared_ptr< CbmTofUnpackMonitorfMonitor = nullptr
 pointer to the monitor object
 

Detailed Description

Definition at line 35 of file CbmTofUnpackConfig.h.

Constructor & Destructor Documentation

◆ CbmTofUnpackConfig() [1/2]

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

Create the Cbm Tof 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 17 of file CbmTofUnpackConfig.cxx.

◆ ~CbmTofUnpackConfig()

CbmTofUnpackConfig::~CbmTofUnpackConfig ( )
virtual

Destroy the Cbm Tof Unpack Task object.

Definition at line 22 of file CbmTofUnpackConfig.cxx.

◆ CbmTofUnpackConfig() [2/2]

CbmTofUnpackConfig::CbmTofUnpackConfig ( const CbmTofUnpackConfig & )
delete

Copy constructor - not implemented.

Member Function Documentation

◆ chooseAlgo()

std::shared_ptr< CbmTofUnpackAlgo > CbmTofUnpackConfig::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 38 of file CbmTofUnpackConfig.cxx.

References fbBmonParMode.

◆ GetMonitor()

std::shared_ptr< CbmTofUnpackMonitor > CbmTofUnpackConfig::GetMonitor ( )
inline

Returns the monitor of the unpacker if any.

Returns
value CbmTofUnpackMonitor

Definition at line 95 of file CbmTofUnpackConfig.h.

References fMonitor.

◆ InitAlgo()

void CbmTofUnpackConfig::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 25 of file CbmTofUnpackConfig.cxx.

References fbEpochCountHack2021, and fMonitor.

◆ LoadParFileName()

void CbmTofUnpackConfig::LoadParFileName ( )
inline

Definition at line 89 of file CbmTofUnpackConfig.h.

References fsParFileName.

◆ operator=()

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

Assignment operator - not implemented.

◆ SetFlagBmonParMode()

void CbmTofUnpackConfig::SetFlagBmonParMode ( bool bFlagin = true)
inline

Sets the flag switching to a request of CbmMcbm2018BmonPar. Default is enable.

Parameters
[in]Optionalboolean flag value, default is true

Definition at line 81 of file CbmTofUnpackConfig.h.

References fbBmonParMode.

◆ SetFlagEpochCountHack2021()

void CbmTofUnpackConfig::SetFlagEpochCountHack2021 ( bool bFlagin = true)
inline

Sets the flag enabling the epoch offset hack for the July 2021 data. Default is enable.

Parameters
[in]Optionalboolean flag value, default is true

Definition at line 74 of file CbmTofUnpackConfig.h.

References fbEpochCountHack2021.

◆ SetMonitor()

void CbmTofUnpackConfig::SetMonitor ( std::shared_ptr< CbmTofUnpackMonitor > value)
inline

Add a monitor to the unpacker.

Parameters
valueCbmStsUnpackMonitor

Definition at line 92 of file CbmTofUnpackConfig.h.

References fMonitor.

◆ SetParFileName()

void CbmTofUnpackConfig::SetParFileName ( std::string sNewName)
inline

Sets the name of the parameter file to be used.

Parameters
[in]std:string,pathshould not be included as set in the Config class

Definition at line 88 of file CbmTofUnpackConfig.h.

References fsParFileName.

Member Data Documentation

◆ fbBmonParMode

bool CbmTofUnpackConfig::fbBmonParMode = false
private

Definition at line 108 of file CbmTofUnpackConfig.h.

Referenced by chooseAlgo(), and SetFlagBmonParMode().

◆ fbEpochCountHack2021

bool CbmTofUnpackConfig::fbEpochCountHack2021 = false
private

Control flags.

Definition at line 107 of file CbmTofUnpackConfig.h.

Referenced by InitAlgo(), and SetFlagEpochCountHack2021().

◆ fMonitor

std::shared_ptr<CbmTofUnpackMonitor> CbmTofUnpackConfig::fMonitor = nullptr
private

pointer to the monitor object

Definition at line 113 of file CbmTofUnpackConfig.h.

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

◆ fsParFileName

std::string CbmTofUnpackConfig::fsParFileName = "mTofCriPar.par"
private

Parameter file name.

Definition at line 110 of file CbmTofUnpackConfig.h.

Referenced by LoadParFileName(), and SetParFileName().


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