diff --git a/algo/detectors/trd2d/ReadoutConfig.h b/algo/detectors/trd2d/ReadoutConfig.h index 84c7266b18ea8ce3cbede864541a08b426946afd..d6e473dd86f38da46a9e461cb409ccb3cf4143a0 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 d4f661e1a40a67134ef8a81d443cf06d3905357d..b0b57c45d5c8af23dd6bbffc78cedc3fa2560727 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 19f9b8dfe616ab4cdaadcd4c3d716b282dac605e..64060dd3fbc4806518b03543b42392a864f9affc 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)); }