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
4 changes: 2 additions & 2 deletions PWGLF/Tasks/QC/findableStudy.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@
#include "ReconstructionDataFormats/Track.h"

#include <Math/Vector4D.h>
#include <TDatabasePDG.h>

Check failure on line 49 in PWGLF/Tasks/QC/findableStudy.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[pdg/database]

Do not use TDatabasePDG directly. Use o2::constants::physics::Mass... or Service<o2::framework::O2DatabasePDG> instead.
#include <TFile.h>
#include <TH2F.h>
#include <TLorentzVector.h>

Check failure on line 52 in PWGLF/Tasks/QC/findableStudy.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root/lorentz-vector]

Do not use the TLorentzVector legacy class. Use std::array with RecoDecay methods or the ROOT::Math::LorentzVector template instead.
#include <TPDGCode.h>
#include <TProfile.h>

Expand All @@ -62,7 +62,7 @@
using namespace o2::framework::expressions;
using std::array;

using recoStraCollisions = soa::Join<aod::StraCollisions, aod::StraEvSels, aod::StraCents, aod::StraRawCents, aod::StraCollLabels>;
using recoStraCollisions = soa::Join<aod::StraCollisions, aod::StraEvSels, aod::StraCents, aod::StraCollLabels>;
using reconstructedV0s = soa::Join<aod::V0CoreMCLabels, aod::V0Cores, aod::V0FoundTags, aod::V0MCCollRefs, aod::V0CollRefs, aod::V0Extras, aod::V0TOFPIDs, aod::V0TOFNSigmas>;
using reconstructedV0sNoMC = soa::Join<aod::V0Cores, aod::V0Extras>;

Expand Down Expand Up @@ -223,14 +223,14 @@
dauTracks const& // daughter track extras
)
{
int pdgCodePositive = 211;

Check failure on line 226 in PWGLF/Tasks/QC/findableStudy.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.
int pdgCodeNegative = -211;

Check failure on line 227 in PWGLF/Tasks/QC/findableStudy.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.
if (pdgCode == 3122)

Check failure on line 228 in PWGLF/Tasks/QC/findableStudy.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.
pdgCodePositive = 2212;

Check failure on line 229 in PWGLF/Tasks/QC/findableStudy.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.
if (pdgCode == -3122)

Check failure on line 230 in PWGLF/Tasks/QC/findableStudy.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.
pdgCodePositive = -2212;

Check failure on line 231 in PWGLF/Tasks/QC/findableStudy.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.
if (pdgCode == 22) {

Check failure on line 232 in PWGLF/Tasks/QC/findableStudy.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.
pdgCodePositive = -11;

Check failure on line 233 in PWGLF/Tasks/QC/findableStudy.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.
pdgCodeNegative = +11;
}

Expand Down Expand Up @@ -261,7 +261,7 @@
bool hasBeenFound = false;
int nCandidatesWithTPC = 0;

for (auto& recv0 : recv0s) {
for (const auto& recv0 : recv0s) {
if (recv0.v0Type() != 1)
continue; // skip anything other than a standard V0

Expand Down
Loading