Skip to content

Commit

Permalink
Update spectraTOF.cxx
Browse files Browse the repository at this point in the history
  • Loading branch information
RD0407 authored Dec 10, 2024
1 parent 660b282 commit 7da1eec
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions PWGLF/Tasks/Nuspex/spectraTOF.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1358,21 +1358,21 @@ struct tofSpectra {
bool isTOFKaon = fabs(nsigmaTOFKa) < 10;

Check warning on line 1358 in PWGLF/Tasks/Nuspex/spectraTOF.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
bool isTOFProton = fabs(nsigmaTOFPr) < 10;

Check warning on line 1359 in PWGLF/Tasks/Nuspex/spectraTOF.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
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 {
Expand All @@ -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 {
Expand Down

0 comments on commit 7da1eec

Please sign in to comment.