Skip to content

Commit c052a7e

Browse files
committed
fixed MegaLinter
1 parent 059f628 commit c052a7e

3 files changed

Lines changed: 17 additions & 25 deletions

File tree

PWGLF/TableProducer/Strangeness/sigma0builder.cxx

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -981,9 +981,7 @@ struct sigma0builder {
981981
kShortMotherCode = MCMother_v02.pdgCode();
982982

983983
// If the KShort mother is a (anti)Kaon, use the grandmother instead
984-
if (std::abs(kShortMotherCode) == PDG_t::kK0 ||
985-
std::abs(kShortMotherCode) == PDG_t::kK0Long ||
986-
std::abs(kShortMotherCode) == PDG_t::kKPlus) {
984+
if (std::abs(kShortMotherCode) == PDG_t::kK0) {
987985
auto const& kShortGrandMothers = MCMother_v02.template mothers_as<aod::McParticles>();
988986
if (!kShortGrandMothers.empty()) {
989987
kShortMotherCode = kShortGrandMothers.front().pdgCode();
@@ -1376,13 +1374,11 @@ struct sigma0builder {
13761374
if (eventSelections.maxIR >= 0 && interactionRate > eventSelections.maxIR) {
13771375
return false;
13781376
}
1379-
if (fillHists)
1377+
if (fillHists){
13801378
histos.fill(HIST("hEventSelection"), 19 /* Above max IR */);
1381-
1382-
// Fill centrality histogram after event selection
1383-
if (fillHists)
1379+
// Fill centrality histogram after event selection
13841380
histos.fill(HIST("hEventCentrality"), centrality);
1385-
1381+
}
13861382
return true;
13871383
}
13881384

@@ -2811,9 +2807,9 @@ struct sigma0builder {
28112807
}
28122808
}
28132809

2814-
//_______________________________________________
2815-
// KStar loop
2816-
if constexpr (!soa::is_table<TEMCal>) { // Don't use EMCal clusters here
2810+
if constexpr (!soa::is_table<TEMCal>) {// Don't use EMCal clusters here
2811+
//_______________________________________________
2812+
// KStar loop
28172813
if (fillKStarTables) {
28182814
auto gamma1 = fullV0s.rawIteratorAt(bestGammasArray[i]);
28192815
for (size_t j = 0; j < bestKShortsArray.size(); ++j) {
@@ -2824,11 +2820,9 @@ struct sigma0builder {
28242820
continue;
28252821
}
28262822
}
2827-
}
28282823

2829-
//_______________________________________________
2830-
// pi0 loop
2831-
if constexpr (!soa::is_table<TEMCal>) { // Don't use EMCal clusters here
2824+
//_______________________________________________
2825+
// pi0 loop
28322826
if (fillPi0Tables) {
28332827
auto gamma1 = fullV0s.rawIteratorAt(bestGammasArray[i]);
28342828
for (size_t j = i + 1; j < bestGammasArray.size(); ++j) {

PWGLF/Tasks/Resonances/k892hadronphoton.cxx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -579,13 +579,13 @@ struct k892hadronphoton {
579579
if (eventSelections.maxIR >= 0 && interactionRate > eventSelections.maxIR) {
580580
return false;
581581
}
582-
if (fillHists)
583-
histos.fill(HIST("hEventSelection"), 19 /* Above max IR */);
584582

585-
// Fill centrality histogram after event selection
586-
if (fillHists)
583+
if (fillHists){
584+
histos.fill(HIST("hEventSelection"), 19 /* Above max IR */);
585+
// Fill centrality histogram after event selection
587586
histos.fill(HIST("hEventCentrality"), centrality);
588-
587+
}
588+
589589
return true;
590590
}
591591

PWGLF/Tasks/Resonances/k892hadronphotonBkg.cxx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -386,13 +386,11 @@ struct k892hadronphotonBkg {
386386
if (eventSelections.maxIR >= 0 && interactionRate > eventSelections.maxIR) {
387387
return false;
388388
}
389-
if (fillHists)
389+
if (fillHists){
390390
histos.fill(HIST("hEventSelection"), 19 /* Above max IR */);
391-
392-
// Fill centrality histogram after event selection
393-
if (fillHists)
391+
// Fill centrality histogram after event selection
394392
histos.fill(HIST("hEventCentrality"), centrality);
395-
393+
}
396394
return true;
397395
}
398396

0 commit comments

Comments
 (0)