Skip to content

Commit 081e962

Browse files
author
Stefanie Mrozinski
committed
Unify QC + MaterialBudgetTasks
1 parent aca3295 commit 081e962

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

PWGEM/PhotonMeson/Tasks/pcmQC.cxx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
/// building and deduplication, separating genuine
3333
/// reconstruction quality from reconstruction artifacts.
3434
///
35-
/// \author Daiki Sekihata <daiki.sekihata@cern.ch> and Stefanie Mrozinski <stefanie.mrozinski@cern.ch>
35+
/// \author Daiki Sekihata <daiki.sekihata@cern.ch> and author Stefanie Mrozinski <stefanie.mrozinski@cern.ch>
3636

3737
#include "PWGEM/Dilepton/Utils/MCUtilities.h"
3838
#include "PWGEM/PhotonMeson/Core/EMPhotonEventCut.h"
@@ -459,9 +459,7 @@ struct PCMQC {
459459
fRegistry.add("V0/primary/hEtaVsPt", "#eta vs. pT;p_{T,#gamma} (GeV/c);#eta", kTH2F, {{100, 0, 10}, {200, -1.0f, 1.0f}}, false);
460460
fRegistry.add("V0/primary/hPhiVsPt", "#varphi vs. pT;p_{T,#gamma} (GeV/c);#varphi (rad.)", kTH2F, {{100, 0, 10}, {90, 0, o2::constants::math::TwoPI}}, false);
461461
fRegistry.add("V0/primary/hsAlphaQtPt", "Armenteros vs. pT;#alpha;q_{T} (GeV/c);p_{T,#gamma} (GeV/c)", kTHnSparseF, {{100, -1.0f, +1.0f}, {125, 0.0f, 0.25f}, {100, 0, 10}}, false);
462-
if (doprocessPCMQCMCML) {
463-
fRegistry.add("V0/primary/hPsiPairVsPt", "#psi_{pair} vs. pT;p_{T,#gamma} (GeV/c);#psi_{pair} (rad.)", kTH2F, {{100, 0, 10}, {200, -0.5f, +0.5f}}, false);
464-
}
462+
fRegistry.add("V0/primary/hPsiPairVsPt", "#psi_{pair} vs. pT;p_{T,#gamma} (GeV/c);#psi_{pair} (rad.)", kTH2F, {{100, 0, 10}, {200, -0.5f, +0.5f}}, false);
465463
fRegistry.add("V0/primary/hMassGamma", "hMassGamma;R_{xy} (cm);m_{ee} (GeV/c^{2})", kTH2F, {{200, 0.0f, 100.0f}, {100, 0.0f, 0.1f}}, false);
466464
fRegistry.add("V0/primary/hKFChi2vsM", "KF chi2 vs. m_{ee};m_{ee} (GeV/c^{2});KF chi2/NDF", kTH2F, {{100, 0.0f, 0.1f}, {100, 0.f, 100.0f}}, false);
467465
fRegistry.add("V0/primary/hKFChi2vsR", "KF chi2 vs. conversion point in XY;R_{xy} (cm);KF chi2/NDF", kTH2F, {{200, 0.0f, 100.0f}, {100, 0.f, 100.0f}}, false);
@@ -708,7 +706,9 @@ struct PCMQC {
708706
fRegistry.fill(HIST("V0/hEtaVsPt"), v0.pt(), v0.eta());
709707
fRegistry.fill(HIST("V0/hPhiVsPt"), v0.pt(), v0.phi());
710708
fRegistry.fill(HIST("V0/hsAlphaQtPt"), v0.alpha(), v0.qtarm(), v0.pt());
711-
fRegistry.fill(HIST("V0/hPsiPairVsPt"), v0.pt(), v0.psipair());
709+
if constexpr (requires { v0.psipair(); }) {
710+
fRegistry.fill(HIST("V0/hPsiPairVsPt"), v0.pt(), v0.psipair());
711+
}
712712
fRegistry.fill(HIST("V0/hMassGamma"), v0.v0radius(), v0.mGamma());
713713
fRegistry.fill(HIST("V0/hKFChi2vsM"), v0.mGamma(), v0.chiSquareNDF());
714714
fRegistry.fill(HIST("V0/hKFChi2vsR"), v0.v0radius(), v0.chiSquareNDF());
@@ -842,7 +842,7 @@ struct PCMQC {
842842
if (!fV0PhotonCut.IsSelected<decltype(v0), aod::V0Legs>(v0)) {
843843
continue;
844844
}
845-
fillLossQAInfo<1>(v0); // survivors
845+
fillLossQAInfo<1>(v0);
846846
fillV0Info(v0);
847847
fillMaterialBudgetInfo(v0);
848848
for (const auto& leg : {pos, ele}) {
@@ -1254,7 +1254,7 @@ struct PCMQC {
12541254
}
12551255
return mc.mothersIds()[0];
12561256
};
1257-
std::unordered_map<int, int> nV0CandsOfMcPhoton; // counted: >=2 = duplicate candidates for the same true photon
1257+
std::unordered_map<int, int> nV0CandsOfMcPhoton;
12581258
for (const auto& v0 : v0photonsKF) {
12591259
const int legPosIdx = v0.posTrackId();
12601260
const int legNegIdx = v0.negTrackId();

0 commit comments

Comments
 (0)