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

#include <CbmTrdUnpackConfig.h>

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

Public Member Functions

 CbmTrdUnpackConfig (std::string detGeoSetupTag, UInt_t runid=0)
 Create the Cbm Trd Unpack Task object.
 
virtual ~CbmTrdUnpackConfig ()
 Destroy the Cbm Trd Unpack Task object.
 
 CbmTrdUnpackConfig (const CbmTrdUnpackConfig &)=delete
 Copy constructor - not implemented.
 
CbmTrdUnpackConfigoperator= (const CbmTrdUnpackConfig &)=delete
 Assignment operator - not implemented.
 
std::shared_ptr< CbmTrdUnpackMonitorGetMonitor ()
 Get the potentially added monitor.
 
std::shared_ptr< CbmTrdSpadicGetSpadicObject ()
 Get the spadic object attached to this config.
 
void SetAlgo ()
 Setup the derived unpacker algorithm to be used for the DAQ output to Digi translation. Re-implementing because the Monitor has to be set before requesting parameter objects.
 
void SetMonitor (std::shared_ptr< CbmTrdUnpackMonitor > value)
 Add a monitor to the unpacker.
 
void SetRawToDigiMethod (std::shared_ptr< CbmTrdRawToDigiBaseR > value)
 Set the raw to digi method.
 
void SetSpadicObject (std::shared_ptr< CbmTrdSpadic > value)
 Set the Spadic Object.
 
void SetElinkTimeOffset (std::uint32_t criid, std::uint8_t elinkid, std::int32_t offsetNs)
 Register a time offeset to be substracted from the digis which come from a specific CRI.
 

Protected Member Functions

virtual std::shared_ptr< CbmTrdUnpackAlgoBaseRchooseAlgo ()
 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::shared_ptr< CbmTrdRawToDigiBaseRfRTDMethod = std::make_shared<CbmTrdRawToDigiMaxAdcR>()
 pointer to the raw msg to digi method
 
std::shared_ptr< CbmTrdSpadicfSpadic = nullptr
 Spadic software reprensentation object.
 
std::shared_ptr< CbmTrdUnpackMonitorfMonitor = nullptr
 pointer to the monitor object
 
std::map< std::uint32_t, std::vector< std::int32_t > > fElinkTimeOffsetMap
 Map to store time offsets for each CRI&Elink combination.
 

Detailed Description

Definition at line 36 of file CbmTrdUnpackConfig.h.

Constructor & Destructor Documentation

◆ CbmTrdUnpackConfig() [1/2]

CbmTrdUnpackConfig::CbmTrdUnpackConfig ( 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 CbmTrdUnpackConfig.cxx.

◆ ~CbmTrdUnpackConfig()

CbmTrdUnpackConfig::~CbmTrdUnpackConfig ( )
virtual

Destroy the Cbm Trd Unpack Task object.

Definition at line 23 of file CbmTrdUnpackConfig.cxx.

◆ CbmTrdUnpackConfig() [2/2]

CbmTrdUnpackConfig::CbmTrdUnpackConfig ( const CbmTrdUnpackConfig & )
delete

Copy constructor - not implemented.

Member Function Documentation

◆ chooseAlgo()

std::shared_ptr< CbmTrdUnpackAlgoBaseR > CbmTrdUnpackConfig::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 65 of file CbmTrdUnpackConfig.cxx.

Referenced by SetAlgo().

◆ GetMonitor()

std::shared_ptr< CbmTrdUnpackMonitor > CbmTrdUnpackConfig::GetMonitor ( )
inline

Get the potentially added monitor.

Definition at line 63 of file CbmTrdUnpackConfig.h.

References fMonitor.

◆ GetSpadicObject()

std::shared_ptr< CbmTrdSpadic > CbmTrdUnpackConfig::GetSpadicObject ( )
inline

Get the spadic object attached to this config.

Returns
CbmTrdSpadic

Definition at line 66 of file CbmTrdUnpackConfig.h.

References fSpadic.

◆ operator=()

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

Assignment operator - not implemented.

◆ SetAlgo()

void CbmTrdUnpackConfig::SetAlgo ( )

Setup the derived unpacker algorithm to be used for the DAQ output to Digi translation. Re-implementing because the Monitor has to be set before requesting parameter objects.

Definition at line 26 of file CbmTrdUnpackConfig.cxx.

References chooseAlgo(), fElinkTimeOffsetMap, fMonitor, fRTDMethod, and fSpadic.

◆ SetElinkTimeOffset()

void CbmTrdUnpackConfig::SetElinkTimeOffset ( std::uint32_t criid,
std::uint8_t elinkid,
std::int32_t offsetNs )

Register a time offeset to be substracted from the digis which come from a specific CRI.

Parameters
criid
elinkid
offsetNs

Definition at line 98 of file CbmTrdUnpackConfig.cxx.

References fElinkTimeOffsetMap.

◆ SetMonitor()

void CbmTrdUnpackConfig::SetMonitor ( std::shared_ptr< CbmTrdUnpackMonitor > value)
inline

Add a monitor to the unpacker.

Parameters
valueCbmTrdUnpackMonitor

Definition at line 78 of file CbmTrdUnpackConfig.h.

References fMonitor.

◆ SetRawToDigiMethod()

void CbmTrdUnpackConfig::SetRawToDigiMethod ( std::shared_ptr< CbmTrdRawToDigiBaseR > value)
inline

Set the raw to digi method.

Parameters
value

Definition at line 85 of file CbmTrdUnpackConfig.h.

References fRTDMethod.

◆ SetSpadicObject()

void CbmTrdUnpackConfig::SetSpadicObject ( std::shared_ptr< CbmTrdSpadic > value)
inline

Set the Spadic Object.

Parameters
value

Definition at line 92 of file CbmTrdUnpackConfig.h.

References fSpadic.

Member Data Documentation

◆ fElinkTimeOffsetMap

std::map<std::uint32_t, std::vector<std::int32_t> > CbmTrdUnpackConfig::fElinkTimeOffsetMap
protected

Map to store time offsets for each CRI&Elink combination.

Definition at line 121 of file CbmTrdUnpackConfig.h.

Referenced by SetAlgo(), and SetElinkTimeOffset().

◆ fMonitor

std::shared_ptr<CbmTrdUnpackMonitor> CbmTrdUnpackConfig::fMonitor = nullptr
protected

pointer to the monitor object

Definition at line 118 of file CbmTrdUnpackConfig.h.

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

◆ fRTDMethod

std::shared_ptr<CbmTrdRawToDigiBaseR> CbmTrdUnpackConfig::fRTDMethod = std::make_shared<CbmTrdRawToDigiMaxAdcR>()
protected

pointer to the raw msg to digi method

Definition at line 112 of file CbmTrdUnpackConfig.h.

Referenced by SetAlgo(), and SetRawToDigiMethod().

◆ fSpadic

std::shared_ptr<CbmTrdSpadic> CbmTrdUnpackConfig::fSpadic = nullptr
protected

Spadic software reprensentation object.

Definition at line 115 of file CbmTrdUnpackConfig.h.

Referenced by GetSpadicObject(), SetAlgo(), and SetSpadicObject().


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