@@ -61,10 +61,6 @@ enum DecayChannel : uint8_t {
6161
6262struct HfTaskDstarPolarisationInJet {
6363
64- float massPi{0 .f };
65- float massKaon{0 .f };
66- float massDstar{0 .f };
67-
6864 float bkgRotationAngleStep{0 .f };
6965
7066 uint8_t nMassHypos{0u };
@@ -161,9 +157,6 @@ struct HfTaskDstarPolarisationInJet {
161157 LOGP (fatal, " No background rotation supported for MC." );
162158 }
163159
164- massPi = o2::constants::physics::MassPiPlus;
165- massKaon = o2::constants::physics::MassKaonCharged;
166- massDstar = o2::constants::physics::MassDStar;
167160 bkgRotationAngleStep = (nBkgRotations > 1 ) ? (maxRotAngleMultByPi - minRotAngleMultByPi) * constants::math::PI / (nBkgRotations - 1 ) : 0 .;
168161
169162 const AxisSpec thnAxisInvMass{configThnAxisInvMass, " #it{M} (GeV/#it{c}^{2})" };
@@ -713,7 +706,7 @@ struct HfTaskDstarPolarisationInJet {
713706 // Dstar analysis
714707 // polarization measured from the soft-pion daughter (*)
715708
716- massDau = massPi ; // (*)
709+ massDau = o2::constants::physics::MassPiPlus ; // (*)
717710 const float bkgRotAngle = (bkgRotationId > 0 ) ? minRotAngleMultByPi * constants::math::PI + bkgRotationAngleStep * (bkgRotationId - 1 ) : 0 ;
718711
719712 std::array<float , 3 > threeVecSoftPi{candidate.pxProng1 () * std::cos (bkgRotAngle) - candidate.pyProng1 () * std::sin (bkgRotAngle), candidate.pxProng1 () * std::sin (bkgRotAngle) + candidate.pyProng1 () * std::cos (bkgRotAngle), candidate.pzProng1 ()}; // we rotate the soft pion
@@ -729,13 +722,13 @@ struct HfTaskDstarPolarisationInJet {
729722 pyCharmHad = threeVecCand[1 ];
730723 pzCharmHad = threeVecCand[2 ];
731724 if (candidate.signProng1 () > 0 ) {
732- invMassCharmHad = RecoDecay::m (std::array{threeVecD0Prong0, threeVecD0Prong1, threeVecSoftPi}, std::array{massPi, massKaon, massPi });
733- invMassD0 = RecoDecay::m (std::array{threeVecD0Prong0, threeVecD0Prong1}, std::array{massPi, massKaon });
725+ invMassCharmHad = RecoDecay::m (std::array{threeVecD0Prong0, threeVecD0Prong1, threeVecSoftPi}, std::array{o2::constants::physics::MassPiPlus, o2::constants::physics::MassKaonCharged, o2::constants::physics::MassPiPlus });
726+ invMassD0 = RecoDecay::m (std::array{threeVecD0Prong0, threeVecD0Prong1}, std::array{o2::constants::physics::MassPiPlus, o2::constants::physics::MassKaonCharged });
734727 } else {
735- invMassCharmHad = RecoDecay::m (std::array{threeVecD0Prong0, threeVecD0Prong1, threeVecSoftPi}, std::array{massKaon, massPi, massPi });
736- invMassD0 = RecoDecay::m (std::array{threeVecD0Prong0, threeVecD0Prong1}, std::array{massKaon, massPi });
728+ invMassCharmHad = RecoDecay::m (std::array{threeVecD0Prong0, threeVecD0Prong1, threeVecSoftPi}, std::array{o2::constants::physics::MassKaonCharged, o2::constants::physics::MassPiPlus, o2::constants::physics::MassPiPlus });
729+ invMassD0 = RecoDecay::m (std::array{threeVecD0Prong0, threeVecD0Prong1}, std::array{o2::constants::physics::MassKaonCharged, o2::constants::physics::MassPiPlus });
737730 }
738- rapidity = RecoDecay::y (threeVecCand, massDstar );
731+ rapidity = RecoDecay::y (threeVecCand, o2::constants::physics::MassDStar );
739732 } else {
740733 isRotatedCandidate = 0 ;
741734 pxDau = candidate.pxProng1 ();
0 commit comments