Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 14 additions & 12 deletions PWGCF/FemtoUniverse/Tasks/femtoUniverseEfficiencyBase.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -660,6 +660,13 @@ struct FemtoUniverseEfficiencyBase {
}
registryCuts.fill(HIST("part1/cutsVspT"), part.pt(), 4);

// TOF Matching efficiency
if (part.mLambda() == 1) {
registryTOFMatch.fill(HIST("part1/hTofMatchPtAfterPID"), part.pt());
} else {
registryTOFMatch.fill(HIST("part1/hTpcPt"), part.pt());
}

// Get the coresponding MC particle
const auto mcParticle = part.fdMCParticle();

Expand Down Expand Up @@ -696,12 +703,6 @@ struct FemtoUniverseEfficiencyBase {
registryPDG.fill(HIST("part1/PDGvspT"), part.pt(), mcParticle.pdgMCTruth());
registryMCOrigin.fill(HIST("part1/hRecoPt"), part.pt());
registryMCOrigin.fill(HIST("part1/hTruthPt"), mcParticle.pt());
// TOF Matching efficiency
if (part.mLambda() == 1) {
registryTOFMatch.fill(HIST("part1/hTofMatchPtAfterPID"), part.pt());
} else {
registryTOFMatch.fill(HIST("part1/hTpcPt"), part.pt());
}
}

