Skip to content

Commit 127492e

Browse files
committed
Add checkMCPairTemplate.cxx as task to study shape of different b->Hc->e decays, remove namespace and comment unused variables
1 parent c488f7a commit 127492e

File tree

1 file changed

+18
-19
lines changed

1 file changed

+18
-19
lines changed

PWGEM/Dilepton/Tasks/checkMCPairTemplate.cxx

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ using namespace o2::constants::physics;
6161
using namespace o2::aod::pwgem::dilepton::utils::mcutil;
6262
using namespace o2::aod::pwgem::dilepton::utils::emtrackutil;
6363
using namespace o2::aod::pwgem::dilepton::utils::pairutil;
64-
using namespace o2::aod::pwgem::dilepton::utils::pdgcodeconverterutil;
6564

6665
using MyCollisions = soa::Join<aod::EMEvents, aod::EMEventsMult, aod::EMEventsCent, aod::EMMCEventLabels>;
6766
using 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

Comments
 (0)