Skip to content

Commit 0aa0979

Browse files
committed
Fix unused variables
1 parent bc8bad4 commit 0aa0979

2 files changed

Lines changed: 12 additions & 17 deletions

File tree

PWGLF/DataModel/LFLambda1405Table.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@
99
// granted to it by virtue of its status as an Intergovernmental Organization
1010
// or submit itself to any jurisdiction.
1111

12-
///
1312
/// \file LFLambda1405Tables.h
1413
/// \brief Slim tables for Lambda(1405) candidates
15-
/// \author Francesco Mazzaschi <francesco.mazzaschi@cern.ch>
1614
///
15+
/// \author Francesco Mazzaschi <francesco.mazzaschi@cern.ch>
1716

1817
#ifndef PWGLF_DATAMODEL_LFLAMBDA1405TABLE_H_
1918
#define PWGLF_DATAMODEL_LFLAMBDA1405TABLE_H_

PWGLF/Tasks/Resonances/lambda1405analysis.cxx

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,6 @@ struct lambda1405analysis {
209209
int poolBins{0};
210210

211211
// Needed for DCA propagation of bachelor tracks
212-
int mRunNumber;
213-
float mBz;
214212
o2::base::MatLayerCylSet* lut = nullptr;
215213

216214
// Configurable axes
@@ -505,8 +503,6 @@ struct lambda1405analysis {
505503
rLambda1405.print();
506504

507505
// Info for DCA propagation of bachelor tracks
508-
mRunNumber = 0;
509-
mBz = 0;
510506
ccdb->setURL(ccdbPath);
511507
ccdb->setCaching(true);
512508
ccdb->setLocalObjectValidityChecking();
@@ -614,10 +610,10 @@ struct lambda1405analysis {
614610
}
615611

616612
double sqrtD = std::sqrt(D);
617-
double P1 = (-B + sqrtD) / (2.0 * A);
618-
double P2 = (-B - sqrtD) / (2.0 * A);
619-
if (P2 < 0.0 && P1 < 0.0) {
620-
LOG(debug) << "Recalculation of Sigma momentum failed: both solutions are negative " << sigmaPx << ", " << sigmaPy << ", " << sigmaPz << ", P1: " << P1 << ", P2: " << P2;
613+
double p1 = (-B + sqrtD) / (2.0 * A);
614+
double p2 = (-B - sqrtD) / (2.0 * A);
615+
if (p2 < 0.0 && p1 < 0.0) {
616+
LOG(debug) << "Recalculation of Sigma momentum failed: both solutions are negative " << sigmaPx << ", " << sigmaPy << ", " << sigmaPz << ", p1: " << p1 << ", p2: " << p2;
621617
return -999.f;
622618
}
623619
if (isSigmaMinus) {
@@ -627,15 +623,15 @@ struct lambda1405analysis {
627623
}
628624

629625
success = true;
630-
if (P2 < 0.0) {
631-
return static_cast<float>(P1);
626+
if (p2 < 0.0) {
627+
return static_cast<float>(p1);
632628
}
633-
if (P1 < 0.0) {
634-
return static_cast<float>(P2);
629+
if (p1 < 0.0) {
630+
return static_cast<float>(p2);
635631
}
636-
double p1Diff = std::abs(P1 - pMother);
637-
double p2Diff = std::abs(P2 - pMother);
638-
return static_cast<float>((p1Diff < p2Diff) ? P1 : P2);
632+
double p1Diff = std::abs(p1 - pMother);
633+
double p2Diff = std::abs(p2 - pMother);
634+
return static_cast<float>((p1Diff < p2Diff) ? p1 : p2);
639635
}
640636

641637
template <typename TTrack>

0 commit comments

Comments
 (0)