Skip to content

Commit 24aa75c

Browse files
committed
adressed linter
1 parent 57d6c62 commit 24aa75c

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

PWGLF/Tasks/Strangeness/sigmaanalysis.cxx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -788,12 +788,11 @@ struct sigmaanalysis {
788788
if (eventSelections.maxIR >= 0 && interactionRate > eventSelections.maxIR) {
789789
return false;
790790
}
791-
if (fillHists)
791+
if (fillHists) {
792792
histos.fill(HIST("hEventSelection"), 19 /* Above max IR */);
793-
794-
// Fill centrality histogram after event selection
795-
if (fillHists)
793+
// Fill centrality histogram after event selection
796794
histos.fill(HIST("hEventCentrality"), centrality);
795+
}
797796
histos.fill(HIST("hCentralityVsNch"), centrality, collision.multNTracksPVeta1());
798797

799798
return true;
@@ -914,7 +913,7 @@ struct sigmaanalysis {
914913
fillGeneratedEventProperties(mcCollisions, collisions);
915914
std::vector<int> listBestCollisionIdx = getListOfRecoCollIndices(mcCollisions, collisions);
916915

917-
for (auto& genParticle : genParticles) {
916+
for (const auto& genParticle : genParticles) {
918917
float centrality = 100.5f;
919918

920919
// Has MC collision

0 commit comments

Comments
 (0)