Skip to content

Commit

Permalink
Merge pull request #34041 from smuzaffar/12_0-code-checks-DQM_L1
Browse files Browse the repository at this point in the history
[DQM_L1] Apply code-checks/format with misc-definitions-in-headers
  • Loading branch information
cmsbuild committed Jun 9, 2021
2 parents ddcf743 + 7cca66d commit 7707e50
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
6 changes: 4 additions & 2 deletions DQMOffline/L1Trigger/src/L1TDiffHarvesting.cc
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,10 @@ namespace dqmoffline {

if (!h1_ || !h2_) {
edm::LogWarning("L1TDiffHarvesting::L1TDiffPlotHandler::loadHistograms")
<< (!h1_ && !h2_ ? h1Name + " && " + h2Name : !h1_ ? h1Name : h2Name) << " not gettable. Quitting booking"
<< std::endl;
<< (!h1_ && !h2_ ? h1Name + " && " + h2Name
: !h1_ ? h1Name
: h2Name)
<< " not gettable. Quitting booking" << std::endl;

return;
}
Expand Down
14 changes: 8 additions & 6 deletions DQMOffline/L1Trigger/src/L1TEfficiencyHarvesting.cc
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,21 @@ namespace dqmoffline {
MonitorElement *den = igetter.get(denominatorName);

if (!num || !den) {
edm::LogWarning("L1TEfficiencyPlotHandler")
<< (!num && !den ? numeratorName + " && " + denominatorName : !num ? numeratorName : denominatorName)
<< " not gettable. Quitting booking" << endl;
edm::LogWarning("L1TEfficiencyPlotHandler") << (!num && !den ? numeratorName + " && " + denominatorName
: !num ? numeratorName
: denominatorName)
<< " not gettable. Quitting booking" << endl;
return;
}

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

if (!numH || !denH) {
edm::LogWarning("L1TEfficiencyPlotHandler")
<< (!numH && !denH ? numeratorName + " && " + denominatorName : !num ? numeratorName : denominatorName)
<< " is not TH1F. Quitting booking" << endl;
edm::LogWarning("L1TEfficiencyPlotHandler") << (!numH && !denH ? numeratorName + " && " + denominatorName
: !num ? numeratorName
: denominatorName)
<< " is not TH1F. Quitting booking" << endl;

return;
}
Expand Down

0 comments on commit 7707e50

Please sign in to comment.