Skip to content

Commit

Permalink
[DQM_L1] apply code-format
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar committed Jun 8, 2021
1 parent 2203a47 commit 7cca66d
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 7cca66d

Please sign in to comment.