CbmRoot
|
#include <CbmMuchUnpackConfig.h>
Classes | |
struct | FebChanMaskReco |
Public Member Functions | |
CbmMuchUnpackConfig (std::string detGeoSetupTag, UInt_t runid=0) | |
Create the Cbm Sts Unpack Task object. | |
virtual | ~CbmMuchUnpackConfig () |
Destroy the Cbm Sts Unpack Task object. | |
CbmMuchUnpackConfig (const CbmMuchUnpackConfig &)=delete | |
Copy constructor - not implemented. | |
CbmMuchUnpackConfig & | operator= (const CbmMuchUnpackConfig &)=delete |
Assignment operator - not implemented. | |
std::shared_ptr< CbmMuchUnpackMonitor > | GetMonitor () |
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 | MaskNoisyChannel (UInt_t uFeb, UInt_t uChan, Bool_t bMasked=kTRUE) |
virtual std::pair< size_t, bool > | ReadInactiveChannels () |
Read Inactive Channel list based on CbmMuchAddress from a file. | |
void | SetAsicTimeOffset (size_t asicid, double value) |
Set the Asic Time Offset. | |
void | SetDuplicatesRejection (bool bIn=true, bool bDiffAdc=true) |
Enable/Disable the duplicate digis rejection, without or with same ADC checks. | |
void | SetMinAdcCut (uint32_t value) |
Set the minimum adc cut value. | |
void | SetMinAdcCut (uint32_t febid, uint32_t value) |
void | SetMonitor (std::shared_ptr< CbmMuchUnpackMonitor > value) |
Add a monitor to the unpacker. | |
void | SetParFileName (std::string sNewName) |
Sets the name of the parameter file to be used. | |
void | LoadParFileName () |
void | SetNoisyChannelFile (TString fileName) |
Protected Member Functions | |
virtual std::shared_ptr< CbmMuchUnpackAlgo > | 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< CbmMuchUnpackMonitor > | fMonitor = nullptr |
pointer to the monitor object | |
uint32_t | fdAdcCut = 0 |
Minimum adc cut to store a hit. | |
std::map< uint32_t, uint32_t > | fdAdcCut_perFeb |
Minimum adc cut per Feb to store a hit. | |
std::vector< double > | fvdTimeOffsetNsAsics = {} |
Vector with the Asic time offsets. | |
bool | fbRejectDuplicateDigis = false |
Enables the rejection of duplicate digis. | |
bool | fbDupliWithoutAdc = true |
If rejecting duplicate digis, enables rejection even if ADC differs. | |
std::vector< FebChanMaskReco > | fvChanMasks = {} |
Temporary storage of user parameters. | |
std::string | fsParFileName = "mMuchPar.par" |
Parameter file name. | |
TString | fInactiveChannelFileName = "" |
Definition at line 32 of file CbmMuchUnpackConfig.h.
CbmMuchUnpackConfig::CbmMuchUnpackConfig | ( | std::string | detGeoSetupTag, |
UInt_t | runid = 0 ) |
Create the Cbm Sts 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 17 of file CbmMuchUnpackConfig.cxx.
|
virtual |
Destroy the Cbm Sts Unpack Task object.
Definition at line 22 of file CbmMuchUnpackConfig.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 67 of file CbmMuchUnpackConfig.cxx.
References fsParFileName.
|
inline |
Get the potentially added monitor.
Definition at line 64 of file CbmMuchUnpackConfig.h.
References fMonitor.
void CbmMuchUnpackConfig::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 CbmMuchUnpackConfig.cxx.
References fbDupliWithoutAdc, fbRejectDuplicateDigis, fdAdcCut, fdAdcCut_perFeb, fInactiveChannelFileName, fMonitor, fvChanMasks, fvdTimeOffsetNsAsics, and ReadInactiveChannels().
|
inline |
Definition at line 117 of file CbmMuchUnpackConfig.h.
References fsParFileName.
|
inline |
Definition at line 72 of file CbmMuchUnpackConfig.h.
References fvChanMasks.
|
delete |
Assignment operator - not implemented.
|
virtual |
Read Inactive Channel list based on CbmMuchAddress from a file.
Definition at line 89 of file CbmMuchUnpackConfig.cxx.
References fInactiveChannelFileName.
Referenced by InitAlgo().
|
inline |
Set the Asic Time Offset.
asicid | Idx of the ASIC with the given time offset |
value | time offset |
Definition at line 90 of file CbmMuchUnpackConfig.h.
References fvdTimeOffsetNsAsics.
|
inline |
Enable/Disable the duplicate digis rejection, without or with same ADC checks.
Definition at line 97 of file CbmMuchUnpackConfig.h.
References fbDupliWithoutAdc, and fbRejectDuplicateDigis.
|
inline |
Definition at line 106 of file CbmMuchUnpackConfig.h.
References fdAdcCut_perFeb.
|
inline |
Set the minimum adc cut value.
[in] | value |
Definition at line 104 of file CbmMuchUnpackConfig.h.
References fdAdcCut.
|
inline |
Add a monitor to the unpacker.
value | CbmMuchUnpackMonitor |
Definition at line 109 of file CbmMuchUnpackConfig.h.
References fMonitor.
|
inline |
Definition at line 119 of file CbmMuchUnpackConfig.h.
References fInactiveChannelFileName.
|
inline |
Sets the name of the parameter file to be used.
[in] | std:string,path | should not be included as set in the Config class |
Definition at line 116 of file CbmMuchUnpackConfig.h.
References fsParFileName.
|
protected |
If rejecting duplicate digis, enables rejection even if ADC differs.
Definition at line 145 of file CbmMuchUnpackConfig.h.
Referenced by InitAlgo(), and SetDuplicatesRejection().
|
protected |
Enables the rejection of duplicate digis.
Definition at line 142 of file CbmMuchUnpackConfig.h.
Referenced by InitAlgo(), and SetDuplicatesRejection().
|
protected |
Minimum adc cut to store a hit.
Definition at line 133 of file CbmMuchUnpackConfig.h.
Referenced by InitAlgo(), and SetMinAdcCut().
|
protected |
Minimum adc cut per Feb to store a hit.
Definition at line 136 of file CbmMuchUnpackConfig.h.
Referenced by InitAlgo(), and SetMinAdcCut().
|
protected |
Definition at line 152 of file CbmMuchUnpackConfig.h.
Referenced by InitAlgo(), ReadInactiveChannels(), and SetNoisyChannelFile().
|
protected |
pointer to the monitor object
Definition at line 130 of file CbmMuchUnpackConfig.h.
Referenced by GetMonitor(), InitAlgo(), and SetMonitor().
|
protected |
Parameter file name.
Definition at line 151 of file CbmMuchUnpackConfig.h.
Referenced by chooseAlgo(), LoadParFileName(), and SetParFileName().
|
protected |
Temporary storage of user parameters.
Definition at line 148 of file CbmMuchUnpackConfig.h.
Referenced by InitAlgo(), and MaskNoisyChannel().
|
protected |
Vector with the Asic time offsets.
Definition at line 139 of file CbmMuchUnpackConfig.h.
Referenced by InitAlgo(), and SetAsicTimeOffset().