@@ -61,7 +61,6 @@ using namespace o2::constants::physics;
6161using namespace o2 ::aod::pwgem::dilepton::utils::mcutil;
6262using namespace o2 ::aod::pwgem::dilepton::utils::emtrackutil;
6363using namespace o2 ::aod::pwgem::dilepton::utils::pairutil;
64- using namespace o2 ::aod::pwgem::dilepton::utils::pdgcodeconverterutil;
6564
6665using MyCollisions = soa::Join<aod::EMEvents, aod::EMEventsMult, aod::EMEventsCent, aod::EMMCEventLabels>;
6766using MyCollision = MyCollisions::iterator;
@@ -1990,9 +1989,9 @@ struct checkMCPairTemplate {
19901989 ROOT::Math::PtEtaPhiMVector v2 (pt2, eta2, phi2, leptonM2);
19911990 ROOT::Math::PtEtaPhiMVector v12 = v1 + v2;
19921991
1993- float deta = v1.Eta () - v2.Eta ();
1994- float dphi = v1.Phi () - v2.Phi ();
1995- o2::math_utils::bringToPMPi (dphi);
1992+ // float deta = v1.Eta() - v2.Eta();
1993+ // float dphi = v1.Phi() - v2.Phi();
1994+ // o2::math_utils::bringToPMPi(dphi);
19961995
19971996 if constexpr (pairtype == o2::aod::pwgem::dilepton::utils::pairutil::DileptonPairType::kDielectron ) {
19981997 if (v12.Rapidity () < dielectroncuts.cfg_min_pair_y || dielectroncuts.cfg_max_pair_y < v12.Rapidity ()) {
@@ -2013,22 +2012,22 @@ struct checkMCPairTemplate {
20132012 int sign1 = -t1.pdgCode () / pdg_lepton;
20142013 int sign2 = -t2.pdgCode () / pdg_lepton;
20152014
2016- float aco = 1 .f - std::fabs (dphi) / M_PI;
2017- float asym = std::fabs (v1.Pt () - v2.Pt ()) / (v1.Pt () + v2.Pt ());
2018- float dphi_e_ee = v1.Phi () - v12.Phi ();
2019- o2::math_utils::bringToPMPi (dphi_e_ee);
2020- dphi = RecoDecay::constrainAngle (dphi, -o2::constants::math::PIHalf, 1 ); // shift dphi in [-pi/2, +3pi/2] rad. after deta-dphi cut.
2015+ // float aco = 1.f - std::fabs(dphi) / M_PI;
2016+ // float asym = std::fabs(v1.Pt() - v2.Pt()) / (v1.Pt() + v2.Pt());
2017+ // float dphi_e_ee = v1.Phi() - v12.Phi();
2018+ // o2::math_utils::bringToPMPi(dphi_e_ee);
2019+ // dphi = RecoDecay::constrainAngle(dphi, -o2::constants::math::PIHalf, 1); // shift dphi in [-pi/2, +3pi/2] rad. after deta-dphi cut.
20212020
2022- std::array<float , 4 > arrP1 = {static_cast <float >(v1.Px ()), static_cast <float >(v1.Py ()), static_cast <float >(v1.Pz ()), leptonM1};
2023- std::array<float , 4 > arrP2 = {static_cast <float >(v2.Px ()), static_cast <float >(v2.Py ()), static_cast <float >(v2.Pz ()), leptonM2};
2024- float cos_thetaPol = 999 , phiPol = 999 .f ;
2025- if (cfgPolarizationFrame == 0 ) {
2026- o2::aod::pwgem::dilepton::utils::pairutil::getAngleCS (arrP1, arrP2, beamE1, beamE2, beamP1, beamP2, -t1.pdgCode () / pdg_lepton, cos_thetaPol, phiPol);
2027- } else if (cfgPolarizationFrame == 1 ) {
2028- o2::aod::pwgem::dilepton::utils::pairutil::getAngleHX (arrP1, arrP2, beamE1, beamE2, beamP1, beamP2, -t1.pdgCode () / pdg_lepton, cos_thetaPol, phiPol);
2029- }
2030- o2::math_utils::bringToPMPi (phiPol);
2031- float quadmom = (3 .f * std::pow (cos_thetaPol, 2 ) - 1 .f ) / 2 .f ;
2021+ // std::array<float, 4> arrP1 = {static_cast<float>(v1.Px()), static_cast<float>(v1.Py()), static_cast<float>(v1.Pz()), leptonM1};
2022+ // std::array<float, 4> arrP2 = {static_cast<float>(v2.Px()), static_cast<float>(v2.Py()), static_cast<float>(v2.Pz()), leptonM2};
2023+ // float cos_thetaPol = 999, phiPol = 999.f;
2024+ // if (cfgPolarizationFrame == 0) {
2025+ // o2::aod::pwgem::dilepton::utils::pairutil::getAngleCS(arrP1, arrP2, beamE1, beamE2, beamP1, beamP2, -t1.pdgCode() / pdg_lepton, cos_thetaPol, phiPol);
2026+ // } else if (cfgPolarizationFrame == 1) {
2027+ // o2::aod::pwgem::dilepton::utils::pairutil::getAngleHX(arrP1, arrP2, beamE1, beamE2, beamP1, beamP2, -t1.pdgCode() / pdg_lepton, cos_thetaPol, phiPol);
2028+ // }
2029+ // o2::math_utils::bringToPMPi(phiPol);
2030+ // float quadmom = (3.f * std::pow(cos_thetaPol, 2) - 1.f) / 2.f;
20322031
20332032 if (!isInAcceptance<isSmeared>(t1) || !isInAcceptance<isSmeared>(t2)) {
20342033 return false ;
0 commit comments