Skip to content

Commit

Permalink
Please consider the following formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
alibuild committed Jun 20, 2024
1 parent 949578b commit 3997fc0
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions PWGHF/HFC/TableProducer/correlatorD0Hadrons.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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())) {
Expand Down Expand Up @@ -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<SelectedCollisions, SelectedCandidatesData, SelectedTracks, BinningType> pairData{corrBinning, numberEventsMixed, -1, collisions, tracksTuple, &cache};

Expand All @@ -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;
}

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 3997fc0

Please sign in to comment.