Skip to content
Closed
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
4 changes: 2 additions & 2 deletions PWGMM/Lumi/Tasks/lumiStability.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@
std::vector<int> channelA;
std::vector<int> channelC;
int minLimit = 0;
for (auto i = 0; i < 8; i++) {

Check failure on line 437 in PWGMM/Lumi/Tasks/lumiStability.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 (sideA[i] > minLimit) {
channelA.push_back(i);
}
Expand Down Expand Up @@ -635,8 +635,8 @@
auto sideCPast = fddPast.chargeC();
std::vector<int> channelAPast;
std::vector<int> channelCPast;
int maxNChanels = 8
for (auto i = 0; i < maxNChanels; i++) {
int maxNChanels = 8 for (auto i = 0; i < maxNChanels; i++)
{
if (sideAPast[i] > 0) {
channelAPast.push_back(i);
}
Expand Down
Loading