From 3997fc0f577a4c0de113ea7c88afe01c1fe58f09 Mon Sep 17 00:00:00 2001 From: ALICE Action Bot Date: Thu, 20 Jun 2024 05:59:20 +0000 Subject: [PATCH] Please consider the following formatting changes --- .../HFC/TableProducer/correlatorD0Hadrons.cxx | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/PWGHF/HFC/TableProducer/correlatorD0Hadrons.cxx b/PWGHF/HFC/TableProducer/correlatorD0Hadrons.cxx index 6ad93e81d42..3fc2a915496 100644 --- a/PWGHF/HFC/TableProducer/correlatorD0Hadrons.cxx +++ b/PWGHF/HFC/TableProducer/correlatorD0Hadrons.cxx @@ -145,8 +145,8 @@ struct HfCorrelatorD0HadronsSelection { } double yD = RecoDecay::y(particle.pVector(), MassD0); if (std::abs(yD) > yCandMax || particle.pt() < ptCandMin) { - continue; - } + continue; + } isD0Found = 1; break; } @@ -321,8 +321,8 @@ struct HfCorrelatorD0Hadrons { for (const auto& candidate1 : selectedD0CandidatesGrouped) { if (std::abs(hfHelper.yD0(candidate1)) >= yCandMax || candidate1.pt() <= ptCandMin || candidate1.pt() >= ptTrackMax) { - continue; - } + continue; + } // check decay channel flag for candidate1 if (!TESTBIT(candidate1.hfflag(), aod::hf_cand_2prong::DecayType::D0ToPiK)) { continue; @@ -469,8 +469,8 @@ struct HfCorrelatorD0Hadrons { continue; } if (std::abs(hfHelper.yD0(candidate1)) >= yCandMax || candidate1.pt() <= ptCandMin || candidate1.pt() >= ptTrackMax) { - continue; - } + continue; + } double efficiencyWeight = 1.; if (applyEfficiency) { @@ -520,7 +520,7 @@ struct HfCorrelatorD0Hadrons { for (const auto& track : tracks) { registry.fill(HIST("hTrackCounterRec"), 1); // fill total no. of tracks - + // Removing D0 daughters by checking track indices bool correlationStatus = false; if ((candidate1.prong0Id() == track.globalIndex()) || (candidate1.prong1Id() == track.globalIndex())) { @@ -689,7 +689,7 @@ struct HfCorrelatorD0Hadrons { registry.fill(HIST("hMultFT0M"), collision.multFT0M()); registry.fill(HIST("hZvtx"), collision.posZ()); } - + auto tracksTuple = std::make_tuple(candidates, tracks); Pair pairData{corrBinning, numberEventsMixed, -1, collisions, tracksTuple, &cache}; @@ -698,7 +698,7 @@ struct HfCorrelatorD0Hadrons { int poolBin = corrBinning.getBin(std::make_tuple(c2.posZ(), c2.multFT0M())); for (const auto& [t1, t2] : o2::soa::combinations(o2::soa::CombinationsFullIndexPolicy(tracks1, tracks2))) { - if (std::abs(hfHelper.yD0(t1)) >= yCandMax) { + if (std::abs(hfHelper.yD0(t1)) >= yCandMax) { continue; } @@ -883,12 +883,12 @@ struct HfCorrelatorD0Hadrons { continue; } if ((std::abs(t2.pdgCode()) != kElectron) && (std::abs(t2.pdgCode()) != kMuonMinus) && (std::abs(t2.pdgCode()) != kPiPlus) && (std::abs(t2.pdgCode()) != kKPlus) && (std::abs(t2.pdgCode()) != kProton)) { - continue; - } - if (!t2.isPhysicalPrimary()) { - continue; - } - + continue; + } + if (!t2.isPhysicalPrimary()) { + continue; + } + // ==============================soft pion removal================================ // method used: indexMother = -1 by default if the mother doesn't match with given PID of the mother. We find mother of pion if it is D* and mother of D0 if it is D*. If they are both positive and they both match each other, then it is detected as a soft pion