Skip to content

Commit 2156720

Browse files
committed
Removed unused variable
1 parent a962fc7 commit 2156720

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

PWGLF/Tasks/Nuspex/spectraTOF.cxx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
///
1919

2020
// O2 includes
21-
// o2-linter: disable=all
21+
2222
#include <string>
2323
#include <vector>
2424
#include "ReconstructionDataFormats/Track.h"
@@ -1908,11 +1908,8 @@ struct tofSpectra {
19081908
}
19091909
if (enablePureDCAHistogram) {
19101910
const auto& nsigmaTPCKa = o2::aod::pidutils::tpcNSigma<3>(track);
1911-
const bool isKaonTPC = std::abs(nsigmaTPCKa) < trkselOptions.cfgCutNsigma;
1912-
19131911
const auto& nsigmaTOFKa = o2::aod::pidutils::tofNSigma<3>(track);
1914-
const bool isKaonTOF = std::abs(nsigmaTOFKa) < trkselOptions.cfgCutNsigma;
1915-
1912+
19161913
// Filling DCA info with the TPC+TOF PID
19171914
bool isDCAPureSample = (std::sqrt(nsigmaTOFKa * nsigmaTOFKa + nsigmaTPCKa * nsigmaTPCKa) < 2.f);
19181915
if (track.pt() <= 0.4) {
@@ -2060,17 +2057,22 @@ struct tofSpectra {
20602057
}
20612058
const int pdgCode = mcParticle.pdgCode();
20622059
const auto& nsigmaTPCPi = o2::aod::pidutils::tpcNSigma<2>(track);
2060+
const auto& nsigmaTPCKa = o2::aod::pidutils::tpcNSigma<3>(track);
20632061
const auto& nsigmaTPCPr = o2::aod::pidutils::tpcNSigma<4>(track);
20642062

20652063
const bool isPionTPC = std::abs(nsigmaTPCPi) < trkselOptions.cfgCutNsigma;
2064+
const bool isKaonTPC = std::abs(nsigmaTPCKa) < trkselOptions.cfgCutNsigma;
20662065
const bool isProtonTPC = std::abs(nsigmaTPCPr) < trkselOptions.cfgCutNsigma;
20672066

20682067
const auto& nsigmaTOFPi = o2::aod::pidutils::tofNSigma<2>(track);
2068+
const auto& nsigmaTOFKa = o2::aod::pidutils::tofNSigma<3>(track);
20692069
const auto& nsigmaTOFPr = o2::aod::pidutils::tofNSigma<4>(track);
20702070

20712071
const bool isPionTOF = std::abs(nsigmaTOFPi) < trkselOptions.cfgCutNsigma;
2072+
const bool isKaonTOF = std::abs(nsigmaTOFKa) < trkselOptions.cfgCutNsigma;
20722073
const bool isProtonTOF = std::abs(nsigmaTOFPr) < trkselOptions.cfgCutNsigma;
20732074

2075+
20742076
if (!mcParticle.isPhysicalPrimary()) { // Is not physical primary
20752077
if (mcParticle.getProcess() == 4) { // Is from decay
20762078
if (includeCentralityMC) {

0 commit comments

Comments
 (0)