Skip to content

Commit 5569027

Browse files
committed
Megalinter fix
1 parent ce2ff52 commit 5569027

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

PWGLF/Tasks/Strangeness/strangeCascTrack.cxx

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -756,16 +756,18 @@ struct StrangeCascTrack {
756756
histos.fill(HIST(TypeNames[Type]) + HIST("/Rec/FiltersXi"), 0.5);
757757
if (fillTruthXi)
758758
histos.fill(HIST(TypeNames[Type]) + HIST("/Rec-Truth/FiltersXi"), 0.5);
759-
} else
759+
} else {
760760
passedAllSelsXi = false;
761+
}
761762
}
762763
if (doApplyPtCutsOmega) {
763764
if (isValidPt(cascade, "Omega", Type)) {
764765
histos.fill(HIST(TypeNames[Type]) + HIST("/Rec/FiltersOmega"), 0.5);
765766
if (fillTruthOmega)
766767
histos.fill(HIST(TypeNames[Type]) + HIST("/Rec-Truth/FiltersOmega"), 0.5);
767-
} else
768+
} else {
768769
passedAllSelsOmega = false;
770+
}
769771
}
770772
// apply general cascade cuts
771773
if (doApplyGenCutsXi) {
@@ -781,8 +783,9 @@ struct StrangeCascTrack {
781783
histos.fill(HIST(TypeNames[Type]) + HIST("/Rec/FiltersXi"), 1.5);
782784
if (fillTruthXi)
783785
histos.fill(HIST(TypeNames[Type]) + HIST("/Rec-Truth/FiltersXi"), 1.5);
784-
} else
786+
} else {
785787
passedAllSelsXi = false;
788+
}
786789
}
787790
if (doApplyGenCutsOmega) {
788791
auto genSels = isValidCasc(collision, cascade, stdCasc, "Omega");
@@ -797,51 +800,57 @@ struct StrangeCascTrack {
797800
histos.fill(HIST(TypeNames[Type]) + HIST("/Rec/FiltersOmega"), 1.5);
798801
if (fillTruthOmega)
799802
histos.fill(HIST(TypeNames[Type]) + HIST("/Rec-Truth/FiltersOmega"), 1.5);
800-
} else
803+
} else {
801804
passedAllSelsOmega = false;
805+
}
802806
}
803807
// apply tpc pid
804808
if (doApplyTPCPIDXi) {
805809
if (passesTPC(stdCasc, "Xi")) {
806810
histos.fill(HIST(TypeNames[Type]) + HIST("/Rec/FiltersXi"), 2.5);
807811
if (fillTruthXi)
808812
histos.fill(HIST(TypeNames[Type]) + HIST("/Rec-Truth/FiltersXi"), 2.5);
809-
} else
813+
} else {
810814
passedAllSelsXi = false;
815+
}
811816
}
812817
if (doApplyTPCPIDOmega) {
813818
if (passesTPC(stdCasc, "Omega")) {
814819
histos.fill(HIST(TypeNames[Type]) + HIST("/Rec/FiltersOmega"), 2.5);
815820
if (fillTruthOmega)
816821
histos.fill(HIST(TypeNames[Type]) + HIST("/Rec-Truth/FiltersOmega"), 2.5);
817-
} else
822+
} else {
818823
passedAllSelsOmega = false;
824+
}
819825
}
820826
// apply tof pid
821827
if (doApplyTOFPIDXi) {
822828
if (passesTOF(stdCasc, "Xi")) {
823829
histos.fill(HIST(TypeNames[Type]) + HIST("/Rec/FiltersXi"), 3.5);
824830
if (fillTruthXi)
825831
histos.fill(HIST(TypeNames[Type]) + HIST("/Rec-Truth/FiltersXi"), 3.5);
826-
} else
832+
} else {
827833
passedAllSelsXi = false;
834+
}
828835
}
829836
if (doApplyTOFPIDOmega) {
830837
if (passesTOF(stdCasc, "Omega")) {
831838
histos.fill(HIST(TypeNames[Type]) + HIST("/Rec/FiltersOmega"), 3.5);
832839
if (fillTruthOmega)
833840
histos.fill(HIST(TypeNames[Type]) + HIST("/Rec-Truth/FiltersOmega"), 3.5);
834-
} else
841+
} else {
835842
passedAllSelsOmega = false;
843+
}
836844
}
837845
// apply competing mass rej
838846
if (doCompetingMassRej) {
839847
if ((std::abs(massXi - o2::constants::physics::MassXiMinus) > selCuts.cutCompMassRej)) {
840848
histos.fill(HIST(TypeNames[Type]) + HIST("/Rec/FiltersOmega"), 4.5);
841849
if (fillTruthOmega)
842850
histos.fill(HIST(TypeNames[Type]) + HIST("/Rec-Truth/FiltersOmega"), 4.5);
843-
} else
851+
} else {
844852
passedAllSelsOmega = false;
853+
}
845854
}
846855

847856
// fil rec histograms

0 commit comments

Comments
 (0)