@@ -425,6 +425,10 @@ struct DileptonMC {
425425 fRegistry .add (" Pair/sm/Photon/hMvsRxy" , " m_{ee} vs. r_{xy};r_{xy}^{true} (cm);m_{ee} (GeV/c^{2})" , kTH2F , {{100 , 0 , 100 }, {100 , 0 .0f , 1 .0f }}, true );
426426 fRegistry .add (" Pair/sm/PromptPi0/hMvsPhiV" , " m_{ee} vs. #varphi_{V};#varphi (rad.);m_{ee} (GeV/c^{2})" , kTH2F , {{90 , 0 , M_PI}, {100 , 0 .0f , 1 .0f }}, true );
427427 fRegistry .add (" Pair/sm/NonPromptPi0/hMvsPhiV" , " m_{ee} vs. #varphi_{V};#varphi (rad.);m_{ee} (GeV/c^{2})" , kTH2F , {{90 , 0 , M_PI}, {100 , 0 .0f , 1 .0f }}, true );
428+ fRegistry .add (" Pair/sm/PromptPi0/hDeltaPtvsDCA" , Form (" p^{gen}_{T,e} - p^{rec}_{T,e} vs. DCA_{ee};%s;p^{gen}_{T,e} - p^{rec}_{T,e} (GeV/c)" , pair_dca_axis_title.c_str ()), kTH2F , {{160 , 0 , 8 .}, {220 , -1 .f , +10 .f }}, true );
429+ fRegistry .add (" Pair/sm/NonPromptPi0/hDeltaPtvsDCA" , Form (" p^{gen}_{T,e} - p^{rec}_{T,e} vs. DCA_{ee};%s;p^{gen}_{T,e} - p^{rec}_{T,e} (GeV/c)" , pair_dca_axis_title.c_str ()), kTH2F , {{160 , 0 , 8 .}, {220 , -1 .f , +10 .f }}, true );
430+ fRegistry .add (" Pair/sm/PromptJPsi/hDeltaPtvsDCA" , Form (" p^{gen}_{T,e} - p^{rec}_{T,e} vs. DCA_{ee};%s;p^{gen}_{T,e} - p^{rec}_{T,e} (GeV/c)" , pair_dca_axis_title.c_str ()), kTH2F , {{160 , 0 , 8 .}, {220 , -1 .f , +10 .f }}, true );
431+ fRegistry .add (" Pair/sm/NonPromptJPsi/hDeltaPtvsDCA" , Form (" p^{gen}_{T,e} - p^{rec}_{T,e} vs. DCA_{ee};%s;p^{gen}_{T,e} - p^{rec}_{T,e} (GeV/c)" , pair_dca_axis_title.c_str ()), kTH2F , {{160 , 0 , 8 .}, {220 , -1 .f , +10 .f }}, true );
428432 }
429433
430434 fRegistry .add (" Pair/ccbar/c2l_c2l/hadron_hadron/hs" , " hs pair" , kTHnSparseD , {axis_mass, axis_pt, axis_y, axis_dphi_ee, axis_deta_ee, axis_cos_theta_cs, axis_phi_cs, axis_aco, axis_asym_pt, axis_dphi_e_ee, axis_dca}, true );
@@ -973,15 +977,21 @@ struct DileptonMC {
973977 auto mcmother = mcparticles.iteratorAt (mother_id);
974978 if (mcmother.isPhysicalPrimary () || mcmother.producedByGenerator ()) {
975979 if ((t1mc.isPhysicalPrimary () || t1mc.producedByGenerator ()) && (t2mc.isPhysicalPrimary () || t2mc.producedByGenerator ())) {
980+ float deltaPt1 = t1mc.pt () - t1.pt ();
981+ float deltaPt2 = t2mc.pt () - t2.pt ();
976982 switch (std::abs (mcmother.pdgCode ())) {
977983 case 111 :
978984 if (IsFromCharm (mcmother, mcparticles) < 0 && IsFromBeauty (mcmother, mcparticles) < 0 ) { // prompt pi0
979985 fRegistry .fill (HIST (" Pair/sm/PromptPi0/hs" ), v12.M (), v12.Pt (), v12.Rapidity (), dphi, deta, std::fabs (cos_thetaCS), std::fabs (phiCS), aco, asym, std::fabs (dphi_e_ee), pair_dca, weight);
986+ fRegistry .fill (HIST (" Pair/sm/PromptPi0/hDeltaPtvsDCA" ), pair_dca, deltaPt1);
987+ fRegistry .fill (HIST (" Pair/sm/PromptPi0/hDeltaPtvsDCA" ), pair_dca, deltaPt2);
980988 if constexpr (pairtype == o2::aod::pwgem::dilepton::utils::pairutil::DileptonPairType::kDielectron ) {
981989 fRegistry .fill (HIST (" Pair/sm/PromptPi0/hMvsPhiV" ), phiv, v12.M ());
982990 }
983991 } else { // non-prompt pi0
984992 fRegistry .fill (HIST (" Pair/sm/NonPromptPi0/hs" ), v12.M (), v12.Pt (), v12.Rapidity (), dphi, deta, std::fabs (cos_thetaCS), std::fabs (phiCS), aco, asym, std::fabs (dphi_e_ee), pair_dca, weight);
993+ fRegistry .fill (HIST (" Pair/sm/NonPromptPi0/hDeltaPtvsDCA" ), pair_dca, deltaPt1);
994+ fRegistry .fill (HIST (" Pair/sm/NonPromptPi0/hDeltaPtvsDCA" ), pair_dca, deltaPt2);
985995 if constexpr (pairtype == o2::aod::pwgem::dilepton::utils::pairutil::DileptonPairType::kDielectron ) {
986996 fRegistry .fill (HIST (" Pair/sm/NonPromptPi0/hMvsPhiV" ), phiv, v12.M ());
987997 }
@@ -1011,8 +1021,12 @@ struct DileptonMC {
10111021 case 443 : {
10121022 if (IsFromBeauty (mcmother, mcparticles) > 0 ) {
10131023 fRegistry .fill (HIST (" Pair/sm/NonPromptJPsi/hs" ), v12.M (), v12.Pt (), v12.Rapidity (), dphi, deta, std::fabs (cos_thetaCS), std::fabs (phiCS), aco, asym, std::fabs (dphi_e_ee), pair_dca, weight);
1024+ fRegistry .fill (HIST (" Pair/sm/NonPromptJPsi/hDeltaPtvsDCA" ), pair_dca, deltaPt1);
1025+ fRegistry .fill (HIST (" Pair/sm/NonPromptJPsi/hDeltaPtvsDCA" ), pair_dca, deltaPt2);
10141026 } else {
10151027 fRegistry .fill (HIST (" Pair/sm/PromptJPsi/hs" ), v12.M (), v12.Pt (), v12.Rapidity (), dphi, deta, std::fabs (cos_thetaCS), std::fabs (phiCS), aco, asym, std::fabs (dphi_e_ee), pair_dca, weight);
1028+ fRegistry .fill (HIST (" Pair/sm/PromptJPsi/hDeltaPtvsDCA" ), pair_dca, deltaPt1);
1029+ fRegistry .fill (HIST (" Pair/sm/PromptJPsi/hDeltaPtvsDCA" ), pair_dca, deltaPt2);
10161030 }
10171031 break ;
10181032 }
0 commit comments