CMS 3D CMS Logo

Functions
CastorHitAnalyzerImpl Namespace Reference

Functions

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

Function Documentation

◆ analyze()

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

Definition at line 45 of file CastorHitAnalyzer.cc.

References MillePedeFileConverter_cfg::e, HCALHighEnergyHPDFilter_cfi::energy, mps_fire::i, FastTrackerRecHitMaskProducer_cfi::recHits, and unpackBuffers-CaloStage2::token.

45  {
46  const edm::Handle<Collection> &recHits = e.getHandle(token);
47  if (!recHits.isValid()) {
48  edm::LogError("CastorHitAnalyzer") << "Could not find Castor RecHitContainer ";
49  } else {
50  for (unsigned i = 0; i < recHits->size(); ++i) {
51  analyzer.analyze((*recHits)[i].id().rawId(), (*recHits)[i].energy());
52  }
53  }
54  }
Log< level::Error, false > LogError