Skip to content

Commit d985689

Browse files
authored
Add histogram for expected TPC dE/dx and update filters
Added a new histogram for expected TPC dE/dx with respect to particle species and TOF n#sigma. Updated filtering conditions for probe tracks based on pt and eta.
1 parent 99f6526 commit d985689

1 file changed

Lines changed: 18 additions & 2 deletions

File tree

‎PWGCF/TwoParticleCorrelations/Tasks/longrangecorrDerived.cxx‎

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,8 @@ struct LongrangecorrDerived {
300300
kTHnSparseD, {{3, 0.5, 3.5}, cfgAxis.axisPtQA, cfgAxis.axisTpcSignal, cfgAxis.axisNsigmaTOF});
301301
histos.add("MC_ExpSigma_ptwise", "MC Expected TPC #sigma;Particle Species;p_{T} (GeV/c);#sigma_{exp}^{TPC};n#sigma_{TOF}",
302302
kTHnSparseD, {{3, 0.5, 3.5}, cfgAxis.axisPtQA, cfgAxis.axisTpcExpSigma, cfgAxis.axisNsigmaTOF});
303+
histos.add("MC_ExpTpcdEdx_ptwise", "MC Expected TPC dE/dx;Particle Species;p_{T} (GeV/c);Expected TPC dE/dx;n#sigma_{TOF}",
304+
kTHnSparseD, {{3, 0.5, 3.5}, cfgAxis.axisPtQA, cfgAxis.axisTpcSignal, cfgAxis.axisNsigmaTOF});
303305
}
304306
}
305307

@@ -1077,28 +1079,34 @@ struct LongrangecorrDerived {
10771079

10781080
if (cfgSel.cfgGetdEdx) {
10791081
int pdgIdx = 0;
1082+
float tpcNsigMC = 0.0f;
10801083
float tofNsigMC = -999.0f;
10811084
float expSigmaMC = 0.0f;
10821085
auto absPdg = std::abs(particle.pdgCode());
10831086

10841087
if (absPdg == PDG_t::kPiPlus) {
10851088
pdgIdx = 1; // o2-linter: disable=pdg/explicit-code (histogram species index)
1089+
tpcNsigMC = track.tpcNSigmaPi();
10861090
tofNsigMC = track.tofNSigmaPi();
10871091
expSigmaMC = track.tpcExpSigmaPi();
10881092
} else if (absPdg == PDG_t::kKPlus) {
10891093
pdgIdx = 2; // o2-linter: disable=pdg/explicit-code (histogram species index)
1094+
tpcNsigMC = track.tpcNSigmaKa();
10901095
tofNsigMC = track.tofNSigmaKa();
10911096
expSigmaMC = track.tpcExpSigmaKa();
10921097
} else if (absPdg == PDG_t::kProton) {
10931098
pdgIdx = 3; // o2-linter: disable=pdg/explicit-code (histogram species index)
1099+
tpcNsigMC = track.tpcNSigmaPr();
10941100
tofNsigMC = track.tofNSigmaPr();
10951101
expSigmaMC = track.tpcExpSigmaPr();
10961102
}
10971103

10981104
if (pdgIdx > 0) {
10991105
if (track.hasTOF()) {
1106+
const float expSignalMC = track.tpcSignal() - (tpcNsigMC * expSigmaMC);
11001107
histos.fill(HIST("MC_TpcdEdx_TofNsigma_ptwise"), static_cast<double>(pdgIdx), track.pt(), track.tpcSignal(), tofNsigMC);
11011108
histos.fill(HIST("MC_ExpSigma_ptwise"), static_cast<double>(pdgIdx), track.pt(), expSigmaMC, tofNsigMC);
1109+
histos.fill(HIST("MC_ExpTpcdEdx_ptwise"), static_cast<double>(pdgIdx), track.pt(), expSignalMC, tofNsigMC);
11021110
}
11031111
bool passTofForMC = !cfgSel.cfgRequireTofInMCdEdx ||
11041112
(track.hasTOF() && tofNsigMC > cfgSel.cfgCleanNsigmaTofMin && tofNsigMC < cfgSel.cfgCleanNsigmaTofMax);
@@ -1122,7 +1130,7 @@ struct LongrangecorrDerived {
11221130
isPion = isTofPion && isTpcPion;
11231131
isKaon = isTofKaon && isTpcKaon;
11241132
isProton = isTofProton && isTpcProton;
1125-
} else if (track.pt() <= cfgSel.cfgTofPidPtCut || track.hasTOF()) {
1133+
} else if (track.pt() <= cfgSel.cfgTofPidPtCut) {
11261134
isPion = isTpcPion;
11271135
isKaon = isTpcKaon;
11281136
isProton = isTpcProton;
@@ -1196,7 +1204,15 @@ struct LongrangecorrDerived {
11961204
float distOverP = v0.distovertotmom(rawCol.posX(), rawCol.posY(), rawCol.posZ());
11971205

11981206
auto fillV0Probe = [&](double v0CleanType, TTrack const& probeTrack, float tpcNsig, float tofNsigReal, float expSigma, bool isPionProbe, bool isProtonProbe) {
1199-
if (!probeTrack.isGlobalTrack() || !myTrackFilter.IsSelected(probeTrack)) {
1207+
if (probeTrack.pt() < cfgSel.cfgPtCutMin || probeTrack.pt() > cfgSel.cfgPtCutMax) {
1208+
return;
1209+
}
1210+
if (std::abs(probeTrack.eta()) > cfgSel.cfgEtaCut) {
1211+
return;
1212+
}
1213+
if (probeTrack.tpcNClsFound() < cfgSel.cfgTpcMinNclsFound ||
1214+
probeTrack.tpcNClsCrossedRows() < cfgSel.cfgTpcMinNCrossedRows ||
1215+
probeTrack.tpcChi2NCl() > cfgSel.cfgTpcMaxChi2PerCluster) {
12001216
return;
12011217
}
12021218

0 commit comments

Comments
 (0)