Skip to content
Closed
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
2 changes: 1 addition & 1 deletion ALICE3/Tasks/alice3TrackingPerformance.cxx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.

Check failure on line 1 in ALICE3/Tasks/alice3TrackingPerformance.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/workflow-file]

Name of a workflow file must match the name of the main struct in it (without the PWG prefix). (Class implementation files should be in "Core" directories.)
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
// All rights not expressly granted are reserved.
//
Expand Down Expand Up @@ -54,7 +54,7 @@
const AxisSpec axisDcaXy{100, -1, 1, "DCA_{xy} (cm)"};
const AxisSpec axisDcaZ{100, -1, 1, "DCA_{z} (cm)"};
particlePdgCodes = histos.add<TH1>("particlePdgCodes", "", kTH1D, {AxisSpec{100, -0.5, 99.5, "PDG Code"}});
for (int pdg : pdgCodes.value) {

Check failure on line 57 in ALICE3/Tasks/alice3TrackingPerformance.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[const-ref-in-for-loop]

Use constant references for non-modified iterators in range-based for loops.
std::string tag = Form("_%d", pdg);
if (pdg < 0) {
tag = Form("_m%d", -pdg);
Expand Down Expand Up @@ -88,7 +88,7 @@

for (const auto& mcParticle : mcParticles) {
if (!isParticleSelected(mcParticle)) {
continue;
continue;
}
particlePdgCodes->Fill(Form("%d", mcParticle.pdgCode()), 1);
particlePtDistribution[0]->Fill(mcParticle.pt());
Expand Down
Loading