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

#include <CbmBmonUnpackConfig.h>

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

Public Member Functions

 CbmBmonUnpackConfig (std::string detGeoSetupTag, UInt_t runid=0)
 Create the Cbm Tof Unpack Task object.
 
virtual ~CbmBmonUnpackConfig ()
 Destroy the Cbm Tof Unpack Task object.
 
 CbmBmonUnpackConfig (const CbmBmonUnpackConfig &)=delete
 Copy constructor - not implemented.
 
CbmBmonUnpackConfigoperator= (const CbmBmonUnpackConfig &)=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< CbmBmonUnpackAlgochooseAlgo ()
 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 22 of file CbmBmonUnpackConfig.h.

Constructor & Destructor Documentation

◆ CbmBmonUnpackConfig() [1/2]

CbmBmonUnpackConfig::CbmBmonUnpackConfig ( 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 18 of file CbmBmonUnpackConfig.cxx.

References SetFlagBmonParMode().

◆ ~CbmBmonUnpackConfig()

CbmBmonUnpackConfig::~CbmBmonUnpackConfig ( )
virtual

Destroy the Cbm Tof Unpack Task object.

Definition at line 24 of file CbmBmonUnpackConfig.cxx.

◆ CbmBmonUnpackConfig() [2/2]

CbmBmonUnpackConfig::CbmBmonUnpackConfig ( const CbmBmonUnpackConfig & )
delete

Copy constructor - not implemented.

Member Function Documentation

◆ chooseAlgo()

std::shared_ptr< CbmBmonUnpackAlgo > CbmBmonUnpackConfig::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 40 of file CbmBmonUnpackConfig.cxx.

References fbBmonParMode.

◆ GetMonitor()

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

Returns the monitor of the unpacker if any.

Returns
value CbmTofUnpackMonitor

Definition at line 82 of file CbmBmonUnpackConfig.h.

References fMonitor.

◆ InitAlgo()

void CbmBmonUnpackConfig::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 27 of file CbmBmonUnpackConfig.cxx.

References fbEpochCountHack2021, and fMonitor.

◆ LoadParFileName()

void CbmBmonUnpackConfig::LoadParFileName ( )
inline

Definition at line 76 of file CbmBmonUnpackConfig.h.

References fsParFileName.

◆ operator=()

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

Assignment operator - not implemented.

◆ SetFlagBmonParMode()

void CbmBmonUnpackConfig::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 68 of file CbmBmonUnpackConfig.h.

References fbBmonParMode.

Referenced by CbmBmonUnpackConfig().

◆ SetFlagEpochCountHack2021()

void CbmBmonUnpackConfig::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 61 of file CbmBmonUnpackConfig.h.

References fbEpochCountHack2021.

◆ SetMonitor()

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

Add a monitor to the unpacker.

Parameters
valueCbmStsUnpackMonitor

Definition at line 79 of file CbmBmonUnpackConfig.h.

References fMonitor.

◆ SetParFileName()

void CbmBmonUnpackConfig::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 75 of file CbmBmonUnpackConfig.h.

References fsParFileName.

Member Data Documentation

◆ fbBmonParMode

bool CbmBmonUnpackConfig::fbBmonParMode = false
private

Definition at line 95 of file CbmBmonUnpackConfig.h.

Referenced by chooseAlgo(), and SetFlagBmonParMode().

◆ fbEpochCountHack2021

bool CbmBmonUnpackConfig::fbEpochCountHack2021 = false
private

Control flags.

Definition at line 94 of file CbmBmonUnpackConfig.h.

Referenced by InitAlgo(), and SetFlagEpochCountHack2021().

◆ fMonitor

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

pointer to the monitor object

Definition at line 100 of file CbmBmonUnpackConfig.h.

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

◆ fsParFileName

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

Parameter file name.

Definition at line 97 of file CbmBmonUnpackConfig.h.

Referenced by LoadParFileName(), and SetParFileName().


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