Skip to content

Commit 998d865

Browse files
authored
Add 3d histogram TPCTOFvspt
Add 3d histogram TPCTOFvspt
1 parent 6aa5ef1 commit 998d865

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

PWGHF/HFC/TableProducer/correlatorHfeHadrons.cxx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,9 @@ struct HfCorrelatorHfeHadrons {
133133
registry.add("hInclusiveEHCorrel", "Sparse for Delta phi and Delta eta Inclusive Electron with Hadron;p_{T}^{e} (GeV#it{/c});p_{T}^{h} (GeV#it{/c});#Delta#varphi;#Delta#eta;", {HistType::kTHnSparseF, {{axisPt}, {axisPt}, {axisDeltaPhi}, {axisDeltaEta}}});
134134
registry.add("hLSEHCorrel", "Sparse for Delta phi and Delta eta Like sign Electron pair with Hadron;p_{T}^{e} (GeV#it{/c});p_{T}^{h} (GeV#it{/c});#Delta#varphi;#Delta#eta;", {HistType::kTHnSparseF, {{axisPt}, {axisPt}, {axisDeltaPhi}, {axisDeltaEta}}});
135135
registry.add("hULSEHCorrel", "Sparse for Delta phi and Delta eta UnLike sign Electron pair with Hadron;p_{T}^{e} (GeV#it{/c});p_{T}^{h} (GeV#it{/c});#Delta#varphi;#Delta#eta;", {HistType::kTHnSparseF, {{axisPt}, {axisPt}, {axisDeltaPhi}, {axisDeltaEta}}});
136-
registry.add("hTofnSigmaVsP", " Tof nSigma info vs P; n#sigma;#it{p} (GeV#it{/c});passEMcal;", {HistType::kTH2F, {{axisNSigma}, {axisPt}}});
137-
registry.add("hTpcnSigmaVsP", " TPC nSigma info vs P; n#sigma;#it{p} (GeV#it{/c});passEMcal;", {HistType::kTH2F, {{axisNSigma}, {axisPt}}});
136+
registry.add("hTofnSigmaVsP", " Tof nSigma info vs P; n#sigma;#it{p} (GeV#it{/c});", {HistType::kTH2F, {{axisNSigma}, {axisPt}}});
137+
registry.add("hTpcnSigmaVsP", " TPC nSigma info vs P; n#sigma;#it{p} (GeV#it{/c});", {HistType::kTH2F, {{axisNSigma}, {axisPt}}});
138+
registry.add("hTpcTofnSigmaVsP", " TPC and Tof nSigma info vs P; n#sigma;n#sigma;#it{p} (GeV#it{/c});", {HistType::kTH3F, {{axisNSigma}, {axisNSigma}, {axisPt}}});
138139

139140
registry.add("hMCgenNonHfEHCorrel", "Sparse for Delta phi and Delta eta for McGen Non Hf Electron with Hadron;p_{T}^{e} (GeV#it{/c});p_{T}^{h} (GeV#it{/c});#Delta#varphi;#Delta#eta;", {HistType::kTHnSparseF, {{axisPt}, {axisPt}, {axisDeltaPhi}, {axisDeltaEta}}});
140141
registry.add("hMCgenInclusiveEHCorrl", "Sparse for Delta phi and Delta eta for McGen Electron pair with Hadron;p_{T}^{e} (GeV#it{/c});p_{T}^{h} (GeV#it{/c});#Delta#varphi;#Delta#eta;", {HistType::kTHnSparseF, {{axisPt}, {axisPt}, {axisDeltaPhi}, {axisDeltaEta}}});
@@ -230,6 +231,9 @@ struct HfCorrelatorHfeHadrons {
230231
} else if (!eTrack.isEmcal() && !requireEmcal) {
231232

232233
// Apply sigma cut
234+
235+
registry.fill(HIST("hTpcTofnSigmaVsP"), eTrack.tofNSigmaElTrack(), eTrack.tpcNSigmaElTrack(), eTrack.ptTrack());
236+
233237
if (std::abs(eTrack.tofNSigmaElTrack()) < tofNSigmaEl && eTrack.tpcNSigmaElTrack() > tpcNsigmaElectronMin &&
234238
eTrack.tpcNSigmaElTrack() < tpcNsigmaElectronMax) {
235239
registry.fill(HIST("hTofnSigmaVsP"), eTrack.tofNSigmaElTrack(), eTrack.ptTrack());
@@ -394,7 +398,7 @@ struct HfCorrelatorHfeHadrons {
394398
fillCorrelation(collision, electrons, tracks, bcs);
395399
}
396400

397-
PROCESS_SWITCH(HfCorrelatorHfeHadrons, processData, "Process for Data", true);
401+
PROCESS_SWITCH(HfCorrelatorHfeHadrons, processData, "Process for Data", false);
398402

399403
// ======= Process starts for McRec, Same event ============
400404

@@ -406,7 +410,7 @@ struct HfCorrelatorHfeHadrons {
406410
fillCorrelation(mcCollision, mcElectrons, mcTracks, bcs);
407411
}
408412

409-
PROCESS_SWITCH(HfCorrelatorHfeHadrons, processMcRec, "Process MC Reco mode", false);
413+
PROCESS_SWITCH(HfCorrelatorHfeHadrons, processMcRec, "Process MC Reco mode", true);
410414

411415
void processMcGen(McGenTableCollision const& mcCollision, aod::McParticles const& mcParticles, aod::HfMcGenSelEl const& electrons)
412416
{

0 commit comments

Comments
 (0)