@@ -258,7 +258,8 @@ struct AntinucleiInJets {
258258 registryMC.add (" antiproton_gen_ue" , " antiproton_gen_ue" , HistType::kTH1F , {{nbins, min, max, " #it{p}_{T} (GeV/#it{c})" }});
259259
260260 // Normalization histogram
261- registryMC.add (" antiproton_y_phi" , " antiproton_y_phi" , HistType::kTH2F , {{2000 , -1.0 , 1.0 , " #it{y}" }, {2000 , 0.0 , TwoPI, " #Delta#phi" }});
261+ registryMC.add (" antiproton_y_phi_jet" , " antiproton_y_phi_jet" , HistType::kTH2F , {{2000 , -1.0 , 1.0 , " #it{y}" }, {2000 , 0.0 , TwoPI, " #Delta#phi" }});
262+ registryMC.add (" antiproton_y_phi_ue" , " antiproton_y_phi_ue" , HistType::kTH2F , {{2000 , -1.0 , 1.0 , " #it{y}" }, {2000 , 0.0 , TwoPI, " #Delta#phi" }});
262263 }
263264
264265 // Reconstructed antiproton spectra in jets and UE (MC-matched) with TPC/TOF PID
@@ -1463,7 +1464,12 @@ struct AntinucleiInJets {
14631464 continue ;
14641465
14651466 // Fill normalization histogram
1466- registryMC.fill (HIST (" antiproton_y_phi" ), particle.y (), getDeltaPhi (particle.phi (), jet.phi ()));
1467+ double px = particle.px ();
1468+ double py = particle.py ();
1469+ double pz = particle.pz ();
1470+ double E = std::sqrt (MassProton * MassProton + px * px + py * py + pz * pz);
1471+ double y = 0.5 * std::log ((E + pz) / (E - pz));
1472+ registryMC.fill (HIST (" antiproton_y_phi_jet" ), y, getDeltaPhi (particle.phi (), jet.phi ()));
14671473
14681474 // Fill histogram for generated antiprotons
14691475 registryMC.fill (HIST (" antiproton_gen_jet" ), particle.pt ());
@@ -1497,6 +1503,20 @@ struct AntinucleiInJets {
14971503 if (deltaRUe1 > maxConeRadius && deltaRUe2 > maxConeRadius)
14981504 continue ;
14991505
1506+ // Fill normalization histogram
1507+ double px = protonVec.Px ();
1508+ double py = protonVec.Py ();
1509+ double pz = protonVec.Pz ();
1510+ double E = std::sqrt (MassProton * MassProton + px * px + py * py + pz * pz);
1511+ double y = 0.5 * std::log ((E + pz) / (E - pz));
1512+
1513+ if (deltaRUe1 < maxConeRadius) {
1514+ registryMC.fill (HIST (" antiproton_y_phi_ue" ), y, getDeltaPhi (protonVec.Phi (), ueAxis1.Phi ()));
1515+ }
1516+ if (deltaRUe2 < maxConeRadius) {
1517+ registryMC.fill (HIST (" antiproton_y_phi_ue" ), y, getDeltaPhi (protonVec.Phi (), ueAxis2.Phi ()));
1518+ }
1519+
15001520 // Fill histogram for antiprotons in the UE
15011521 registryMC.fill (HIST (" antiproton_gen_ue" ), protonVec.Pt ());
15021522 }
0 commit comments