Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions PWGCF/TwoParticleCorrelations/Tasks/particleOriginAnalysis.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
#include "Framework/RunningWorkflowInfo.h"
#include "Framework/runDataProcessing.h"

#include <TH2F.h>
#include <TH3F.h>
#include <TH2D.h>
#include <TH3D.h>
#include <TPDGCode.h>

#include <cmath>
Expand Down Expand Up @@ -89,17 +89,17 @@
// o2::constants::physics::Pdg::kEta (221), kOmega (223), kEtaPrime (331),
// kK0Star892 (313), kKPlusStar892 (323), kPhi (333)
// PDG codes NOT in either header - defined here:
static constexpr int KPdgDeltaMinusMinus = 1114; // o2-linter: disable=pdg/explicit-code(not existing)

Check failure on line 92 in PWGCF/TwoParticleCorrelations/Tasks/particleOriginAnalysis.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[pdg/explicit-code]

Avoid hard-coded PDG codes. Use named values from PDG_t or o2::constants::physics::Pdg instead.
static constexpr int KPdgDelta0 = 2114; // o2-linter: disable=pdg/explicit-code(not existing)

Check failure on line 93 in PWGCF/TwoParticleCorrelations/Tasks/particleOriginAnalysis.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[pdg/explicit-code]

Avoid hard-coded PDG codes. Use named values from PDG_t or o2::constants::physics::Pdg instead.
static constexpr int KPdgDeltaPlus = 2214; // o2-linter: disable=pdg/explicit-code(not existing)

Check failure on line 94 in PWGCF/TwoParticleCorrelations/Tasks/particleOriginAnalysis.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[pdg/explicit-code]

Avoid hard-coded PDG codes. Use named values from PDG_t or o2::constants::physics::Pdg instead.
static constexpr int KPdgDeltaPlusPlus = 2224; // o2-linter: disable=pdg/explicit-code(not existing)

Check failure on line 95 in PWGCF/TwoParticleCorrelations/Tasks/particleOriginAnalysis.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[pdg/explicit-code]

Avoid hard-coded PDG codes. Use named values from PDG_t or o2::constants::physics::Pdg instead.
static constexpr int KPdgSigmaStarMinus = 3114; // o2-linter: disable=pdg/explicit-code(not existing)

Check failure on line 96 in PWGCF/TwoParticleCorrelations/Tasks/particleOriginAnalysis.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[pdg/explicit-code]

Avoid hard-coded PDG codes. Use named values from PDG_t or o2::constants::physics::Pdg instead.
static constexpr int KPdgSigmaStar0 = 3214; // o2-linter: disable=pdg/explicit-code(not existing)

Check failure on line 97 in PWGCF/TwoParticleCorrelations/Tasks/particleOriginAnalysis.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[pdg/explicit-code]

Avoid hard-coded PDG codes. Use named values from PDG_t or o2::constants::physics::Pdg instead.
static constexpr int KPdgSigmaStarPlus = 3224; // o2-linter: disable=pdg/explicit-code(not existing)

Check failure on line 98 in PWGCF/TwoParticleCorrelations/Tasks/particleOriginAnalysis.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[pdg/explicit-code]

Avoid hard-coded PDG codes. Use named values from PDG_t or o2::constants::physics::Pdg instead.
static constexpr int KPdgF0_980 = 9010221; // o2-linter: disable=pdg/explicit-code(not existing),name/function-variable(clashes with f0),name/constexpr-constant(clashes with f0)

Check failure on line 99 in PWGCF/TwoParticleCorrelations/Tasks/particleOriginAnalysis.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[pdg/explicit-code]

Avoid hard-coded PDG codes. Use named values from PDG_t or o2::constants::physics::Pdg instead.

/// PDG codes below this threshold are mesons; at or above are baryons
static constexpr int KPdgBaryonThreshold = 1000; // o2-linter: disable=pdg/explicit-code(not a PDG code)

