CMS 3D CMS Logo

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

Functions

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

Function Documentation

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

Definition at line 18 of file CastorDigiAnalyzer.cc.

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

18  {
20  e.getByType(digis);
21  if (!digis.isValid()) {
22  edm::LogError("CastorDigiAnalyzer") << "Could not find Castor Digi Container ";
23  } else {
24  for(unsigned i = 0; i < digis->size(); ++i) {
25  statistics.analyze((*digis)[i]);
26  }
27  }
28  }
int i
Definition: DBlmapReader.cc:9
bool isValid() const
Definition: HandleBase.h:76
void analyze(const Digi &digi)