Skip to content

Commit e954161

Browse files
Added collision selection from jetderiveddatautilities for MC collisions too.
1 parent 0cc1f04 commit e954161

1 file changed

Lines changed: 0 additions & 22 deletions

File tree

‎PWGJE/Tasks/hfFragmentationFunction.cxx‎

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -444,28 +444,6 @@ struct HfFragmentationFunction {
444444
} else if (mcdcand.candidateSelFlag() & BIT(1)) { // CandidateSelFlag == BIT(1) -> selected as HFbar
445445
selectedAs = -1;
446446
}
447-
448-
// reflection information for storage: HF = +1, HFbar = -1, neither = 0
449-
int matchedFrom = 0;
450-
int decayChannel = 0;
451-
if (jethfutilities::isD0Table<TCandidatesMCD>()) {
452-
decayChannel = o2::hf_decay::hf_cand_2prong::DecayChannelMain::D0ToPiK;
453-
} else if (jethfutilities::isLcTable<TCandidatesMCD>()) {
454-
decayChannel = o2::hf_decay::hf_cand_3prong::DecayChannelMain::LcToPKPi;
455-
}
456-
int selectedAs = 0;
457-
458-
if (mcdcand.flagMcMatchRec() == decayChannel) { // matched to HF on truth level
459-
matchedFrom = 1;
460-
} else if (mcdcand.flagMcMatchRec() == -decayChannel) { // matched to HFbar on truth level
461-
matchedFrom = -1;
462-
}
463-
// bitwise AND operation: Checks whether BIT(i) is set, regardless of other bits
464-
if (mcdcand.candidateSelFlag() & BIT(0)) { // CandidateSelFlag == BIT(0) -> selected as HF
465-
selectedAs = 1;
466-
} else if (mcdcand.candidateSelFlag() & BIT(1)) { // CandidateSelFlag == BIT(1) -> selected as HFbar
467-
selectedAs = -1;
468-
}
469447

470448
// store matched particle and detector level data in one single table (calculate angular distance in eta-phi plane on the fly)
471449
matchJetTable(jetutilities::deltaR(mcpjet, mcpcand), mcpjet.pt(), mcpjet.eta(), mcpjet.phi(), mcpjet.template tracks_as<aod::JetParticles>().size() + mcpjet.template candidates_as<TCandidatesMCP>().size(), // particle level jet

0 commit comments

Comments
 (0)