Skip to content

Commit

Permalink
Merge pull request #99 from alibuild/alibot-cleanup-8910
Browse files Browse the repository at this point in the history
[PWGLF] Please consider the following formatting changes to #8910
  • Loading branch information
RD0407 authored Dec 10, 2024
2 parents eabeeda + 60c4059 commit 6f33467
Showing 1 changed file with 55 additions and 55 deletions.
110 changes: 55 additions & 55 deletions PWGLF/Tasks/Nuspex/spectraTOF.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1345,77 +1345,77 @@ struct tofSpectra {
continue;
}
const auto& nsigmaTPCPi = o2::aod::pidutils::tpcNSigma<2>(track);
const auto& nsigmaTPCKa = track.tpcNSigmaKa();//o2::aod::pidutils::tpcNSigma<3>(track);
const auto& nsigmaTPCKa = track.tpcNSigmaKa(); // o2::aod::pidutils::tpcNSigma<3>(track);
const auto& nsigmaTPCPr = o2::aod::pidutils::tpcNSigma<4>(track);
const auto& nsigmaTOFPi = o2::aod::pidutils::tofNSigma<2>(track);
const auto& nsigmaTOFKa = o2::aod::pidutils::tofNSigma<3>(track);
const auto& nsigmaTOFPr = o2::aod::pidutils::tofNSigma<4>(track);
// Apply PID cuts
bool isTPCPion = fabs(nsigmaTPCPi) < 10;
bool isTPCKaon = fabs(nsigmaTPCKa) < 10;
bool isTPCProton = fabs(nsigmaTPCPr) < 10;
bool isTOFPion = fabs(nsigmaTOFPi) < 10;
bool isTOFKaon = fabs(nsigmaTOFKa) < 10;
bool isTOFProton = fabs(nsigmaTOFPr) < 10;
if (isTPCPion) {
bool isTPCPion = fabs(nsigmaTPCPi) < 10;

Check warning on line 1354 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 isTPCKaon = fabs(nsigmaTPCKa) < 10;

Check warning on line 1355 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 isTPCProton = fabs(nsigmaTPCPr) < 10;

Check warning on line 1356 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 isTOFPion = fabs(nsigmaTOFPi) < 10;

Check warning on line 1357 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 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;
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 (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;
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 (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);
}
if (track.sign() > 0) {
histos.fill(HIST("nsigmatpc/test_occupancy/pos/pr"), track.pt(), nsigmaTPCPr, multiplicity, occupancy);
} else {
histos.fill(HIST("nsigmatpc/test_occupancy/neg/pr"), track.pt(), nsigmaTPCPr, multiplicity, occupancy);
}
}
} else if (isTPCProton) {
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 {
histos.fill(HIST("nsigmatpc/test_occupancy/neg/pr"), track.pt(), nsigmaTPCPr, multiplicity, occupancy);
}
}
if (track.hasTOF()) {
if (isTOFPion) {
if (std::abs(track.rapidity(PID::getMass(2)) >= trkselOptions.cfgCutY)) {
if (isTOFPion) {
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);
}
}
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)) {
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)) {
}
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 (track.sign() > 0) {
histos.fill(HIST("nsigmatof/test_occupancy/pos/pr"), track.pt(), nsigmaTOFPr, multiplicity, occupancy);
} else {
histos.fill(HIST("nsigmatof/test_occupancy/neg/pr"), track.pt(), nsigmaTOFPr, multiplicity, occupancy);
}
}
}//TOF
} // track
if (track.sign() > 0) {
histos.fill(HIST("nsigmatof/test_occupancy/pos/pr"), track.pt(), nsigmaTOFPr, multiplicity, occupancy);
} else {
histos.fill(HIST("nsigmatof/test_occupancy/neg/pr"), track.pt(), nsigmaTOFPr, multiplicity, occupancy);
}
}
} // TOF
} // track
} // process function
PROCESS_SWITCH(tofSpectra, processOccupancy, "check for occupancy plots", false);

Expand Down

0 comments on commit 6f33467

Please sign in to comment.