Skip to content

Commit 02188cc

Browse files
committed
fixing Megalinter issues
1 parent cd7d8a2 commit 02188cc

File tree

1 file changed

+38
-33
lines changed

1 file changed

+38
-33
lines changed

PWGMM/Lumi/Tasks/lumiStability.cxx

Lines changed: 38 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ struct LumiStabilityTask {
119119
// histo about triggers
120120
histos.add("FDD/hCounts", "0 FDDCount - 1 FDDVertexCount - 2 FDDPPVertexCount - 3 FDDCoincidencesVertexCount - 4 FDDPPCoincidencesVertexCount - 5 FDDPPBotSidesCount; Number; counts", kTH1F, {axisCounts});
121121
histos.add("FDD/nBCsVsTime", "Time of TVX triggered BCs since the start of fill. FDD;;#bf{#it{N}_{BC}}", kTH1F, {timeAxis});
122+
histos.add("FDD/nBCsVsTimeLeadingBC", "Time of TVX triggered BCs since the start of fill. FDD;;#bf{#it{N}_{BC}}", kTH1F, {timeAxis});
122123
histos.add("FDD/bcVertexTriggerCTP", "vertex trigger per BC (FDD);BC in FDD; counts", kTH1F, {axisTrigger});
123124
histos.add("FDD/bcVertexTrigger", "vertex trigger per BC (FDD);BC in FDD; counts", kTH1F, {axisTrigger});
124125
histos.add("FDD/bcVertexTriggerPP", "vertex trigger per BC (FDD);BC in FDD; counts", kTH1F, {axisTrigger});
@@ -180,6 +181,7 @@ struct LumiStabilityTask {
180181

181182
histos.add("FT0/hCounts", "0 FT0Count - 1 FT0VertexCount - 2 FT0PPVertexCount - 3 FT0PPBothSidesCount; Number; counts", kTH1F, {axisCounts});
182183
histos.add("FT0/nBCsVsTime", "Time of TVX triggered BCs since the start of fill. FT0;;#bf{#it{N}_{BC}}", kTH1F, {timeAxis});
184+
histos.add("FT0/nBCsVsTimeLeadingBC", "Time of TVX triggered BCs since the start of fill. FT0;;#bf{#it{N}_{BC}}", kTH1F, {timeAxis});
183185
histos.add("FT0/bcVertexTriggerCTP", "vertex trigger per BC (FT0);BC in FT0; counts", kTH1F, {axisTrigger});
184186
histos.add("FT0/bcVertexTrigger", "vertex trigger per BC (FT0);BC in FT0; counts", kTH1F, {axisTrigger});
185187
histos.add("FT0/bcVertexTriggerPP", "vertex trigger per BC (FT0) with Past Protection;BC in FT0; counts", kTH1F, {axisTrigger});
@@ -376,42 +378,45 @@ struct LumiStabilityTask {
376378
histos.fill(HIST("TFsPerMinute"), timeSinceSOF);
377379
}
378380

379-
// if (bcPatternB[localBC]) {
380-
if (trgFDD) {
381-
histos.fill(HIST("FDD/nBCsVsTime"), timeSinceSOF);
382-
histos.fill(HIST("FDD/bcVertexTriggerCTP"), localBC + 7);
383-
histos.fill(HIST("FDD/hTimeForRateCTP"), (bc.timestamp() - tsSOR) * 1.e-3); // Converting ms into seconds
384-
}
385-
if (trgFT0) {
386-
histos.fill(HIST("FT0/nBCsVsTime"), timeSinceSOF);
387-
histos.fill(HIST("FT0/bcVertexTriggerCTP"), localBC);
388-
histos.fill(HIST("FT0/hTimeForRateCTP"), (bc.timestamp() - tsSOR) * 1.e-3); // Converting ms into seconds
389-
}
390-
if (trgFV0) {
391-
histos.fill(HIST("FV0/bcChargeTriggerCTP"), localBC);
392-
histos.fill(HIST("FV0/hTimeForRateCTP"), (bc.timestamp() - tsSOR) * 1.e-3); // Converting ms into seconds
393-
}
394-
bool isLeadBC = true;
395-
for (int jbit = localBC - minEmpty; jbit < localBC; jbit++) {
396-
int kbit = jbit;
397-
if (kbit < 0)
398-
kbit += nbin;
399-
if (bcPatternB[kbit]) {
400-
isLeadBC = false;
401-
break;
402-
}
403-
}
404-
if (isLeadBC)
381+
if (bcPatternB[localBC]) {
405382
if (trgFDD) {
406-
histos.fill(HIST("FDD/hTimeForRateLeadingBCCTP"), (bc.timestamp() - tsSOR) * 1.e-3);
383+
histos.fill(HIST("FDD/nBCsVsTime"), timeSinceSOF);
384+
histos.fill(HIST("FDD/bcVertexTriggerCTP"), localBC + 7);
385+
histos.fill(HIST("FDD/hTimeForRateCTP"), (bc.timestamp() - tsSOR) * 1.e-3); // Converting ms into seconds
386+
}
387+
if (trgFT0) {
388+
histos.fill(HIST("FT0/nBCsVsTime"), timeSinceSOF);
389+
histos.fill(HIST("FT0/bcVertexTriggerCTP"), localBC);
390+
histos.fill(HIST("FT0/hTimeForRateCTP"), (bc.timestamp() - tsSOR) * 1.e-3); // Converting ms into seconds
391+
}
392+
if (trgFV0) {
393+
histos.fill(HIST("FV0/bcChargeTriggerCTP"), localBC);
394+
histos.fill(HIST("FV0/hTimeForRateCTP"), (bc.timestamp() - tsSOR) * 1.e-3); // Converting ms into seconds
395+
}
396+
bool isLeadBC = true;
397+
for (int jbit = localBC - minEmpty; jbit < localBC; jbit++) {
398+
int kbit = jbit;
399+
if (kbit < 0)
400+
kbit += nbin;
401+
if (bcPatternB[kbit]) {
402+
isLeadBC = false;
403+
break;
404+
}
405+
}
406+
if (isLeadBC) {
407+
if (trgFDD) {
408+
histos.fill(HIST("FDD/nBCsVsTimeLeadingBCe"), timeSinceSOF);
409+
histos.fill(HIST("FDD/hTimeForRateLeadingBCCTP"), (bc.timestamp() - tsSOR) * 1.e-3);
410+
}
411+
if (trgFT0) {
412+
histos.fill(HIST("FT0/nBCsVsTimeLeadingBCe"), timeSinceSOF);
413+
histos.fill(HIST("FT0/hTimeForRateLeadingBCCTP"), (bc.timestamp() - tsSOR) * 1.e-3);
414+
}
415+
if (trgFV0) {
416+
histos.fill(HIST("FV0/hTimeForRateLeadingBCCTP"), (bc.timestamp() - tsSOR) * 1.e-3);
417+
}
407418
}
408-
if (trgFT0) {
409-
histos.fill(HIST("FT0/hTimeForRateLeadingBCCTP"), (bc.timestamp() - tsSOR) * 1.e-3);
410-
}
411-
if (trgFV0) {
412-
histos.fill(HIST("FV0/hTimeForRateLeadingBCCTP"), (bc.timestamp() - tsSOR) * 1.e-3);
413419
}
414-
// }
415420
} // loop over bcs
416421

417422
for (auto const& fdd : fdds) {

0 commit comments

Comments
 (0)