|
21 | 21 | #include "PWGCF/FemtoUniverse/DataModel/FemtoDerived.h" |
22 | 22 | #include "Framework/HistogramRegistry.h" |
23 | 23 |
|
24 | | -using namespace o2::constants::physics; |
25 | | - |
26 | 24 | namespace o2::analysis::femto_universe |
27 | 25 | { |
28 | 26 |
|
@@ -66,17 +64,19 @@ class FemtoUniverseSoftPionRemoval |
66 | 64 | // Getting D0 (part2) children |
67 | 65 | const auto& posChild = particles.iteratorAt(part2.index() - 2); |
68 | 66 | const auto& negChild = particles.iteratorAt(part2.index() - 1); |
69 | | - |
| 67 | + // Pion and kaon masses |
| 68 | + double massPion = o2::constants::physics::MassPiPlus; |
| 69 | + double massKaon = o2::constants::physics::MassKPlus; |
70 | 70 | // D* reconstruction |
71 | 71 | double pSum2 = std::pow(posChild.px() + negChild.px() + part1.px(), 2.0) + std::pow(posChild.py() + negChild.py() + part1.py(), 2.0) + std::pow(posChild.pz() + negChild.pz() + part1.pz(), 2.0); |
72 | 72 | // Energies of the daughters -> D0->K-pi+ |
73 | | - double e1Pi = std::sqrt(std::pow(MassPiPlus, 2.0) + std::pow(posChild.px(), 2.0) + std::pow(posChild.py(), 2.0) + std::pow(posChild.pz(), 2.0)); |
74 | | - double e1K = std::sqrt(std::pow(MassKPlus, 2.0) + std::pow(negChild.px(), 2.0) + std::pow(negChild.py(), 2.0) + std::pow(negChild.pz(), 2.0)); |
| 73 | + double e1Pi = std::sqrt(std::pow(massPion, 2.0) + std::pow(posChild.px(), 2.0) + std::pow(posChild.py(), 2.0) + std::pow(posChild.pz(), 2.0)); |
| 74 | + double e1K = std::sqrt(std::pow(massKaon, 2.0) + std::pow(negChild.px(), 2.0) + std::pow(negChild.py(), 2.0) + std::pow(negChild.pz(), 2.0)); |
75 | 75 | // Energies of the daughters -> D0bar->K+pi- |
76 | | - double e2Pi = std::sqrt(std::pow(MassPiPlus, 2.0) + std::pow(negChild.px(), 2.0) + std::pow(negChild.py(), 2.0) + std::pow(negChild.pz(), 2.0)); |
77 | | - double e2K = std::sqrt(std::pow(MassKPlus, 2.0) + std::pow(posChild.px(), 2.0) + std::pow(posChild.py(), 2.0) + std::pow(posChild.pz(), 2.0)); |
| 76 | + double e2Pi = std::sqrt(std::pow(massPion, 2.0) + std::pow(negChild.px(), 2.0) + std::pow(negChild.py(), 2.0) + std::pow(negChild.pz(), 2.0)); |
| 77 | + double e2K = std::sqrt(std::pow(massKaon, 2.0) + std::pow(posChild.px(), 2.0) + std::pow(posChild.py(), 2.0) + std::pow(posChild.pz(), 2.0)); |
78 | 78 | // Soft pion energy |
79 | | - auto ePion = RecoDecay::e(MassPiPlus, part1.p()); |
| 79 | + auto ePion = RecoDecay::e(massPion, part1.p()); |
80 | 80 | // D* masses |
81 | 81 | double mDstar1 = std::sqrt(std::pow(e1Pi + e1K + ePion, 2.0) - pSum2); |
82 | 82 | double mDstar2 = std::sqrt(std::pow(e2Pi + e2K + ePion, 2.0) - pSum2); |
|
0 commit comments