Skip to content

Commit

Permalink
Make further changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunanda committed Oct 1, 2015
1 parent f403a0d commit b5e2eed
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion DQM/HcalMonitorTasks/src/HcalDigiMonitor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,9 @@ void HcalDigiMonitor::analyze(edm::Event const&e, edm::EventSetup const&s)
}
}
} //else

edm::ESHandle<HcalTopology> topo;
s.get<HcalRecNumberingRecord>().get(topo);

// Now get collections we need
HT_HFP_=0;
Expand All @@ -508,7 +511,7 @@ void HcalDigiMonitor::analyze(edm::Event const&e, edm::EventSetup const&s)
float en=HF->energy();
int ieta=HF->id().ieta();
// ieta for HF starts at 29, so subtract away 29 when computing fEta
std::pair<double,double> etas = topo_->etaRange(HF->id().subdet(),abs(ieta));
std::pair<double,double> etas = topo->etaRange(HF->id().subdet(),abs(ieta));
double fEta=fabs(0.5*(etas.first+etas.second));
ieta>0 ? HT_HFP_+=en/cosh(fEta) : HT_HFM_+=en/cosh(fEta);
}
Expand Down
4 changes: 3 additions & 1 deletion DQM/HcalMonitorTasks/src/HcalHotCellMonitor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -405,11 +405,13 @@ void HcalHotCellMonitor::analyze(edm::Event const&e, edm::EventSetup const&s)
}

// Good event found; increment counter (via base class analyze method)
edm::ESHandle<HcalTopology> topo;
s.get<HcalRecNumberingRecord>().get(topo);

// HcalBaseDQMonitor::analyze(e,s);
if (debug_>1) std::cout <<"\t<HcalHotCellMonitor::analyze> Processing good event! event # = "<<ievt_<<std::endl;

processEvent(*hbhe_rechit, *ho_rechit, *hf_rechit, *topo_);
processEvent(*hbhe_rechit, *ho_rechit, *hf_rechit, *topo);

} // void HcalHotCellMonitor::analyze(...)

Expand Down

0 comments on commit b5e2eed

Please sign in to comment.