if (!confIsSame) {
Expand Down Expand Up @@ -738,6 +739,13 @@ struct FemtoUniverseEfficiencyBase {
}
registryCuts.fill(HIST("part2/cutsVspT"), part.pt(), 4);

// TOF Matching efficiency
if (part.mLambda() == 1) {
registryTOFMatch.fill(HIST("part2/hTofMatchPtAfterPID"), part.pt());
} else {
registryTOFMatch.fill(HIST("part2/hTpcPt"), part.pt());
}

// Get the coresponding MC particle
const auto mcParticle = part.fdMCParticle();

Expand Down Expand Up @@ -774,12 +782,6 @@ struct FemtoUniverseEfficiencyBase {
registryPDG.fill(HIST("part2/PDGvspT"), part.pt(), mcParticle.pdgMCTruth());
registryMCOrigin.fill(HIST("part2/hRecoPt"), part.pt());
registryMCOrigin.fill(HIST("part2/hTruthPt"), mcParticle.pt());
// TOF Matching efficiency
if (part.mLambda() == 1) {
registryTOFMatch.fill(HIST("part2/hTofMatchPtAfterPID"), part.pt());
} else {
registryTOFMatch.fill(HIST("part2/hTpcPt"), mcParticle.pt());
}
}
}
}
Expand Down
28 changes: 22 additions & 6 deletions PWGCF/FemtoUniverse/Tasks/femtoUniversePairTaskTrackD0.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -531,9 +531,15 @@ struct FemtoUniversePairTaskTrackD0 {
registry.add("DebugBdt/hBdtScore2", ";BDT score;Entries", {HistType::kTH1F, {axisBdtScore}});
registry.add("DebugBdt/hBdtScore3", ";BDT score;Entries", {HistType::kTH1F, {axisBdtScore}});
if (fillBDTvsPt) {
registry.add("DebugBdtMcReco/hBdtScore1", ";BDT score;Entries", {HistType::kTH1F, {axisBdtScore}});
registry.add("DebugBdtMcReco/hBdtScore2", ";BDT score;Entries", {HistType::kTH1F, {axisBdtScore}});
registry.add("DebugBdtMcReco/hBdtScore3", ";BDT score;Entries", {HistType::kTH1F, {axisBdtScore}});
registry.add("DebugBdtMcReco/hBdtScore1VsPt", ";BDT score;#it{p}_{T} (GeV/#it{c})", {HistType::kTH2F, {axisBdtScore, {vbins}}});
registry.add("DebugBdtMcReco/hBdtScore2VsPt", ";BDT score;#it{p}_{T} (GeV/#it{c})", {HistType::kTH2F, {axisBdtScore, {vbins}}});
registry.add("DebugBdtMcReco/hBdtScore3VsPt", ";BDT score;#it{p}_{T} (GeV/#it{c})", {HistType::kTH2F, {axisBdtScore, {vbins}}});
registry.add("DebugBdtMcReco/hBdtScore1VsPtD0", ";BDT score;#it{p}_{T} (GeV/#it{c})", {HistType::kTH2F, {axisBdtScore, {vbins}}});
registry.add("DebugBdtMcReco/hBdtScore2VsPtD0", ";BDT score;#it{p}_{T} (GeV/#it{c})", {HistType::kTH2F, {axisBdtScore, {vbins}}});
registry.add("DebugBdtMcReco/hBdtScore3VsPtD0", ";BDT score;#it{p}_{T} (GeV/#it{c})", {HistType::kTH2F, {axisBdtScore, {vbins}}});
registry.add("DebugBdtMcReco/hBdtScore1VsPtD0bar", ";BDT score;#it{p}_{T} (GeV/#it{c})", {HistType::kTH2F, {axisBdtScore, {vbins}}});
registry.add("DebugBdtMcReco/hBdtScore2VsPtD0bar", ";BDT score;#it{p}_{T} (GeV/#it{c})", {HistType::kTH2F, {axisBdtScore, {vbins}}});
registry.add("DebugBdtMcReco/hBdtScore3VsPtD0bar", ";BDT score;#it{p}_{T} (GeV/#it{c})", {HistType::kTH2F, {axisBdtScore, {vbins}}});
}
if (applyMLOpt) {
registry.add("D0D0bar_MLSel/hMassVsPt1", "2-prong candidates;inv. mass (#pi K) (GeV/#it{c}^{2});entries", {HistType::kTH2F, {confInvMassBins, {vbins, "#it{p}_{T} (GeV/#it{c})"}}});
Expand Down Expand Up @@ -1466,14 +1472,19 @@ struct FemtoUniversePairTaskTrackD0 {
}
} else if ((part.partType() == aod::femtouniverseparticle::ParticleType::kD0) && (part.pt() > ConfDmesons.confMinPtD0D0barReco) && (part.pt() < ConfDmesons.confMaxPtD0D0barReco)) {
if (fillBDTvsPt && std::abs(mcpart.pdgMCTruth()) == o2::constants::physics::Pdg::kD0) {
registry.fill(HIST("DebugBdtMcReco/hBdtScore1"), part.decayVtxX());
registry.fill(HIST("DebugBdtMcReco/hBdtScore2"), part.decayVtxY());
registry.fill(HIST("DebugBdtMcReco/hBdtScore3"), part.decayVtxZ());
registry.fill(HIST("DebugBdtMcReco/hBdtScore1VsPt"), part.decayVtxX(), part.pt());
registry.fill(HIST("DebugBdtMcReco/hBdtScore2VsPt"), part.decayVtxY(), part.pt());
registry.fill(HIST("DebugBdtMcReco/hBdtScore3VsPt"), part.decayVtxZ(), part.pt());
}
if (mcpart.pdgMCTruth() == ConfDmesons.confPDGCodeD0) {
mcRecoRegistry.fill(HIST("hMcRecD0"), part.pt(), part.eta());
mcRecoRegistry.fill(HIST("hMcRecD0Pt"), part.pt());
mcRecoRegistry.fill(HIST("hMcRecD0Phi"), part.phi());
if (fillBDTvsPt) {
registry.fill(HIST("DebugBdtMcReco/hBdtScore1VsPtD0"), part.decayVtxX(), part.pt());
registry.fill(HIST("DebugBdtMcReco/hBdtScore2VsPtD0"), part.decayVtxY(), part.pt());
registry.fill(HIST("DebugBdtMcReco/hBdtScore3VsPtD0"), part.decayVtxZ(), part.pt());
}
if (part.tpcNClsFound() == 0) { // prompt candidates
mcRecoRegistry.fill(HIST("hMcRecD0Prompt"), part.pt(), part.eta());
mcRecoRegistry.fill(HIST("hMcRecD0PromptPt"), part.pt());
Expand All @@ -1487,6 +1498,11 @@ struct FemtoUniversePairTaskTrackD0 {
mcRecoRegistry.fill(HIST("hMcRecD0bar"), part.pt(), part.eta());
mcRecoRegistry.fill(HIST("hMcRecD0barPt"), part.pt());
mcRecoRegistry.fill(HIST("hMcRecD0barPhi"), part.phi());
if (fillBDTvsPt) {
registry.fill(HIST("DebugBdtMcReco/hBdtScore1VsPtD0bar"), part.decayVtxX(), part.pt());
registry.fill(HIST("DebugBdtMcReco/hBdtScore2VsPtD0bar"), part.decayVtxY(), part.pt());
registry.fill(HIST("DebugBdtMcReco/hBdtScore3VsPtD0bar"), part.decayVtxZ(), part.pt());
}
if (part.tpcNClsFound() == 0) { // prompt candidates
mcRecoRegistry.fill(HIST("hMcRecD0barPrompt"), part.pt(), part.eta());
mcRecoRegistry.fill(HIST("hMcRecD0barPromptPt"), part.pt());
Expand Down
Loading