From 2662b23b670cbcc0a8f011335a85c9db7247612e Mon Sep 17 00:00:00 2001 From: Alexandru Bercuci <abercuci@niham.nipne.ro> Date: Fri, 14 Feb 2025 23:19:04 +0200 Subject: [PATCH] fix coding --- algo/detectors/trd2d/ReadoutConfig.h | 2 +- algo/detectors/trd2d/Unpack.cxx | 2 +- algo/detectors/trd2d/UnpackMS.cxx | 6 ++++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/algo/detectors/trd2d/ReadoutConfig.h b/algo/detectors/trd2d/ReadoutConfig.h index 84c7266b1..d6e473dd8 100644 --- a/algo/detectors/trd2d/ReadoutConfig.h +++ b/algo/detectors/trd2d/ReadoutConfig.h @@ -44,7 +44,7 @@ namespace cbm::algo::trd2d struct ChanMapping { int32_t padAddress; /// map pad and pairing to FASP channel bool maskFlag; /// HW mask flag for channel - int8_t tOffset; /// time correction in clk + int8_t tOffset; /// time correction in clk uint16_t lThreshold; /// SW threshold for ringing channels CBM_YAML_FORMAT(YAML::Flow); diff --git a/algo/detectors/trd2d/Unpack.cxx b/algo/detectors/trd2d/Unpack.cxx index d4f661e1a..b0b57c45d 100644 --- a/algo/detectors/trd2d/Unpack.cxx +++ b/algo/detectors/trd2d/Unpack.cxx @@ -51,7 +51,7 @@ Unpack::Unpack(const Config& config) : fConfig(config) {calCh.noise.tDelay, calCh.noise.tWindow, calCh.noise.lDThres, calCh.noise.lSThres}}; chanPar.fMask = pars.maskFlag; // Flag channel mask chanPar.fDaqOffset = pars.tOffset; // Time calibration parameter - par.toff[ch/2] = pars.tOffset; + par.toff[ch / 2] = pars.tOffset; chanPar.fSignalThres = pars.lThreshold; // Threshold cut asicPar.fChanParams.push_back(chanPar); } diff --git a/algo/detectors/trd2d/UnpackMS.cxx b/algo/detectors/trd2d/UnpackMS.cxx index 19f9b8dfe..64060dd3f 100644 --- a/algo/detectors/trd2d/UnpackMS.cxx +++ b/algo/detectors/trd2d/UnpackMS.cxx @@ -443,8 +443,10 @@ namespace cbm::algo::trd2d uint64_t gtime = id.GetTime() * fAsicClockPeriod; gtime >>= 1; int toffGlobalCorrection = fParams.fSystemTimeOffset + fParams.toff[ipad]; - if (toffGlobalCorrection > 0 && gtime < uint64_t(toffGlobalCorrection)) gtime = 0; - else gtime -= (fParams.fSystemTimeOffset + fParams.toff[ipad]); + if (toffGlobalCorrection > 0 && gtime < uint64_t(toffGlobalCorrection)) + gtime = 0; + else + gtime -= (fParams.fSystemTimeOffset + fParams.toff[ipad]); id.SetTime(gtime); outputDigis.emplace_back(std::move(id)); } -- GitLab