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
6 changes: 3 additions & 3 deletions DPG/Tasks/AOTTrack/V0Cascades/perfK0sResolution.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 DPG/Tasks/AOTTrack/V0Cascades/perfK0sResolution.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 @@ -74,7 +74,7 @@
kCentNGlobal
};

struct perfK0sResolution {

Check failure on line 77 in DPG/Tasks/AOTTrack/V0Cascades/perfK0sResolution.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/struct]

Use UpperCamelCase for names of structs.
// Configurable bins
ConfigurableAxis mBins{"mBins", {200, 0.4f, 0.6f}, "Mass binning"};
ConfigurableAxis pTBins{"pTBins", {240, 0.f, 12.f}, "pT binning"};
Expand Down Expand Up @@ -230,7 +230,7 @@
rK0sResolution.get<TH1>(HIST("hEventSelection"))->GetXaxis()->SetBinLabel(18, "INEL>1");
rK0sResolution.get<TH1>(HIST("hEventSelection"))->GetXaxis()->SetBinLabel(19, "Below min occup.");
rK0sResolution.get<TH1>(HIST("hEventSelection"))->GetXaxis()->SetBinLabel(20, "Above max occup.");

rK0sResolution.add("hEventCentrality", "hEventCentrality", kTH1D, {{101, 0.0f, 101.0f}});
rK0sResolution.add("hEventOccupancy", "hEventOccupancy", kTH1D, {occupancyAxis});

Expand Down Expand Up @@ -446,7 +446,7 @@
if (fillHists)
rK0sResolution.fill(HIST("hEventSelection"), 16 /* INEL > 0 */);

if (eventSelections.requireINEL1 && collision.multNTracksPVeta1() < 2) {

Check failure on line 449 in DPG/Tasks/AOTTrack/V0Cascades/perfK0sResolution.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 false;
}
if (fillHists)
Expand Down Expand Up @@ -495,12 +495,12 @@
return false;
if (v0.dcaV0daughters() > v0Selections.dcav0dau)
return false;

if (v0.distovertotmom(collision.posX(), collision.posY(), collision.posZ()) * o2::constants::physics::MassK0Short > v0Selections.lifetimecut->get("lifetimecutK0S")) {
return false;
}

if (v0Selections.armPodCut > 1e-4 && v0.qtarm() * v0Selections.armPodCut < std::abs(v0.alpha())) {

Check failure on line 503 in DPG/Tasks/AOTTrack/V0Cascades/perfK0sResolution.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 false;
}

Expand All @@ -512,7 +512,7 @@
return false;
if (ntrack.itsNCls() < v0Selections.minITSclusters)
return false;
// check maximum ITS chi2 per clusters
// check maximum ITS chi2 per clusters
if (ptrack.itsChi2NCl() > v0Selections.maxITSchi2PerNcls)
return false;
if (ntrack.itsChi2NCl() > v0Selections.maxITSchi2PerNcls)
Expand Down
Loading