diff --git a/PWGEM/PhotonMeson/Tasks/photonhbt.cxx b/PWGEM/PhotonMeson/Tasks/photonhbt.cxx index 6b894fd773f..728d316d83f 100644 --- a/PWGEM/PhotonMeson/Tasks/photonhbt.cxx +++ b/PWGEM/PhotonMeson/Tasks/photonhbt.cxx @@ -671,6 +671,8 @@ struct Photonhbt { fRegistryPairMC.add("PairClass/Pairs/hPairOpening", "photon pairs with q_{inv} < 50 MeV: orientation of the opening by MC class", kTHnSparseF, {axSample, axClass, {10, 0.f, 0.05f, "#it{q}_{inv} (GeV/#it{c})"}, {30, 0.f, 0.15f, "|#it{q}_{side}| (LCMS) (GeV/#it{c})"}, {30, 0.f, 0.15f, "|#it{q}_{long}| (LCMS) (GeV/#it{c})"}, {18, 0.f, 1.5708f, "#psi = atan(|#Delta#eta| / |#Delta#varphi|) (rad)"}}); fRegistryPairMC.add("PairClass/Pairs/hSoftHard", "photon pairs with q_{inv} < 100 MeV: soft vs hard photon (reconstructed) by MC class", kTHnSparseF, {axSample, axClass, {20, 0.f, 0.1f, "#it{q}_{inv} (GeV/#it{c})"}, {20, 0.f, 1.f, "#it{E}_{soft} / #it{E}_{hard}"}, {60, -60.f, 60.f, "#it{R}_{xy}(soft) #minus #it{R}_{xy}(hard) (cm)"}, {18, 0.f, 90.f, "#it{R}_{xy}(hard) (cm)"}, {18, 0.f, 1.5708f, "#psi (rad)"}}); fRegistryPairMC.add("PairClass/Pairs/hPairRes", "pairs of two true photons, q_{inv} < 100 MeV: resolution by MC class", kTHnSparseF, {axSample, axClass, {20, 0.f, 0.1f, "#it{q}_{inv} (GeV/#it{c})"}, {40, -0.02f, 0.02f, "#it{q}_{inv}^{rec} #minus #it{q}_{inv}^{true} (GeV/#it{c})"}, {40, -0.1f, 0.1f, "#Delta#it{E}^{rec} #minus #Delta#it{E}^{true} (GeV)"}, {std::vector{0., 10., 20., 40., 80., 100.}, "centrality FT0C (%)"}}); + fRegistryPairMC.add("PairClass/Pairs/hPairResCut", "pairs of two true photons, q_{inv} < 100 MeV, both photons pass the photon cut and the same-sign legs pass cfgDPairCut: q_{inv} response by MC class (folding of the bremsstrahlung template; related swaps: q_{inv} of the two true photons of the brems pair)", kTHnSparseF, {axSample, axClass, {20, 0.f, 0.1f, "#it{q}_{inv} (GeV/#it{c})"}, {150, 0.f, 0.15f, "#it{q}_{inv} of the two MC photons (GeV/#it{c})"}, {std::vector{0., 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 1., 10.}, "#it{k}_{T} (GeV/#it{c})"}, {std::vector{0., 10., 20., 30., 40., 50., 60., 70., 80., 100.}, "centrality FT0C (%)"}}); + fRegistryPairMC.add("PairClass/Pairs/hPairResCutQout", "as hPairResCut, with the reconstructed |q_{out}| (LCMS): q_{inv} response per |q_{out}| band (2D folding of the bremsstrahlung template)", kTHnSparseF, {axSample, axClass, {20, 0.f, 0.1f, "#it{q}_{inv} (GeV/#it{c})"}, {150, 0.f, 0.15f, "#it{q}_{inv} of the two MC photons (GeV/#it{c})"}, {std::vector{0., 0.04, 0.1, 0.2, 0.3, 10.}, "|#it{q}_{out}| (LCMS) (GeV/#it{c})"}, {std::vector{0., 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 1., 10.}, "#it{k}_{T} (GeV/#it{c})"}, {std::vector{0., 10., 20., 30., 40., 50., 60., 70., 80., 100.}, "centrality FT0C (%)"}}); fRegistryPairMC.add("PairClass/Pairs/hPairDens", "photon pairs by MC class vs the number of legs in the artificial event", kTHnSparseF, {axSample, axClass, {20, 0.f, 0.1f, "#it{q}_{inv} (GeV/#it{c})"}, {std::vector{0., 25., 50., 75., 100., 125., 150., 200., 250., 300., 400., 500., 600., 800., 1000., 1500.}, "legs in the artificial event"}, {std::vector{0., 10., 20., 30., 40., 50., 60., 80., 100.}, "centrality FT0C (%)"}}); fRegistryPairMC.add("PairClass/Pairs/hPairDist", "photon pairs: conversion-point distances by MC class", kTHnSparseF, {axSample, axClass, {50, 0.f, 0.5f, "#it{q}_{inv} (GeV/#it{c})"}, {100, 0.f, 50.f, "reconstructed: distance of the two conversion points (cm)"}, {104, -2.f, 50.f, "true: largest distance of the legs' production vertices (cm)"}}); fRegistryPairMC.add("PairClass/Pairs/hPairQ", "photon pairs: fitted q, four-leg invariant mass, true q by MC class", kTHnSparseF, {axSample, axClass, {100, 0.f, 0.2f, "#it{q}_{inv} of the fitted photons (GeV/#it{c})"}, {100, 0.f, 0.2f, "#it{M} of the four legs (GeV/#it{c}^{2})"}, {100, 0.f, 0.2f, "#it{q}_{inv} of the two true photons (GeV/#it{c})"}, {6, 0.f, 1.5f, "#it{k}_{T} (GeV/#it{c})"}}); @@ -1504,6 +1506,8 @@ struct Photonhbt { const auto cls = static_cast(clsId); fRegistryPairMC.fill(HIST("PairClass/Pairs/hPairClass"), sample, cls, q, static_cast(pcPairOrigin(a, b)), clean); const auto nPass = static_cast(static_cast(a.pass) + static_cast(b.pass)); + // same-sign legs separated by more than cfgDPairCut (set below for q < 0.1) + float sepPassPair = 0.f; if (q < 0.1f) { // o2-linter: disable=magic-number (diagnostic range) fRegistryPairMC.fill(HIST("PairClass/Pairs/hPairDens"), sample, cls, q, mPcNLegs, mPcCent); } @@ -1514,7 +1518,8 @@ struct Photonhbt { constexpr float kRTpcEntranceCm = 70.f; // conversions in front of the TPC (inner vessel / field cage): swaps the overlay misses const auto rRegion = static_cast((std::hypot(a.vx, a.vy) >= kRTpcEntranceCm ? 1 : 0) + (std::hypot(b.vx, b.vy) >= kRTpcEntranceCm ? 1 : 0)); fRegistryPairMC.fill(HIST("PairClass/Pairs/hPairSep"), sample, cls, q, std::min(sep.dMin, 9.99f), std::min(sep.dRPhiMin, 4.99f), std::min(std::fabs(eAs - eBs), 0.499f), rRegion, clean, nPass); - fillPcNote(sample, cls, q, a, b, nPass, sep.dMin > pairsep.cfgDPairCut.value ? 1.f : 0.f); + sepPassPair = sep.dMin > pairsep.cfgDPairCut.value ? 1.f : 0.f; + fillPcNote(sample, cls, q, a, b, nPass, sepPassPair); if (sample != 1.f) { // not the standard ME: its pool photons can come from earlier DFs (leg rows of another PCMMixLegs table) const float dPoint = pcBremsPointingDMin(a, b, &mixLegs, mBzT); const float dCat = pcPointingCategory(dPoint); @@ -1634,6 +1639,15 @@ struct Photonhbt { const float dERec = eA >= eB ? eA - eB : eB - eA; const float dETrue = eA >= eB ? tA - tB : tB - tA; // same photon order as the reconstructed one fRegistryPairMC.fill(HIST("PairClass/Pairs/hPairRes"), sample, cls, q, std::clamp(q - qT, -0.0199f, 0.0199f), std::clamp(dERec - dETrue, -0.0999f, 0.0999f), mPcCent); + if (nPass > 1.5f && sepPassPair > 0.5f) { // both photons pass, legs separated: the pairs of the analysis maps + fRegistryPairMC.fill(HIST("PairClass/Pairs/hPairResCut"), sample, cls, q, qT, std::min(kt, 9.99f), mPcCent); + fRegistryPairMC.fill(HIST("PairClass/Pairs/hPairResCutQout"), sample, cls, q, qT, std::min(qout, 9.99f), std::min(kt, 9.99f), mPcCent); + } + } else if (clsId == kClsRelatedSwap && nPass > 1.5f && sepPassPair > 0.5f && a.pos.mpdg == kPcGamma && b.pos.mpdg == kPcGamma && !pcSameMother(a.pos, b.pos)) { + // related swap (A+, B-) + (B+, A-): the mothers of the two positron legs are the two true photons A and B of the brems pair + const float qT = o2::pwgem::photonmeson::qInv(a.pos.mpx, a.pos.mpy, a.pos.mpz, b.pos.mpx, b.pos.mpy, b.pos.mpz); + fRegistryPairMC.fill(HIST("PairClass/Pairs/hPairResCut"), sample, cls, q, qT, std::min(kt, 9.99f), mPcCent); + fRegistryPairMC.fill(HIST("PairClass/Pairs/hPairResCutQout"), sample, cls, q, qT, std::min(qout, 9.99f), std::min(kt, 9.99f), mPcCent); } } }