CbmRoot
|
#include <CbmTrdUnpackConfig.h>
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. | |
CbmTrdUnpackConfig & | operator= (const CbmTrdUnpackConfig &)=delete |
Assignment operator - not implemented. | |
std::shared_ptr< CbmTrdUnpackMonitor > | GetMonitor () |
Get the potentially added monitor. | |
std::shared_ptr< CbmTrdSpadic > | GetSpadicObject () |
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< CbmTrdUnpackAlgoBaseR > | chooseAlgo () |
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< CbmTrdRawToDigiBaseR > | fRTDMethod = std::make_shared<CbmTrdRawToDigiMaxAdcR>() |
pointer to the raw msg to digi method | |
std::shared_ptr< CbmTrdSpadic > | fSpadic = nullptr |
Spadic software reprensentation object. | |
std::shared_ptr< CbmTrdUnpackMonitor > | fMonitor = 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. | |
Definition at line 36 of file CbmTrdUnpackConfig.h.
CbmTrdUnpackConfig::CbmTrdUnpackConfig | ( | std::string | detGeoSetupTag, |
UInt_t | runid = 0 ) |
Create the Cbm Trd Unpack Task object.
geoSetupTag | Geometry setup tag for the given detector as used by CbmSetup objects |
runid | set if unpacker is rerun on a special run with special parameters |
Definition at line 18 of file CbmTrdUnpackConfig.cxx.
|
virtual |
Destroy the Cbm Trd Unpack Task object.
Definition at line 23 of file CbmTrdUnpackConfig.cxx.
|
delete |
Copy constructor - not implemented.
|
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.
Definition at line 65 of file CbmTrdUnpackConfig.cxx.
Referenced by SetAlgo().
|
inline |
Get the potentially added monitor.
Definition at line 63 of file CbmTrdUnpackConfig.h.
References fMonitor.
|
inline |
Get the spadic object attached to this config.
Definition at line 66 of file CbmTrdUnpackConfig.h.
References fSpadic.
|
delete |
Assignment operator - not implemented.
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.
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.
criid | |
elinkid | |
offsetNs |
Definition at line 98 of file CbmTrdUnpackConfig.cxx.
References fElinkTimeOffsetMap.
|
inline |
Add a monitor to the unpacker.
value | CbmTrdUnpackMonitor |
Definition at line 78 of file CbmTrdUnpackConfig.h.
References fMonitor.
|
inline |
Set the raw to digi method.
value |
Definition at line 85 of file CbmTrdUnpackConfig.h.
References fRTDMethod.
|
inline |
Set the Spadic Object.
value |
Definition at line 92 of file CbmTrdUnpackConfig.h.
References fSpadic.
|
protected |
Map to store time offsets for each CRI&Elink combination.
Definition at line 121 of file CbmTrdUnpackConfig.h.
Referenced by SetAlgo(), and SetElinkTimeOffset().
|
protected |
pointer to the monitor object
Definition at line 118 of file CbmTrdUnpackConfig.h.
Referenced by GetMonitor(), SetAlgo(), and SetMonitor().
|
protected |
pointer to the raw msg to digi method
Definition at line 112 of file CbmTrdUnpackConfig.h.
Referenced by SetAlgo(), and SetRawToDigiMethod().
|
protected |
Spadic software reprensentation object.
Definition at line 115 of file CbmTrdUnpackConfig.h.
Referenced by GetSpadicObject(), SetAlgo(), and SetSpadicObject().