Skip to content
Merged
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
37 changes: 26 additions & 11 deletions PWGHF/HFL/TableProducer/electronSelectionWithTpcEmcal.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -189,14 +189,20 @@ struct HfElectronSelectionWithTpcEmcal {
registry.add("hZvertex", "z vertex", {HistType::kTH1D, {axisPosZ}});
registry.add("hNeventsAfterPassEmcal", "No of events pass the Emcal", {HistType::kTH1D, {{3, 1, 4}}});
registry.add("hNevents", "No of events", {HistType::kTH1D, {{3, 1, 4}}});
registry.add("hLikeMass", "Like mass", {HistType::kTH1D, {{axisMass}}});
registry.add("hUnLikeMass", "unLike mass", {HistType::kTH1D, {{axisMass}}});
registry.add("hLikeSignPt", "Like sign Momentum ", {HistType::kTH1D, {{axisPt}}});
registry.add("hUnLikeSignPt", "UnLike sign Momentum", {HistType::kTH1D, {{axisPt}}});
registry.add("hLikeMass_EMCAL", "Like mass Emcal", {HistType::kTH1D, {{axisMass}}});
registry.add("hUnLikeMass_EMCAL", "unLike mass Emcal", {HistType::kTH1D, {{axisMass}}});
registry.add("hLikeSignPt_EMCAL", "Like sign Momentum Emcal ", {HistType::kTH1D, {{axisPt}}});
registry.add("hUnLikeSignPt_EMCAL", "UnLike sign Momentum Emcal", {HistType::kTH1D, {{axisPt}}});
registry.add("hLikeMass_NoEMCAL", "Like mass NoEMCAL", {HistType::kTH1D, {{axisMass}}});
registry.add("hUnLikeMass_NoEMCAL", "unLike mass NoEMCAL", {HistType::kTH1D, {{axisMass}}});
registry.add("hLikeSignPt_NoEMCAL", "Like sign Momentum NoEMCAL ", {HistType::kTH1D, {{axisPt}}});
registry.add("hUnLikeSignPt_NoEMCAL", "UnLike sign Momentum NoEMCAL", {HistType::kTH1D, {{axisPt}}});

registry.add("hMcgenInElectron", "Mc Gen Inclusive Electron", {HistType::kTH1D, {{axisPt}}});
registry.add("hMcRecInElectron", "Mc Rec Inclusive Electron", {HistType::kTH1D, {{axisPt}}});
registry.add("hMcRecwithoutEMCalInElectron", "Mc Rec Inclusive Electron without Emcal", {HistType::kTH1D, {{axisPt}}});

registry.add("hphiElectron", "hphiElectron", {HistType::kTH1D, {axisPhi}});
registry.add("hphiElectronPassEmcal", "hphiElectron pass Emcal", {HistType::kTH1D, {axisPhi}});
registry.add("hMcgenAllNonHfeElectron", "Mc Gen All NonHf Electron", {HistType::kTH1D, {{axisPt}}});
registry.add("hMcgenNonHfeElectron", "Mc Gen NonHf Electron with mother", {HistType::kTH1D, {{axisPt}}});
registry.add("hPi0eEmbTrkPt", "Mc Gen Pi0 mother NonHf Electron", {HistType::kTH1D, {{axisPt}}});
Expand Down Expand Up @@ -353,7 +359,9 @@ struct HfElectronSelectionWithTpcEmcal {
vecLSMass.push_back(massLike);
isLSElectron = true;
if (isEMcal) {
registry.fill(HIST("hLikeMass"), massLike);
registry.fill(HIST("hLikeMass_EMCAL"), massLike);
} else {
registry.fill(HIST("hLikeMass_NoEMCAL"), massLike);
}
}
// for unlike charge
Expand All @@ -362,7 +370,9 @@ struct HfElectronSelectionWithTpcEmcal {
vecULSMass.push_back(massUnLike);
isULSElectron = true;
if (isEMcal) {
registry.fill(HIST("hUnLikeMass"), massUnLike);
registry.fill(HIST("hUnLikeMass_EMCAL"), massUnLike);
} else {
registry.fill(HIST("hUnLikeMass_NoEMCAL"), massUnLike);
}
}

Expand All @@ -371,15 +381,19 @@ struct HfElectronSelectionWithTpcEmcal {
massLike = invMassElectron;
++nElPairsLS;
if (isEMcal) {
registry.fill(HIST("hLikeSignPt"), electron.pt());
registry.fill(HIST("hLikeSignPt_EMCAL"), electron.pt());
} else {
registry.fill(HIST("hLikeSignPt_NoEMCAL"), electron.pt());
}
}
// for unlike charge
if (isULSElectron && (invMassElectron <= invariantMass)) {
massUnLike = invMassElectron;
++nElPairsUS;
if (isEMcal) {
registry.fill(HIST("hUnLikeSignPt"), electron.pt());
registry.fill(HIST("hUnLikeSignPt_EMCAL"), electron.pt());
} else {
registry.fill(HIST("hUnLikeSignPt_NoEMCAL"), electron.pt());
}
}
}
Expand Down Expand Up @@ -445,7 +459,7 @@ struct HfElectronSelectionWithTpcEmcal {
}

if (fillTrackInfo) {
registry.fill(HIST("hTrackEtaPhi"), etaTrack, phiTrack, passEMCal); // track etaphi infor after filter bit
// track etaphi infor after filter bit
registry.fill(HIST("hTrackEnergyLossVsP"), track.tpcSignal(), pTrack, passEMCal); // track etaphi infor after filter bit
registry.fill(HIST("hTrackEnergyLossVsPt"), track.tpcSignal(), ptTrack, passEMCal); // track etaphi infor after filter bit
registry.fill(HIST("hTracknSigmaVsP"), tpcNsigmaTrack, pTrack, passEMCal); // track etaphi infor after filter bit
Expand Down Expand Up @@ -530,7 +544,7 @@ struct HfElectronSelectionWithTpcEmcal {
if (eop < eopElectronMin || eop > eopElectronMax) {
continue;
}

registry.fill(HIST("hphiElectronPassEmcal"), track.phi());
///////////////// NonHf electron Selection with Emcal ////////////////////////
if constexpr (IsMc) {
if (matchTrack.has_mcParticle()) {
Expand Down Expand Up @@ -648,6 +662,7 @@ struct HfElectronSelectionWithTpcEmcal {
if ((track.tpcNSigmaEl() < tpcNsigmaElectronMin || track.tpcNSigmaEl() > tpcNsigmaElectronMax)) {
continue;
}
registry.fill(HIST("hphiElectron"), track.phi());
if constexpr (IsMc) {
if (track.has_mcParticle()) {
auto mcParticle = track.template mcParticle_as<aod::McParticles>();
Expand Down
Loading