From 5183d89f75b7724051df536ad5b3ab70df91acfe Mon Sep 17 00:00:00 2001 From: Alexandru Bercuci <abercuci@niham.nipne.ro> Date: Sat, 15 Feb 2025 04:18:15 +0200 Subject: [PATCH] add gain calibration --- algo/detectors/trd2d/ReadoutConfig.h | 2 +- algo/detectors/trd2d/UnpackMS.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/algo/detectors/trd2d/ReadoutConfig.h b/algo/detectors/trd2d/ReadoutConfig.h index d6e473dd8..473a662f9 100644 --- a/algo/detectors/trd2d/ReadoutConfig.h +++ b/algo/detectors/trd2d/ReadoutConfig.h @@ -162,7 +162,7 @@ namespace cbm::algo::trd2d }; struct ChanDescriptor { bool maskFlag; /// HW mask flag for channel - uint8_t tOffset; /// time [clk] correction + int8_t tOffset; /// time [clk] correction float baseline; /// Baseline correction for channel float gainfee; /// ASIC gain deviation for channel ChanNoise noise; /// noise descriptor [ChanNoise] diff --git a/algo/detectors/trd2d/UnpackMS.h b/algo/detectors/trd2d/UnpackMS.h index c75452a6a..7989bdd17 100644 --- a/algo/detectors/trd2d/UnpackMS.h +++ b/algo/detectors/trd2d/UnpackMS.h @@ -119,7 +119,7 @@ namespace cbm::algo::trd2d struct UnpackChannelPar { int32_t fPadAddress; ///< Pad address for channel bool fMask; ///< Flag for channel masking - uint8_t fDaqOffset = 0; ///< Time calibration parameter + int8_t fDaqOffset = 0; ///< Time calibration parameter uint16_t fSignalThres = 0; ///< Signal threshold to remove ringing channels }; @@ -151,7 +151,7 @@ namespace cbm::algo::trd2d **/ struct CalibChannelPar { bool fMask = false; ///< Flag for channel masking - uint8_t fDaqOffset = 0; ///< Time calibration parameter + int8_t fDaqOffset = 0; ///< Time calibration parameter float fBaseline = 0.; ///< baseline correction float fGainFee = -1.; ///< gain correction wrt to reference NoiseChannelPar noise = {}; ///< noise channel parametrisation -- GitLab