CMS 3D CMS Logo

Functions
CastorDigiAnalyzerImpl Namespace Reference

Functions

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

Function Documentation

template<class Collection >
void CastorDigiAnalyzerImpl::analyze ( edm::Event const &  e,
CastorDigiStatistics statistics,
edm::InputTag tag 
)

Definition at line 15 of file CastorDigiAnalyzer.cc.

References CastorDigiStatistics::analyze(), edm::Event::getByLabel(), mps_fire::i, and edm::HandleBase::isValid().

15  {
17  e.getByLabel(tag, digis);
18  if (!digis.isValid()) {
19  edm::LogError("CastorDigiAnalyzer") << "Could not find Castor Digi Container ";
20  } else {
21  for (unsigned i = 0; i < digis->size(); ++i) {
22  statistics.analyze((*digis)[i]);
23  }
24  }
25  }
bool isValid() const
Definition: HandleBase.h:70
void analyze(const Digi &digi)