Skip to content

Commit 7cd1960

Browse files
noferinidavidrohr
authored andcommitted
TOF fix for codechecker
1 parent 32ba552 commit 7cd1960

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Detectors/TOF/reconstruction/src/CosmicProcessor.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ void CosmicProcessor::process(DigitDataReader& reader, bool fill)
6565
for (int j = i + 1; j < ndig2; j++) {
6666
auto& dig2 = (*array)[j];
6767
int64_t bc2 = int64_t(dig2.getBC()) - bc1;
68-
if (abs(bc2) > bcdist) {
68+
if (labs(bc2) > bcdist) {
6969
continue;
7070
}
7171

@@ -96,7 +96,7 @@ void CosmicProcessor::process(DigitDataReader& reader, bool fill)
9696

9797
dtime -= l * 33.356409; // corrected for pad distance assuiming muonn downward
9898

99-
if (abs(dtime) > thr) {
99+
if (fabs(dtime) > thr) {
100100
continue;
101101
}
102102

0 commit comments

Comments
 (0)