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
29 changes: 27 additions & 2 deletions PWGHF/HFC/TableProducer/correlatorDsHadrons.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ struct HfCorrelatorDsHadrons {
AxisSpec const axisPosZ = {binsPosZ, "PosZ"};
AxisSpec const axisPoolBin = {binsPoolBin, "PoolBin"};
AxisSpec const axisStatus = {15, 0.5, 15.5, "Selection status"};
const AxisSpec axisPid{20, -10.f, 10.f, "n #sigma"};

// Histograms for data analysis
registry.add("hCollisionPoolBin", "Ds candidates collision pool bin", {HistType::kTH1F, {axisPoolBin}});
Expand All @@ -278,6 +279,14 @@ struct HfCorrelatorDsHadrons {
registry.add("hMassDsData", "Ds candidates mass", {HistType::kTH1F, {axisMassD}});
registry.add("hDsPoolBin", "Ds candidates pool bin", {HistType::kTH1F, {axisPoolBin}});
registry.add("hTracksPoolBin", "Particles associated pool bin", {HistType::kTH1F, {axisPoolBin}});
if (pidTrkApplied) {
registry.add("hTpcNSigmaPIDpion", "n sigma tpc for pion hypothesis", {HistType::kTH2F, {{axisPid}, {axisPtHadron}}});
registry.add("hTpcNSigmaPIDkaon", "n sigma tpc for kaon hypothesis", {HistType::kTH2F, {{axisPid}, {axisPtHadron}}});
registry.add("hTpcNSigmaPIDproton", "n sigma tpc for proton hypothesis", {HistType::kTH2F, {{axisPid}, {axisPtHadron}}});
registry.add("hTofNSigmaPIDpion", "n sigma tof for pion hypothesis", {HistType::kTH2F, {{axisPid}, {axisPtHadron}}});
registry.add("hTofNSigmaPIDkaon", "n sigma tof for kaon hypothesis", {HistType::kTH2F, {{axisPid}, {axisPtHadron}}});
registry.add("hTofNSigmaPIDproton", "n sigma tof for proton hypothesis", {HistType::kTH2F, {{axisPid}, {axisPtHadron}}});
}
}
// Histograms for MC Reco analysis
if (fillHistoMcRec) {
Expand Down Expand Up @@ -321,6 +330,7 @@ struct HfCorrelatorDsHadrons {
if (pidTrkApplied) {
registry.add("hCorrKaonsLSPairs", "Ds-kaon correlations LS MC Gen", {HistType::kTH3F, {{axisPhi}, {axisPtD}, {axisPtHadron}}});
registry.add("hCorrKaonsULSPairs", "Ds-kaon correlations ULS MC Gen", {HistType::kTH3F, {{axisPhi}, {axisPtD}, {axisPtHadron}}});
registry.add("hDsWoKaons", "Collisions with Ds mesons without kaons", {HistType::kTH1F, {{1, -0.5, 0.5, "n coll w/o kaons"}}});
}
}
}
Expand Down Expand Up @@ -724,6 +734,9 @@ struct HfCorrelatorDsHadrons {
prongsId[counterDaughters - 1] = daughI.globalIndex();
}
}

int numberOfCorrKaons = 0;

// Ds Hadron correlation dedicated section
for (const auto& particleAssoc : groupedMcParticles) {
if (std::abs(particleAssoc.eta()) > etaTrackMax || particleAssoc.pt() < ptTrackMin || particleAssoc.pt() > ptTrackMax) {
Expand Down Expand Up @@ -754,8 +767,11 @@ struct HfCorrelatorDsHadrons {
if (pidTrkApplied) {
if (((chargeDs == 1) && (particleAssoc.pdgCode() == kKPlus)) || ((chargeDs == -1) && (particleAssoc.pdgCode() == kKMinus))) { // LS pairs
registry.fill(HIST("hCorrKaonsLSPairs"), getDeltaPhi(particleAssoc.phi(), particle.phi()), particle.pt(), particleAssoc.pt());
} else { // ULS pairs
numberOfCorrKaons++;
}
if (((chargeDs == 1) && (particleAssoc.pdgCode() == kKMinus)) || ((chargeDs == -1) && (particleAssoc.pdgCode() == kKPlus))) { // ULS pairs
registry.fill(HIST("hCorrKaonsULSPairs"), getDeltaPhi(particleAssoc.phi(), particle.phi()), particle.pt(), particleAssoc.pt());
numberOfCorrKaons++;
}
}
}
Expand All @@ -771,8 +787,11 @@ struct HfCorrelatorDsHadrons {
0);
entryDsHadronRecoInfo(MassDS, true, isDecayChan);
entryDsHadronGenInfo(isDsPrompt, particleAssoc.isPhysicalPrimary(), trackOrigin);
} // end loop generated particles
if (numberOfCorrKaons == 0) {
registry.fill(HIST("hDsWoKaons"), numberOfCorrKaons);
}
} // end loop generated particles
} // if statement for Ds selection
} // end loop generated Ds
} // end loop reconstructed collision
} // end loop generated collision
Expand Down Expand Up @@ -821,6 +840,12 @@ struct HfCorrelatorDsHadrons {
if (!passPIDSelection(track, trkPIDspecies, pidTPCMax, pidTOFMax, tofPIDThreshold, forceTOF)) {
continue;
}
registry.fill(HIST("hTpcNSigmaPIDpion"), track.tpcNSigmaPi(), track.pt());
registry.fill(HIST("hTpcNSigmaPIDkaon"), track.tpcNSigmaKa(), track.pt());
registry.fill(HIST("hTpcNSigmaPIDproton"), track.tpcNSigmaPr(), track.pt());
registry.fill(HIST("hTofNSigmaPIDpion"), track.tofNSigmaPi(), track.pt());
registry.fill(HIST("hTofNSigmaPIDkaon"), track.tofNSigmaKa(), track.pt());
registry.fill(HIST("hTofNSigmaPIDproton"), track.tofNSigmaPr(), track.pt());
}
assocTrackReduced(indexHfcReducedCollision, track.globalIndex(), track.phi(), track.eta(), track.pt() * track.sign());
assocTrackSelInfo(indexHfcReducedCollision, track.tpcNClsCrossedRows(), track.itsClusterMap(), track.itsNCls(), track.dcaXY(), track.dcaZ());
Expand Down
Loading
Loading