@@ -258,8 +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_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" }});
261+ registryMC.add (" antiproton_deltay_deltaphi_jet " , " antiproton_deltay_deltaphi_jet " , HistType::kTH2F , {{2000 , -1.0 , 1.0 , " #Delta# it{y}" }, {2000 , 0.0 , 2.0 , " #Delta#phi" }});
262+ registryMC.add (" antiproton_deltay_deltaphi_ue " , " antiproton_deltay_deltaphi_ue " , HistType::kTH2F , {{2000 , -1.0 , 1.0 , " #Delta# it{y}" }, {2000 , 0.0 , 2.0 , " #Delta#phi" }});
263263 }
264264
265265 // Reconstructed antiproton spectra in jets and UE (MC-matched) with TPC/TOF PID
@@ -1464,12 +1464,7 @@ struct AntinucleiInJets {
14641464 continue ;
14651465
14661466 // Fill normalization histogram
1467- double px = particle.px ();
1468- double py = particle.py ();
1469- double pz = particle.pz ();
1470- double energy = std::sqrt (MassProton * MassProton + px * px + py * py + pz * pz);
1471- double y = 0.5 * std::log ((energy + pz) / (energy - pz));
1472- registryMC.fill (HIST (" antiproton_y_phi_jet" ), y, getDeltaPhi (particle.phi (), jet.phi ()));
1467+ registryMC.fill (HIST (" antiproton_deltay_deltaphi_jet" ), particle.eta () - jet.eta (), getDeltaPhi (particle.phi (), jet.phi ()));
14731468
14741469 // Fill histogram for generated antiprotons
14751470 registryMC.fill (HIST (" antiproton_gen_jet" ), particle.pt ());
@@ -1504,17 +1499,11 @@ struct AntinucleiInJets {
15041499 continue ;
15051500
15061501 // Fill normalization histogram
1507- double px = protonVec.Px ();
1508- double py = protonVec.Py ();
1509- double pz = protonVec.Pz ();
1510- double energy = std::sqrt (MassProton * MassProton + px * px + py * py + pz * pz);
1511- double y = 0.5 * std::log ((energy + pz) / (energy - pz));
1512-
15131502 if (deltaRUe1 < maxConeRadius) {
1514- registryMC.fill (HIST (" antiproton_y_phi_ue " ), y , getDeltaPhi (protonVec.Phi (), ueAxis1.Phi ()));
1503+ registryMC.fill (HIST (" antiproton_deltay_deltaphi_ue " ), protonVec. Eta () - ueAxis1. Eta () , getDeltaPhi (protonVec.Phi (), ueAxis1.Phi ()));
15151504 }
15161505 if (deltaRUe2 < maxConeRadius) {
1517- registryMC.fill (HIST (" antiproton_y_phi_ue " ), y , getDeltaPhi (protonVec.Phi (), ueAxis2.Phi ()));
1506+ registryMC.fill (HIST (" antiproton_deltay_deltaphi_ue " ), protonVec. Eta () - ueAxis2. Eta () , getDeltaPhi (protonVec.Phi (), ueAxis2.Phi ()));
15181507 }
15191508
15201509 // Fill histogram for antiprotons in the UE
0 commit comments