Skip to content

Commit db6cabd

Browse files
epic-capybarawdconincpre-commit-ci[bot]
authored
[Backport v1.29] fix: Add debug logs for time cap exceedance in hits; don't skip them (#2085)
# Description Backport of #2081 to `v1.29`. Co-authored-by: Wouter Deconinck <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 6e3493b commit db6cabd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/algorithms/calorimetry/CalorimeterHitDigi.cc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,8 @@ void CalorimeterHitDigi::process(const CalorimeterHitDigi::Input& input,
178178
}
179179
}
180180
if (timeC > m_cfg.capTime) {
181-
continue;
181+
debug("retaining hit, even though time %f ns > %f ns", timeC / dd4hep::ns,
182+
m_cfg.capTime / dd4hep::ns);
182183
}
183184
edep += hit.getEnergy();
184185
trace("adding {} \t total: {}", hit.getEnergy(), edep);
@@ -199,7 +200,8 @@ void CalorimeterHitDigi::process(const CalorimeterHitDigi::Input& input,
199200
rawassocs_staging.push_back(assoc);
200201
}
201202
if (time > m_cfg.capTime) {
202-
continue;
203+
debug("retaining hit, even though time %f ns > %f ns", time / dd4hep::ns,
204+
m_cfg.capTime / dd4hep::ns);
203205
}
204206

205207
// safety check

0 commit comments

Comments
 (0)