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
2 changes: 1 addition & 1 deletion PWGLF/TableProducer/Resonances/HeptaQuarktable.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 PWGLF/TableProducer/Resonances/HeptaQuarktable.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 @@ -38,13 +38,13 @@
#include <Framework/Configurable.h>

#include <Math/GenVector/Boost.h>
#include <Math/Vector4D.h>
#include <Math/Vector3D.h>
#include <Math/Vector4D.h>
#include <TMath.h>

#include <fairlogger/Logger.h>

#include <iostream>

Check failure on line 47 in PWGLF/TableProducer/Resonances/HeptaQuarktable.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[include-iostream]

Do not include iostream. Use O2 logging instead.
#include <iterator>
#include <string>
#include <vector>
Expand Down Expand Up @@ -152,7 +152,7 @@
if (std::abs(candidate.tpcNSigmaKa()) > cfgNsigmaTPCKa) {
return false;
}
} else if (pid == 2) {

Check failure on line 155 in PWGLF/TableProducer/Resonances/HeptaQuarktable.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(candidate.tpcNSigmaPr()) > cfgDaughPIDCutsTPCPr) {
return false;
}
Expand Down Expand Up @@ -263,14 +263,14 @@

auto posThisColl = posTracks->sliceByCached(aod::track::collisionId, collision.globalIndex(), cache);
auto negThisColl = negTracks->sliceByCached(aod::track::collisionId, collision.globalIndex(), cache);
for (auto track1 : posThisColl) {

Check failure on line 266 in PWGLF/TableProducer/Resonances/HeptaQuarktable.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.
if (!selectionTrack(track1))
continue;

if (!selectionPID(track1, 1))
continue;

if (!(itsResponse.nSigmaITS<o2::track::PID::Kaon>(track1) > -3.0 && itsResponse.nSigmaITS<o2::track::PID::Kaon>(track1) < 3.0))

Check failure on line 273 in PWGLF/TableProducer/Resonances/HeptaQuarktable.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.
continue;

/*
Expand All @@ -280,14 +280,14 @@
}
*/
auto track1ID = track1.globalIndex();
for (auto track2 : negThisColl) {

Check failure on line 283 in PWGLF/TableProducer/Resonances/HeptaQuarktable.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.
if (!selectionTrack(track2))
continue;

if (!selectionPID(track2, 1))
continue;

if (!(itsResponse.nSigmaITS<o2::track::PID::Kaon>(track2) > -3.0 && itsResponse.nSigmaITS<o2::track::PID::Kaon>(track2) < 3.0))

Check failure on line 290 in PWGLF/TableProducer/Resonances/HeptaQuarktable.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.
continue;

auto track2ID = track2.globalIndex();
Expand Down Expand Up @@ -347,7 +347,7 @@
HQd2TOF.push_back(d2TOF);
}
}
for (auto& v0 : V0s) {

Check failure on line 350 in PWGLF/TableProducer/Resonances/HeptaQuarktable.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.
auto postrack_v0 = v0.template posTrack_as<TrackCandidates>();
auto negtrack_v0 = v0.template negTrack_as<TrackCandidates>();

Expand Down Expand Up @@ -430,7 +430,7 @@
HQd1TOF.push_back(d1TOF);
HQd2TOF.push_back(d2TOF);
} // select collision
if (numberPhi < 2 || numberLambda < 1)

Check failure on line 433 in PWGLF/TableProducer/Resonances/HeptaQuarktable.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;

keepEventDoubleHQ = true;
Expand Down
Loading