Skip to content

Commit

Permalink
add LogWarning
Browse files Browse the repository at this point in the history
  • Loading branch information
mtosi committed Apr 28, 2017
1 parent f00b8b1 commit 3ac2a01
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion DQM/SiPixelPhase1Summary/src/SiPixelPhase1Summary.cc
Expand Up @@ -150,7 +150,10 @@ void SiPixelPhase1Summary::fillSummaries(DQMStore::IBooker & iBooker, DQMStore::
// std::cout << histName << std::endl;
MonitorElement * me = iGetter.get(histName);

if (!me) continue; //Ignore non-existant MEs
if (!me) {
edm::LogWarning("SiPixelPhase1Summary") << "ME " << histName << " is not available !!";
continue; //Ignore non-existant MEs
}

if (me->hasError()) {
//If there is an error, fill with 0
Expand Down

0 comments on commit 3ac2a01

Please sign in to comment.