Skip to content

Commit 4b50cd3

Browse files
authored
[PWGEM/Dilepton] add a histogram for PC in SingleTrackQCMC.h (#12881)
1 parent 3e3a9af commit 4b50cd3

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

PWGEM/Dilepton/Core/SingleTrackQCMC.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,8 @@ struct SingleTrackQCMC {
303303
fRegistry.addClone("Track/lf/", "Track/c2l/");
304304
fRegistry.addClone("Track/lf/", "Track/b2l/");
305305
fRegistry.addClone("Track/lf/", "Track/b2c2l/");
306+
fRegistry.add("Track/Photon/positive/hProdVtx", "production vertex of e from #gamma;p_{T,e}^{rec} (GeV/c);r_{xy}^{gen} (cm);", kTH2F, {axis_pt, {100, 0, 100}}, false);
307+
fRegistry.addClone("Track/Photon/positive/hProdVtx", "Track/Photon/negative/hProdVtx");
306308

307309
if (cfgFillQA) {
308310
fRegistry.add("Track/PID/positive/hTPCdEdx", "TPC dE/dx;p_{in} (GeV/c);TPC dE/dx (a.u.)", kTH2F, {{1000, 0, 10}, {200, 0, 200}}, false);
@@ -605,6 +607,10 @@ struct SingleTrackQCMC {
605607

606608
if (track.sign() > 0) {
607609
fRegistry.fill(HIST("Track/") + HIST(lepton_source_types[lepton_source_id]) + HIST("positive/hs"), track.pt(), track.eta(), track.phi(), dca3D, dcaXY, dcaZ, -mctrack.pdgCode() / pdg_lepton, weight);
610+
if constexpr (lepton_source_id == 2) { // for electron from photon conversion
611+
fRegistry.fill(HIST("Track/Photon/positive/hProdVtx"), track.pt(), std::sqrt(std::pow(mctrack.vx(), 2) + std::pow(mctrack.vy(), 2)), weight);
612+
}
613+
608614
if (fillGenValuesForRec) {
609615
fRegistry.fill(HIST("Track/") + HIST(lepton_source_types[lepton_source_id]) + HIST("positive/hsGenRec"), mctrack.pt(), mctrack.eta(), mctrack.phi(), dca3D, dcaXY, dcaZ, -mctrack.pdgCode() / pdg_lepton, weight);
610616
}
@@ -655,6 +661,9 @@ struct SingleTrackQCMC {
655661
}
656662
} else {
657663
fRegistry.fill(HIST("Track/") + HIST(lepton_source_types[lepton_source_id]) + HIST("negative/hs"), track.pt(), track.eta(), track.phi(), dca3D, dcaXY, dcaZ, -mctrack.pdgCode() / pdg_lepton, weight);
664+
if constexpr (lepton_source_id == 2) { // for electron from photon conversion
665+
fRegistry.fill(HIST("Track/Photon/negative/hProdVtx"), track.pt(), std::sqrt(std::pow(mctrack.vx(), 2) + std::pow(mctrack.vy(), 2)), weight);
666+
}
658667
if (fillGenValuesForRec) {
659668
fRegistry.fill(HIST("Track/") + HIST(lepton_source_types[lepton_source_id]) + HIST("negative/hsGenRec"), mctrack.pt(), mctrack.eta(), mctrack.phi(), dca3D, dcaXY, dcaZ, -mctrack.pdgCode() / pdg_lepton, weight);
660669
}

0 commit comments

Comments
 (0)