Skip to content

Commit ea25e43

Browse files
[Common] Fix magic number lint error in TPC drift volume check
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
1 parent a1c1b83 commit ea25e43

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Common/Core/TPCVDriftManager.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ class TPCVDriftManager
115115
float dTime = tTB - trackExtra.trackTime();
116116
float dDrift = dTime * mTPCVDriftNS;
117117
float dDriftErr = tTBErr * mTPCVDriftNS;
118-
if (dDriftErr < 0.f || dDrift > 250.f) { // we cannot move a track outside the drift volume
118+
if (dDriftErr < 0.f || dDrift > mMaxDriftCm) { // we cannot move a track outside the drift volume
119119
if (mOutside < mWarningLimit) {
120120
LOGP(warn, "Skipping correction outside of tpc volume with dDrift={} +- {}", dDrift, dDriftErr);
121121
const auto trackBC = trackExtra.template collision_as<Collisions>().template foundBC_as<BCs>().globalBC();
@@ -157,6 +157,7 @@ class TPCVDriftManager
157157
o2::ccdb::BasicCCDBManager* mCCDB{}; // reference to initialized ccdb manager
158158

159159
static constexpr unsigned int mWarningLimit{10};
160+
static constexpr float mMaxDriftCm{250.f}; // TPC drift volume half-length in cm
160161

161162
// Counters
162163
unsigned int mCalls{0}; // total number of calls

0 commit comments

Comments
 (0)