Skip to content

Commit 7707e50

Browse files
authored
Merge pull request cms-sw#34041 from smuzaffar/12_0-code-checks-DQM_L1
[DQM_L1] Apply code-checks/format with misc-definitions-in-headers
2 parents ddcf743 + 7cca66d commit 7707e50

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

DQMOffline/L1Trigger/src/L1TDiffHarvesting.cc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,10 @@ namespace dqmoffline {
7575

7676
if (!h1_ || !h2_) {
7777
edm::LogWarning("L1TDiffHarvesting::L1TDiffPlotHandler::loadHistograms")
78-
<< (!h1_ && !h2_ ? h1Name + " && " + h2Name : !h1_ ? h1Name : h2Name) << " not gettable. Quitting booking"
79-
<< std::endl;
78+
<< (!h1_ && !h2_ ? h1Name + " && " + h2Name
79+
: !h1_ ? h1Name
80+
: h2Name)
81+
<< " not gettable. Quitting booking" << std::endl;
8082

8183
return;
8284
}

DQMOffline/L1Trigger/src/L1TEfficiencyHarvesting.cc

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,21 @@ namespace dqmoffline {
4242
MonitorElement *den = igetter.get(denominatorName);
4343

4444
if (!num || !den) {
45-
edm::LogWarning("L1TEfficiencyPlotHandler")
46-
<< (!num && !den ? numeratorName + " && " + denominatorName : !num ? numeratorName : denominatorName)
47-
<< " not gettable. Quitting booking" << endl;
45+
edm::LogWarning("L1TEfficiencyPlotHandler") << (!num && !den ? numeratorName + " && " + denominatorName
46+
: !num ? numeratorName
47+
: denominatorName)
48+
<< " not gettable. Quitting booking" << endl;
4849
return;
4950
}
5051

5152
TH1 *numH = num->getTH1();
5253
TH1 *denH = den->getTH1();
5354

5455
if (!numH || !denH) {
55-
edm::LogWarning("L1TEfficiencyPlotHandler")
56-
<< (!numH && !denH ? numeratorName + " && " + denominatorName : !num ? numeratorName : denominatorName)
57-
<< " is not TH1F. Quitting booking" << endl;
56+
edm::LogWarning("L1TEfficiencyPlotHandler") << (!numH && !denH ? numeratorName + " && " + denominatorName
57+
: !num ? numeratorName
58+
: denominatorName)
59+
<< " is not TH1F. Quitting booking" << endl;
5860

5961
return;
6062
}

0 commit comments

Comments
 (0)