@@ -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