Skip to content

Commit ca29c9f

Browse files
committed
Fix statements in braces
1 parent 96314ef commit ca29c9f

File tree

1 file changed

+21
-13
lines changed

1 file changed

+21
-13
lines changed

Detectors/ITSMFT/ITS/postprocessing/studies/src/ITSBeamBackgroundStudy.cxx

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -561,27 +561,29 @@ void ITSBeamBackgroundStudy::process(o2::globaltracking::RecoContainer& recoData
561561

562562
Tchip = ic;
563563

564-
if (inTFROFcounter < 1)
564+
if (inTFROFcounter < 1) {
565565
Tmissingafter = -1;
566-
else if (ChipSeenInLastROF[ic])
566+
} else if (ChipSeenInLastROF[ic]) {
567567
Tmissingafter = 0;
568-
else
568+
} else {
569569
Tmissingafter = 1;
570+
}
570571

571-
if (inTFROFcounter < 2)
572+
if (inTFROFcounter < 2) {
572573
Tmissingafter2 = -1;
573-
else if (ChipSeenInLast2ROF[ic])
574+
} else if (ChipSeenInLast2ROF[ic]) {
574575
Tmissingafter2 = 0;
575-
else
576+
} else {
576577
Tmissingafter2 = 1;
578+
}
577579

578580
Tphi = ChipToPhi(ic);
579581

580582
Tnclus = MAPsize[ic].size();
581583
Tmincol = MAPcoo_mincol[ic];
582584
Tmaxcol = MAPcoo_maxcol[ic];
583585

584-
std::sort(MAPsize[ic].begin(), MAPsize[ic].end(), std::greater<int>());
586+
std::sort(MAPsize[ic].begin(), MAPsize[ic].end(), std::greater<>());
585587

586588
Tnhit = Tnclus_s20 = Tnclus_s100 = Tnclus_s150 = 0;
587589
Tnhit1 = Tnhit10 = 0.;
@@ -637,18 +639,24 @@ void ITSBeamBackgroundStudy::process(o2::globaltracking::RecoContainer& recoData
637639
// TODO: To be improved using geometry tools
638640
int ITSBeamBackgroundStudy::ChipToLayer(int chip)
639641
{
640-
if (chip < 108)
642+
if (chip < 108) {
641643
return 0;
642-
if (chip < 252)
644+
}
645+
if (chip < 252) {
643646
return 1;
644-
if (chip < 432)
647+
}
648+
if (chip < 432) {
645649
return 2;
646-
if (chip < 3120)
650+
}
651+
if (chip < 3120) {
647652
return 3;
648-
if (chip < 6480)
653+
}
654+
if (chip < 6480) {
649655
return 4;
650-
if (chip < 14712)
656+
}
657+
if (chip < 14712) {
651658
return 5;
659+
}
652660
return 6;
653661
}
654662

0 commit comments

Comments
 (0)