Skip to content

Commit b9051e6

Browse files
authored
[PWGEM] Update PCMPCM ML analysis (#16705)
1 parent 74a54a7 commit b9051e6

2 files changed

Lines changed: 20 additions & 1 deletion

File tree

PWGEM/PhotonMeson/Core/Pi0EtaToGammaGamma.h

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -978,6 +978,25 @@ struct Pi0EtaToGammaGamma {
978978
if (std::fabs(v12.Rapidity()) > maxY) {
979979
continue;
980980
}
981+
// as photon has mass= 0 e = p
982+
float alphaMeson = std::fabs(g1.p() - g2.p()) / (g1.p() + g2.p());
983+
float alphaCut = 999.f;
984+
switch (static_cast<AlphaMesonCutOption>(cfgAlphaMesonCut.value)) {
985+
case AlphaMesonCutOption::Off:
986+
break;
987+
case AlphaMesonCutOption::SpecificValue:
988+
alphaCut = cfgAlphaMeson;
989+
break;
990+
case AlphaMesonCutOption::PTDependent: {
991+
alphaCut = cfgAlphaMesonA * std::tanh(cfgAlphaMesonB * v12.pt());
992+
break;
993+
}
994+
default:
995+
LOGF(error, "Invalid option for alpha meson cut. No alpha cut will be applied.");
996+
}
997+
if (alphaMeson > alphaCut) {
998+
continue;
999+
}
9811000

9821001
fRegistry.fill(HIST("Pair/mix/hs"), v12.M(), v12.Pt(), weight);
9831002
}

PWGEM/PhotonMeson/Tasks/Pi0EtaToGammaGammaMCPCMPCMML.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ using namespace o2::aod;
2626
using namespace o2::framework;
2727
using namespace o2::aod::pwgem::photonmeson::photonpair;
2828

29-
using MyV0Photons = o2::soa::Filtered<o2::soa::Join<o2::aod::V0PhotonsKF, o2::aod::V0PhotonsPhiVPsi, o2::aod::V0KFEMEventIds, o2::aod::V0PhotonsKFPrefilterBitDerived>>;
29+
using MyV0Photons = o2::soa::Filtered<o2::soa::Join<o2::aod::V0PhotonsKF, o2::aod::V0PhotonsPhiVPsi, o2::aod::V0KFEMEventIds, o2::aod::V0PhotonsKFPrefilterBitDerived, o2::aod::V0PhotonOmegaMBWeights>>;
3030
using MyMCV0Legs = soa::Join<aod::V0Legs, aod::V0LegMCLabels>;
3131

3232
WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)

0 commit comments

Comments
 (0)