From 7da1eece3e8d93e15f1a8f9092c6375e9085084b Mon Sep 17 00:00:00 2001 From: Rohaan Deb <67634136+RD0407@users.noreply.github.com> Date: Tue, 10 Dec 2024 19:35:49 +0100 Subject: [PATCH] Update spectraTOF.cxx --- PWGLF/Tasks/Nuspex/spectraTOF.cxx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/PWGLF/Tasks/Nuspex/spectraTOF.cxx b/PWGLF/Tasks/Nuspex/spectraTOF.cxx index ab692de914c..667171be33b 100644 --- a/PWGLF/Tasks/Nuspex/spectraTOF.cxx +++ b/PWGLF/Tasks/Nuspex/spectraTOF.cxx @@ -1358,21 +1358,21 @@ struct tofSpectra { bool isTOFKaon = fabs(nsigmaTOFKa) < 10; bool isTOFProton = fabs(nsigmaTOFPr) < 10; if (isTPCPion) { - if (std::abs(track.rapidity(PID::getMass(2)) >= trkselOptions.cfgCutY)) continue; + if (std::abs(track.rapidity(PID::getMass(2)) >= trkselOptions.cfgCutY)) {continue;} if (track.sign() > 0) { histos.fill(HIST("nsigmatpc/test_occupancy/pos/pi"), track.pt(), nsigmaTPCPi, multiplicity, occupancy); } else { histos.fill(HIST("nsigmatpc/test_occupancy/neg/pi"), track.pt(), nsigmaTPCPi, multiplicity, occupancy); } - } else if ( isTPCKaon) { - if (std::abs(track.rapidity(PID::getMass(3)) >= trkselOptions.cfgCutY)) continue; + } else if (isTPCKaon) { + if (std::abs(track.rapidity(PID::getMass(3)) >= trkselOptions.cfgCutY)) {continue;} if (track.sign() > 0) { histos.fill(HIST("nsigmatpc/test_occupancy/pos/ka"), track.pt(), nsigmaTPCKa, multiplicity, occupancy); } else { histos.fill(HIST("nsigmatpc/test_occupancy/neg/ka"), track.pt(), nsigmaTPCKa, multiplicity, occupancy); } } else if (isTPCProton) { - if (std::abs(track.rapidity(PID::getMass(4)) >=trkselOptions.cfgCutY)) continue; + if (std::abs(track.rapidity(PID::getMass(4)) >=trkselOptions.cfgCutY)) {continue;} if (track.sign() > 0) { histos.fill(HIST("nsigmatpc/test_occupancy/pos/pr"), track.pt(), nsigmaTPCPr, multiplicity, occupancy); } else { @@ -1381,21 +1381,21 @@ struct tofSpectra { } if (track.hasTOF()) { if (isTOFPion) { - if (std::abs(track.rapidity(PID::getMass(2)) >= trkselOptions.cfgCutY)) continue; + if (std::abs(track.rapidity(PID::getMass(2)) >= trkselOptions.cfgCutY)) {continue;} if (track.sign() > 0) { histos.fill(HIST("nsigmatof/test_occupancy/pos/pi"), track.pt(), nsigmaTOFPi, multiplicity, occupancy); } else { histos.fill(HIST("nsigmatof/test_occupancy/neg/pi"), track.pt(), nsigmaTOFPi, multiplicity, occupancy); } } else if (isTOFKaon) { - if (std::abs(track.rapidity(PID::getMass(3)) >= trkselOptions.cfgCutY)) continue; + if (std::abs(track.rapidity(PID::getMass(3)) >= trkselOptions.cfgCutY)) {continue;} if (track.sign() > 0) { histos.fill(HIST("nsigmatof/test_occupancy/pos/ka"), track.pt(), nsigmaTOFKa, multiplicity, occupancy); } else { histos.fill(HIST("nsigmatof/test_occupancy/neg/ka"), track.pt(), nsigmaTOFKa, multiplicity, occupancy); } } else if (isTOFProton) { - if (std::abs(track.rapidity(PID::getMass(4)) >= trkselOptions.cfgCutY)) continue; + if (std::abs(track.rapidity(PID::getMass(4)) >= trkselOptions.cfgCutY)) {continue;} if (track.sign() > 0) { histos.fill(HIST("nsigmatof/test_occupancy/pos/pr"), track.pt(), nsigmaTOFPr, multiplicity, occupancy); } else {