Skip to content

Commit cba883c

Browse files
committed
Clean-up the Single Photon QA histograms + add kt-dependent histograms
1 parent b5db74f commit cba883c

File tree

1 file changed

+5
-15
lines changed

1 file changed

+5
-15
lines changed

PWGEM/PhotonMeson/Tasks/photonhbt.cxx

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -537,13 +537,8 @@ struct photonhbt {
537537

538538
void addSinglePhotonQAHistogramsForStep(const std::string& path)
539539
{
540-
fRegistryPairQA.add((path + "hPt").c_str(), "p_{T};p_{T} (GeV/c);counts", kTH1D, {axisPt}, true);
541-
fRegistryPairQA.add((path + "hEta").c_str(), "#eta;#eta;counts", kTH1D, {axisEta}, true);
542-
fRegistryPairQA.add((path + "hPhi").c_str(), "#phi;#phi (rad);counts", kTH1D, {axisPhi}, true);
543-
fRegistryPairQA.add((path + "hEtaVsPhi").c_str(), "acceptance;#phi (rad);#eta", kTH2D, {axisPhi, axisEta}, true);
544-
fRegistryPairQA.add((path + "hR").c_str(), "R_{conv};R_{conv} (cm);counts", kTH1D, {axisR}, true);
545-
fRegistryPairQA.add((path + "hZConv").c_str(), "z_{conv};z_{conv} (cm);counts", kTH1D, {axisZConv}, true);
546-
fRegistryPairQA.add((path + "hRVsZConv").c_str(), "R_{conv} vs z_{conv};z_{conv} (cm);R_{conv} (cm)", kTH2D, {axisZConv, axisR}, true);
540+
fRegistryPairQA.add((path + "hEtaVsPhiPt").c_str(), "acceptance;#phi (rad);#eta", kTH3D, {axisPhi, axisEta, axisPt}, true);
541+
fRegistryPairQA.add((path + "hRVsZConvPt").c_str(), "R_{conv} vs z_{conv};z_{conv} (cm);R_{conv} (cm)", kTH2D, {axisZConv, axisR, axisPt}, true);
547542
}
548543

549544
void addFullRangeHistograms(const std::string& path)
@@ -714,13 +709,8 @@ void addQAHistogramsForStep(const std::string& path)
714709
return;
715710
constexpr auto base = singlePhotonQAPrefix<step_id>();
716711
const float r = std::sqrt(g.vx() * g.vx() + g.vy() * g.vy());
717-
fRegistryPairQA.fill(HIST(base) + HIST("hPt"), g.pt());
718-
fRegistryPairQA.fill(HIST(base) + HIST("hEta"), g.eta());
719-
fRegistryPairQA.fill(HIST(base) + HIST("hPhi"), g.phi());
720-
fRegistryPairQA.fill(HIST(base) + HIST("hEtaVsPhi"), g.phi(), g.eta());
721-
fRegistryPairQA.fill(HIST(base) + HIST("hR"), r);
722-
fRegistryPairQA.fill(HIST(base) + HIST("hZConv"), g.vz());
723-
fRegistryPairQA.fill(HIST(base) + HIST("hRVsZConv"), g.vz(), r);
712+
fRegistryPairQA.fill(HIST(base) + HIST("hEtaVsPhiPt"), g.phi(), g.eta(), g.pt());
713+
fRegistryPairQA.fill(HIST(base) + HIST("hRVsZConvPt"), g.vz(), r, g.pt());
724714
}
725715

726716
template <int ev_id, typename TCollision>
@@ -907,7 +897,7 @@ void addQAHistogramsForStep(const std::string& path)
907897
fRegistryPairQA.fill(HIST(base) + HIST("hDeltaPhiPhiKt"), o.dphi, o.pairPhi, o.kt);
908898

909899
// Delta Eta Dleta Phi Stuff
910-
900+
911901
fRegistryPairQA.fill(HIST(base) + HIST("hDeltaPhiEtaKt"), o.dphi, o.pairEta, o.kt);
912902
fRegistryPairQA.fill(HIST(base) + HIST("hPhiVsEtaKt"), o.pairPhi, o.pairEta, o.kt);
913903

0 commit comments

Comments
 (0)