Skip to content

Commit e385514

Browse files
author
Lucia Anna Tarasovicova
committed
fix the MegaLinter
1 parent c96beee commit e385514

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

PWGLF/Tasks/Strangeness/derivedcascadeanalysis.cxx

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,8 @@ struct Derivedcascadeanalysis {
251251

252252
Service<o2::framework::O2DatabasePDG> pdgDB;
253253

254-
uint16_t selectionCheckMask;
255-
double selectionCheck;
254+
uint16_t selectionCheckMask = 0;
255+
double selectionCheck = -1;
256256

257257
static constexpr std::array<std::string_view, 10> CentIndex = {"1", "2", "3", "4", "5", "6", "7", "8", "9", "10"};
258258
static constexpr std::array<float, 11> CentralityIntervals = {0., 5., 10., 20., 30., 40., 50., 60., 70., 80., 90.};
@@ -274,8 +274,6 @@ struct Derivedcascadeanalysis {
274274
ccdb->setCaching(true);
275275
ccdb->setFatalWhenNull(false);
276276

277-
selectionCheck = -1;
278-
selectionCheckMask = 0;
279277
if (!candidateSelectionFlags.doBachelorBaryonCut) {
280278
SETBIT(selectionCheckMask, 0);
281279
}
@@ -896,9 +894,6 @@ struct Derivedcascadeanalysis {
896894
}
897895
if (fillHists) {
898896
histos.fill(HIST("hEventSelection"), 27.5 /* INEL > 0 selection */);
899-
}
900-
901-
if (fillHists) {
902897
histos.fill(HIST("hInteractionRate"), interactionRate);
903898
histos.fill(HIST("hCentralityVsInteractionRate"), centrality, interactionRate);
904899
histos.fill(HIST("hOccupancyVsOccupFt0VsCentrality"), occupancy, occupancyFT0, centrality);
@@ -1113,7 +1108,7 @@ struct Derivedcascadeanalysis {
11131108
selectionCheck = std::abs(casc.dcanegtopv());
11141109
}
11151110
}
1116-
++counter;
1111+
counter += 1;
11171112
}
11181113

11191114
return true;

0 commit comments

Comments
 (0)