CMS 3D CMS Logo

Functions
CastorHitAnalyzerImpl Namespace Reference

Functions

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

Function Documentation

◆ analyze()

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

Definition at line 15 of file CastorHitAnalyzer.cc.

15  {
17  e.getByLabel(tag, recHits);
18  if (!recHits.isValid()) {
19  edm::LogError("CastorHitAnalyzer") << "Could not find Castor RecHitContainer ";
20  } else {
21  for (unsigned i = 0; i < recHits->size(); ++i) {
22  analyzer.analyze((*recHits)[i].id().rawId(), (*recHits)[i].energy());
23  }
24  }
25  }

References MillePedeFileConverter_cfg::e, HCALHighEnergyHPDFilter_cfi::energy, mps_fire::i, FastTrackerRecHitMaskProducer_cfi::recHits, and makeGlobalPositionRcd_cfg::tag.

mps_fire.i
i
Definition: mps_fire.py:428
edm::Handle
Definition: AssociativeIterator.h:50
HCALHighEnergyHPDFilter_cfi.energy
energy
Definition: HCALHighEnergyHPDFilter_cfi.py:5
FastTrackerRecHitMaskProducer_cfi.recHits
recHits
Definition: FastTrackerRecHitMaskProducer_cfi.py:8
makeGlobalPositionRcd_cfg.tag
tag
Definition: makeGlobalPositionRcd_cfg.py:6
edm::LogError
Log< level::Error, false > LogError
Definition: MessageLogger.h:123
analyzer
Definition: SiPixelLorentzAngle.h:82
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37