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 26 of file HcalHitAnalyzer.cc.

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

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