CMS 3D CMS Logo

Functions

HcalHitAnalyzerImpl Namespace Reference

Functions

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

Function Documentation

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

Definition at line 23 of file HcalHitAnalyzer.cc.

References CaloHitAnalyzer::analyze(), relval_parameters_module::energy, edm::Event::getByType(), and i.

                                                              {
    edm::Handle<Collection> recHits;
    e.getByType(recHits);
    for(unsigned i = 0 ; i < recHits->size(); ++i) {
      analyzer.analyze((*recHits)[i].id().rawId(), (*recHits)[i].energy());
    }
  }