CMS 3D CMS Logo

Functions
HcalHitAnalyzerImpl Namespace Reference

Functions

template<class Collection >
void analyze (edm::Event const &e, CaloHitAnalyzer &analyzer, edm::InputTag &tag)
 

Function Documentation

template<class Collection >
void HcalHitAnalyzerImpl::analyze ( edm::Event const &  e,
CaloHitAnalyzer analyzer,
edm::InputTag tag 
)

Definition at line 22 of file HcalHitAnalyzer.cc.

References CaloHitAnalyzer::analyze(), edm::Event::getByLabel(), and mps_fire::i.

22  {
24  e.getByLabel(tag, recHits);
25  for (unsigned i = 0; i < recHits->size(); ++i) {
26  analyzer.analyze((*recHits)[i].id().rawId(), (*recHits)[i].energy());
27  }
28  }
void analyze(int detId, double recEnergy)
to be called for each RecHit