Skip to content

Commit 6f42494

Browse files
committed
Fix unused vars
1 parent fb8ca4e commit 6f42494

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

PWGLF/TableProducer/Strangeness/strangenesstofpid.cxx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,6 @@ struct strangenesstofpid {
364364

365365
o2::track::TrackLTIntegral ltIntegral;
366366

367-
float trackX = -100;
368367
static constexpr float MAX_SIN_PHI = 0.85f;
369368
static constexpr float MAX_STEP = 2.0f;
370369
static constexpr float MAX_STEP_FINAL_STAGE = 0.5f;
@@ -379,12 +378,12 @@ struct strangenesstofpid {
379378
track.getXYZGlo(xyz);
380379
float segmentedRstart = segmentedRadius(xyz[0], xyz[1]);
381380

382-
bool firstPropag;
381+
bool firstPropag = true;
383382
for (int iRot = 0; iRot < propagationConfiguration.numberOfStepsFirstStage.value; iRot++) {
384383
track.rotateParam(track.getPhi()); // start rotated
385384
float currentX = track.getX();
386385
float tofX = currentX;
387-
bool getXatLabRok = track.getXatLabR(propagationConfiguration.tofPosition, tofX, d_bz, o2::track::DirOutward);
386+
track.getXatLabR(propagationConfiguration.tofPosition, tofX, d_bz, o2::track::DirOutward);
388387
if (std::abs(tofX - currentX) < propagationConfiguration.firstApproximationThreshold.value) {
389388
// signal conclusion
390389
if (calculationMethod.value == 2) {
@@ -415,10 +414,11 @@ struct strangenesstofpid {
415414
}
416415

417416
// correct for TOF segmentation
418-
float trackXextra = track.getX();
419417
bool trackOKextra = true;
418+
float trackXextra = track.getX();
420419
int propagationSteps = 0;
421-
while (trackXextra < MAX_FINAL_X && propagationSteps < propagationConfiguration.numberOfStepsSecondStage.value) {
420+
int maxPropagationSteps = propagationConfiguration.numberOfStepsSecondStage.value;
421+
while ((trackXextra < MAX_FINAL_X) && (propagationSteps < maxPropagationSteps)) {
422422
// continue with alpha aligned with pT
423423
track.getPxPyPzGlo(pxpypz);
424424
track.rotateParam(std::atan2(pxpypz[1], pxpypz[0]));

0 commit comments

Comments
 (0)