Skip to content

Commit

Permalink
clean if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir Rekovic committed Sep 15, 2009
1 parent 1506fa0 commit e0370c9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions DQMOffline/Trigger/src/HLTEventInfoClient.cc
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ void HLTEventInfoClient::beginJob(const EventSetup& context){
dbe_->setCurrentFolder("HLT/EventInfo");

// sprintf(histo, "reportSummary");
if ( reportSummary_ == dbe_->get("HLT/EventInfo/reportSumamry") ) {
reportSummary_ = dbe_->get("HLT/EventInfo/reportSumamry");
if ( reportSummary_ ) {
dbe_->removeElement(reportSummary_->getName());
}

Expand Down Expand Up @@ -132,7 +133,8 @@ void HLTEventInfoClient::beginJob(const EventSetup& context){

dbe_->setCurrentFolder("HLT/EventInfo");

if ( reportSummaryMap_ == dbe_->get("HLT/EventInfo/reportSummaryMap") ) {
reportSummaryMap_ = dbe_->get("HLT/EventInfo/reportSummaryMap");
if ( reportSummaryMap_ ) {
dbe_->removeElement(reportSummaryMap_->getName());
}

Expand Down

0 comments on commit e0370c9

Please sign in to comment.