Check failure on line 102 in PWGCF/TwoParticleCorrelations/Tasks/particleOriginAnalysis.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[pdg/explicit-code]

Avoid hard-coded PDG codes. Use named values from PDG_t or o2::constants::physics::Pdg instead.

/// \brief Encode absolute PDG code of a mother into compact bin index
inline int encodeMotherPDG(int absPdg)
Expand Down Expand Up @@ -143,7 +143,7 @@
/// PDG codes above this threshold correspond to hadrons (mesons and baryons).
/// Below are quarks (1-6), leptons (11-16), gauge bosons (21-25), and
/// special/internal generator codes.
static constexpr int KPdgHadronThreshold = 100; // o2-linter: disable=pdg/explicit-code(not a PDG code)

Check failure on line 146 in PWGCF/TwoParticleCorrelations/Tasks/particleOriginAnalysis.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[pdg/explicit-code]

Avoid hard-coded PDG codes. Use named values from PDG_t or o2::constants::physics::Pdg instead.

// ============================================================================
// Classification utilities
Expand Down Expand Up @@ -337,32 +337,32 @@
fhPromptVsPt[i] = registry.add<TH1>(
FORMATSTRING("PromptVsPt_%s", tname),
FORMATSTRING("Prompt %s;#it{p}_{T} (GeV/#it{c});counts", tname),
kTH1F, {ptAxis});
kTH1D, {ptAxis});

fhDecayVsPt[i] = registry.add<TH1>(
FORMATSTRING("DecayVsPt_%s", tname),
FORMATSTRING("From decay %s;#it{p}_{T} (GeV/#it{c});counts", tname),
kTH1F, {ptAxis});
kTH1D, {ptAxis});

fhPromptVsCentVsPt[i] = registry.add<TH2>(
FORMATSTRING("PromptVsCentVsPt_%s", tname),
FORMATSTRING("Prompt %s;centrality (%%);#it{p}_{T} (GeV/#it{c})", tname),
kTH2F, {centAxis, ptAxis});
kTH2D, {centAxis, ptAxis});

fhDecayVsCentVsPt[i] = registry.add<TH2>(
FORMATSTRING("DecayVsCentVsPt_%s", tname),
FORMATSTRING("From decay %s;centrality (%%);#it{p}_{T} (GeV/#it{c})", tname),
kTH2F, {centAxis, ptAxis});
kTH2D, {centAxis, ptAxis});

fhMotherVsPtVsCent[i] = registry.add<TH3>(
FORMATSTRING("MotherVsPtVsCent_%s", tname),
FORMATSTRING("Immediate mother of %s;mother;#it{p}_{T} (GeV/#it{c});centrality (%%)", tname),
kTH3F, {motherAxis, ptAxis, centAxis});
kTH3D, {motherAxis, ptAxis, centAxis});

fhAncestorVsPtVsCent[i] = registry.add<TH3>(
FORMATSTRING("AncestorVsPtVsCent_%s", tname),
FORMATSTRING("Earliest ancestor of %s;ancestor;#it{p}_{T} (GeV/#it{c});centrality (%%)", tname),
kTH3F, {motherAxis, ptAxis, centAxis});
kTH3D, {motherAxis, ptAxis, centAxis});

/* label the encoded mother/ancestor axis */
for (int im = 0; im < KNMo; ++im) {
Expand All @@ -373,12 +373,12 @@
fhMotherPDG[i] = registry.add<TH1>(
FORMATSTRING("MotherPDG_%s", tname),
FORMATSTRING("Immediate mother PDG of %s from decay;PDG code;counts", tname),
kTH1F, {pdgAxis});
kTH1D, {pdgAxis});

fhAncestorPDG[i] = registry.add<TH1>(
FORMATSTRING("AncestorPDG_%s", tname),
FORMATSTRING("Earliest ancestor PDG of %s from decay;PDG code;counts", tname),
kTH1F, {pdgAxis});
kTH1D, {pdgAxis});
}
}

Expand Down
Loading