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, edm::InputTag &tag)
 

Function Documentation

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

Definition at line 19 of file CastorDigiAnalyzer.cc.

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

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