CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 94 of file CastorDigiAnalyzer.cc.

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

94  {
96  e.getByLabel(tag, digis);
97  if (!digis.isValid()) {
98  edm::LogError("CastorDigiAnalyzer") << "Could not find Castor Digi Container ";
99  } else {
100  for (unsigned i = 0; i < digis->size(); ++i) {
101  statistics.analyze((*digis)[i]);
102  }
103  }
104  }
Log< level::Error, false > LogError
bool isValid() const
Definition: HandleBase.h:70
void analyze(const Digi &digi)