![]() |
Belle II Software prerelease-10-00-00a
|
This class contains static methods to make them accessible from pyROOT. More...
#include <ECLDspUtilities.h>
Static Public Member Functions | |
static ECLDspData * | readEclDsp (const char *raw_file, int boardNumber) |
Convert ECLDspData from *.dat file to Root object. | |
static void | writeEclDsp (const char *raw_file, ECLDspData *obj) |
Convert ECLDspData from Root object to *.dat file. | |
static ECLShapeFit | shapeFitter (int cid, std::vector< int > adc, int ttrig, bool adjusted_timing=true) |
Emulate shape fitting algorithm from ShaperDSP using algorithm from ecl/utility/src/ECLDspEmulator.cc See ecl/examples/eclShapeFitter.py for usage example. | |
static void | initPedestalFit () |
Load DSP coefficients used in the pedestal fit function. | |
static ECLPedestalFit | pedestalFit (std::vector< int > adc) |
Fit pedestal part of the signal waveform (first 16 samples) This method will fit the first 16 samples of the waveform and return the amplitude of the peak found in that region. | |
Private Member Functions | |
ECLDspUtilities () | |
Private constructor since class only contains static methods, no need to create an instance. | |
Static Private Attributes | |
static int | pedestal_fit_initialized = 0 |
Flag indicating whether arrays fg31,fg32 are filled. | |
static float | pedfit_fg31 [768] = {} |
DSP coefficients used to determine amplitude in pedestalFit. | |
static float | pedfit_fg32 [768] = {} |
DSP coefficients used to determine time in pedestalFit. | |
This class contains static methods to make them accessible from pyROOT.
Definition at line 41 of file ECLDspUtilities.h.
|
inlineprivate |
Private constructor since class only contains static methods, no need to create an instance.
Definition at line 111 of file ECLDspUtilities.h.
|
static |
Load DSP coefficients used in the pedestal fit function.
If it is not done explicitly, pedestalFit will do it internally when it is called the first time.
However, it is preferable to call it explicitly, in a thread-safe context.
Definition at line 323 of file ECLDspUtilities.cc.
|
static |
Fit pedestal part of the signal waveform (first 16 samples) This method will fit the first 16 samples of the waveform and return the amplitude of the peak found in that region.
[in] | adc | vector of waveform samples (size >= 16) |
Definition at line 346 of file ECLDspUtilities.cc.
|
static |
Convert ECLDspData from *.dat file to Root object.
[in] | raw_file | Path to dsp??.dat file. |
[in] | boardNumber | Number of shaperDSP board, from 1 to 52*12 |
Definition at line 49 of file ECLDspUtilities.cc.
|
static |
Emulate shape fitting algorithm from ShaperDSP using algorithm from ecl/utility/src/ECLDspEmulator.cc See ecl/examples/eclShapeFitter.py for usage example.
[in] | cid | CellID, 1..8736 |
[in] | adc | Waveform data from ECLDsp dataobject of length 31 |
[in] | ttrig | Trigger time from ECLTrig dataobject |
[in] | adjusted_timing | Optional. Use adjusted formula to determine fit time. Implemented in ShaperDSP firmware since exp 14. If true, algorithm will determine time near 0 with higher precision, time of low-energy hits will be one of {-4,0,4} If false, time will be one of {-32, -16, 0} |
Definition at line 256 of file ECLDspUtilities.cc.
|
static |
Convert ECLDspData from Root object to *.dat file.
Definition at line 134 of file ECLDspUtilities.cc.
|
staticprivate |
Flag indicating whether arrays fg31,fg32 are filled.
Definition at line 101 of file ECLDspUtilities.h.
|
staticprivate |
DSP coefficients used to determine amplitude in pedestalFit.
Definition at line 103 of file ECLDspUtilities.h.
|
staticprivate |
DSP coefficients used to determine time in pedestalFit.
Definition at line 105 of file ECLDspUtilities.h.