CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
CastorHitAnalyzerImpl Namespace Reference

Functions

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

Function Documentation

template<class Collection >
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, edm::HandleBase::isValid(), and HLT_25ns14e33_v3_cff::recHits.

19  {
21  e.getByLabel(tag, recHits);
22  if (!recHits.isValid()) {
23  edm::LogError("CastorHitAnalyzer") << "Could not find Castor RecHitContainer ";
24  } else {
25  for(unsigned i = 0 ; i < recHits->size(); ++i) {
26  analyzer.analyze((*recHits)[i].id().rawId(), (*recHits)[i].energy());
27  }
28  }
29  }
int i
Definition: DBlmapReader.cc:9
void analyze(int detId, double recEnergy)
to be called for each RecHit
bool isValid() const
Definition: HandleBase.h:75