Skip to content

Commit 4a9c7a4

Browse files
committed
Fix switch case braces in DQMStoreStats
Add missing curly braces around TH2Poly case block to properly scope local variable declarations.
1 parent 27d4dff commit 4a9c7a4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

DQMServices/Components/plugins/DQMStoreStats.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ int DQMStoreStats::calcstats(int mode = DQMStoreStats::considerAllME) {
678678
getEmptyMetric(it->getTH2I()->GetArray(), it->getNbinsX() + 2, it->getNbinsY() + 2, 0),
679679
it->getNbinsX() * it->getNbinsY() * sizeof(int));
680680
break;
681-
case MonitorElement::Kind::TH2Poly:
681+
case MonitorElement::Kind::TH2Poly: {
682682
std::vector<double> polyArray = GetTH2PolyArray(it->getTH2Poly());
683683
int nBins = polyArray.size() - 1;
684684
currentSubfolder.AddBinsD(
@@ -688,6 +688,7 @@ int DQMStoreStats::calcstats(int mode = DQMStoreStats::considerAllME) {
688688
getEmptyMetric(polyArray.data(), nBins + 1, 1, 0),
689689
nBins * sizeof(double));
690690
break;
691+
}
691692
case MonitorElement::Kind::TPROFILE2D:
692693
currentSubfolder.AddBinsD(
693694
it->getNbinsX() * it->getNbinsY(),

0 commit comments

Comments
 (0)