Skip to content

Commit cd7d8a2

Browse files
committed
fixing O2 linter issues
1 parent d141b09 commit cd7d8a2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

PWGMM/Lumi/Tasks/lumiStability.cxx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ struct LumiStabilityTask {
9393
const AxisSpec axisTimeFDD{1000, -20, 100};
9494
const AxisSpec axisCountsTime{2, -0.5, 1.5};
9595
const AxisSpec axisOrbits{static_cast<int>(nOrbits / nOrbitsPerTF), 0., static_cast<double>(nOrbits), ""};
96-
const AxisSpec axisTimeRate{int(double(43200) / (nOrbitsPerTF * 89e-6)), 0., 43200, ""}; // t in seconds. Histo for 12 hrs. Each bin contain one time frame (128/32 orbits for Run2/3).
96+
const AxisSpec axisTimeRate{static_cast<int>(static_cast<double>(43200) / (nOrbitsPerTF * 89e-6)), 0., 43200, ""}; // t in seconds. Histo for 12 hrs. Each bin contain one time frame (128/32 orbits for 2022/2023).
9797
const AxisSpec timeAxis{1200, 0., 1200., "#bf{t-t_{SOF} (min)}"};
9898

9999
histos.add("hBcA", "BC pattern A; BC ; It is present", kTH1F, {axisTrigger});
@@ -434,7 +434,8 @@ struct LumiStabilityTask {
434434
std::vector<int> channelA;
435435
std::vector<int> channelC;
436436
int minLimit = 0;
437-
for (auto i = 0; i < 8; i++) {
437+
int maxNChanels = 8;
438+
for (auto i = 0; i < maxNChanels; i++) {
438439
if (sideA[i] > minLimit) {
439440
channelA.push_back(i);
440441
}
@@ -635,7 +636,7 @@ struct LumiStabilityTask {
635636
auto sideCPast = fddPast.chargeC();
636637
std::vector<int> channelAPast;
637638
std::vector<int> channelCPast;
638-
int maxNChanels = 8
639+
int maxNChanels = 8;
639640
for (auto i = 0; i < maxNChanels; i++) {
640641
if (sideAPast[i] > 0) {
641642
channelAPast.push_back(i);

0 commit comments

Comments
 (0)