![]() |
![]() |
Functions | |
template<class Collection > | |
void | analyze (edm::Event const &e, CaloHitAnalyzer &analyzer, edm::InputTag &tag) |
void CastorHitAnalyzerImpl::analyze | ( | edm::Event const & | e, |
CaloHitAnalyzer & | analyzer, | ||
edm::InputTag & | tag | ||
) |
Definition at line 19 of file CastorHitAnalyzer.cc.
References CaloHitAnalyzer::analyze(), relval_parameters_module::energy, edm::Event::getByLabel(), i, and edm::HandleBase::isValid().
{ edm::Handle<Collection> recHits; e.getByLabel(tag, recHits); if (!recHits.isValid()) { edm::LogError("CastorHitAnalyzer") << "Could not find Castor RecHitContainer "; } else { for(unsigned i = 0 ; i < recHits->size(); ++i) { analyzer.analyze((*recHits)[i].id().rawId(), (*recHits)[i].energy()); } } }