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
3 changes: 3 additions & 0 deletions PWGCF/FemtoUniverse/Tasks/femtoUniversePairTaskTrackD0.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

#include <vector>
#include <string>

#include "Framework/AnalysisTask.h"
#include "Framework/runDataProcessing.h"
#include "Framework/HistogramRegistry.h"
Expand All @@ -27,6 +28,7 @@
#include "Framework/StepTHn.h"
#include "Framework/O2DatabasePDGPlugin.h"
#include "ReconstructionDataFormats/PID.h"

#include "Common/DataModel/PIDResponse.h"
#include "Common/Core/RecoDecay.h"

Expand All @@ -43,6 +45,7 @@
#include "PWGCF/FemtoUniverse/Core/FemtoUniverseEfficiencyCalculator.h"

#include "PWGHF/Core/HfHelper.h"
#include "PWGHF/Core/SelectorCuts.h"
#include "PWGHF/DataModel/CandidateReconstructionTables.h"
#include "PWGHF/DataModel/CandidateSelectionTables.h"

Expand Down Expand Up @@ -283,8 +286,8 @@

bool isKaonNSigma(float mom, float nsigmaTPCK, float nsigmaTOFK)
{
if (mom < 0.3) { // 0.0-0.3

Check failure on line 289 in PWGCF/FemtoUniverse/Tasks/femtoUniversePairTaskTrackD0.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
if (std::abs(nsigmaTPCK) < 3.0) {

Check failure on line 290 in PWGCF/FemtoUniverse/Tasks/femtoUniversePairTaskTrackD0.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
return true;
} else {
return false;
Expand Down Expand Up @@ -1139,18 +1142,18 @@
if (pdgParticle->Charge() > 0.0) {
mcTruthRegistry.fill(HIST("MCTruthAllPositivePt"), part.pt());
}
if (pdgCode == 211) {

Check failure on line 1145 in PWGCF/FemtoUniverse/Tasks/femtoUniversePairTaskTrackD0.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.
mcTruthRegistry.fill(HIST("MCTruthPipPtVsEta"), part.pt(), part.eta());
mcTruthRegistry.fill(HIST("MCTruthPipPt"), part.pt());
}
if (pdgCode == 321) {

Check failure on line 1149 in PWGCF/FemtoUniverse/Tasks/femtoUniversePairTaskTrackD0.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.
mcTruthRegistry.fill(HIST("MCTruthKpPtVsEta"), part.pt(), part.eta());
mcTruthRegistry.fill(HIST("MCTruthKpPt"), part.pt());
}
if (pdgCode == 421) {

Check failure on line 1153 in PWGCF/FemtoUniverse/Tasks/femtoUniversePairTaskTrackD0.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.
mcTruthRegistry.fill(HIST("MCTruthD0D0bar"), part.pt(), part.eta());
}
if (pdgCode == 2212) {

Check failure on line 1156 in PWGCF/FemtoUniverse/Tasks/femtoUniversePairTaskTrackD0.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.
mcTruthRegistry.fill(HIST("MCTruthProtonPtVsEta"), part.pt(), part.eta());
mcTruthRegistry.fill(HIST("MCTruthProtonPt"), part.pt());
}
Expand All @@ -1158,18 +1161,18 @@
if (pdgParticle->Charge() < 0.0) {
mcTruthRegistry.fill(HIST("MCTruthAllNegativePt"), part.pt());
}
if (pdgCode == -211) {

Check failure on line 1164 in PWGCF/FemtoUniverse/Tasks/femtoUniversePairTaskTrackD0.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.
mcTruthRegistry.fill(HIST("MCTruthPimPtVsEta"), part.pt(), part.eta());
mcTruthRegistry.fill(HIST("MCTruthPimPt"), part.pt());
}
if (pdgCode == -321) {

Check failure on line 1168 in PWGCF/FemtoUniverse/Tasks/femtoUniversePairTaskTrackD0.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.
mcTruthRegistry.fill(HIST("MCTruthKmPtVsEta"), part.pt(), part.eta());
mcTruthRegistry.fill(HIST("MCTruthKmPt"), part.pt());
}
if (pdgCode == -421) {

Check failure on line 1172 in PWGCF/FemtoUniverse/Tasks/femtoUniversePairTaskTrackD0.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.
mcTruthRegistry.fill(HIST("MCTruthD0D0bar"), part.pt(), part.eta());
}
if (pdgCode == -2212) {

Check failure on line 1175 in PWGCF/FemtoUniverse/Tasks/femtoUniversePairTaskTrackD0.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.
mcTruthRegistry.fill(HIST("MCTruthAntiProtonPtVsEta"), part.pt(), part.eta());
mcTruthRegistry.fill(HIST("MCTruthAntiProtonPt"), part.pt());
}
Expand Down
Loading