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 GlobalPosition_Frontier_DevDB_cff::tag.

mps_fire.i
i
Definition: mps_fire.py:355
edm::Handle
Definition: AssociativeIterator.h:50
GlobalPosition_Frontier_DevDB_cff.tag
tag
Definition: GlobalPosition_Frontier_DevDB_cff.py:11
HCALHighEnergyHPDFilter_cfi.energy
energy
Definition: HCALHighEnergyHPDFilter_cfi.py:5
FastTrackerRecHitMaskProducer_cfi.recHits
recHits
Definition: FastTrackerRecHitMaskProducer_cfi.py:8
edm::LogError
Definition: MessageLogger.h:183
analyzer
Definition: SiPixelLorentzAngle.h:82
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37