Skip to content

Commit a753367

Browse files
authored
Fix compilation issue (#47)
1 parent d5076a1 commit a753367

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/TOFLayer.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ TOFLayer::hasTOF(const Track &track)
2929
auto z = track.ZOuter * 0.1; // [cm]
3030
if (mType == kBarrel) {
3131
auto r = hypot(x, y);
32-
return fabs(r - mRadius) < 0.001 && fabs(z) < mLength);
32+
return (fabs(r - mRadius) < 0.001 && fabs(z) < mLength);
3333
}
3434
if (mType = kForward) {
35-
auto r = hypot(x, y)
36-
return (r > mRadiusIn) && (r < mRadius) && (fabs(fabs(z) - mLength) < 0.001);
35+
auto r = hypot(x, y);
36+
return (r > mRadiusIn) && (r < mRadius) && (fabs(fabs(z) - mLength) < 0.001);
3737
}
3838
return false;
3939
}

0 commit comments

Comments
 (0)