Skip to content

Commit

Permalink
Added [[fallthrough]] to SUSY_HLT_SingleLepton switch statements
Browse files Browse the repository at this point in the history
This fixes a gcc 9 warning.
  • Loading branch information
Dr15Jones committed Aug 7, 2019
1 parent 1c0fe8d commit b998e6e
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions HLTriggerOffline/SUSYBSM/src/SUSY_HLT_SingleLepton.cc
Expand Up @@ -641,36 +641,48 @@ void SUSY_HLT_SingleLepton::analyze(const edm::Event &e, const edm::EventSetup &
switch (num_csvl) {
default:
h_btagTurnOn_den_->Fill(4);
[[fallthrough]];
case 3:
h_btagTurnOn_den_->Fill(3);
[[fallthrough]];
case 2:
h_btagTurnOn_den_->Fill(2);
[[fallthrough]];
case 1:
h_btagTurnOn_den_->Fill(1);
[[fallthrough]];
case 0:
h_btagTurnOn_den_->Fill(0);
}
switch (num_csvm) {
default:
h_btagTurnOn_den_->Fill(8);
[[fallthrough]];
case 3:
h_btagTurnOn_den_->Fill(7);
[[fallthrough]];
case 2:
h_btagTurnOn_den_->Fill(6);
[[fallthrough]];
case 1:
h_btagTurnOn_den_->Fill(5);
[[fallthrough]];
case 0:
break; // Don't double count in the no tag bin
}
switch (num_csvt) {
default:
h_btagTurnOn_den_->Fill(12);
[[fallthrough]];
case 3:
h_btagTurnOn_den_->Fill(11);
[[fallthrough]];
case 2:
h_btagTurnOn_den_->Fill(10);
[[fallthrough]];
case 1:
h_btagTurnOn_den_->Fill(9);
[[fallthrough]];
case 0:
break; // Don't double count in the no tag bin
}
Expand All @@ -679,36 +691,48 @@ void SUSY_HLT_SingleLepton::analyze(const edm::Event &e, const edm::EventSetup &
switch (num_csvl) {
default:
h_btagTurnOn_num_->Fill(4);
[[fallthrough]];
case 3:
h_btagTurnOn_num_->Fill(3);
[[fallthrough]];
case 2:
h_btagTurnOn_num_->Fill(2);
[[fallthrough]];
case 1:
h_btagTurnOn_num_->Fill(1);
[[fallthrough]];
case 0:
h_btagTurnOn_num_->Fill(0);
}
switch (num_csvm) {
default:
h_btagTurnOn_num_->Fill(8);
[[fallthrough]];
case 3:
h_btagTurnOn_num_->Fill(7);
[[fallthrough]];
case 2:
h_btagTurnOn_num_->Fill(6);
[[fallthrough]];
case 1:
h_btagTurnOn_num_->Fill(5);
[[fallthrough]];
case 0:
break; // Don't double count in the no tag bin
}
switch (num_csvt) {
default:
h_btagTurnOn_num_->Fill(12);
[[fallthrough]];
case 3:
h_btagTurnOn_num_->Fill(11);
[[fallthrough]];
case 2:
h_btagTurnOn_num_->Fill(10);
[[fallthrough]];
case 1:
h_btagTurnOn_num_->Fill(9);
[[fallthrough]];
case 0:
break; // Don't double count in the no tag bin
}
Expand Down

0 comments on commit b998e6e

Please sign in to comment.