CMS 3D CMS Logo

Functions

HcalDigiAnalyzerImpl Namespace Reference

Functions

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

Function Documentation

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

Definition at line 27 of file HcalDigiAnalyzer.cc.

References HcalDigiStatistics::analyze(), gather_cfg::cout, edm::Event::getByType(), and i.

                                                                   {
    edm::Handle<Collection> digis;
    e.getByType(digis);
    for(unsigned i = 0; i < digis->size(); ++i) {
      std::cout << (*digis)[i] << std::endl;
      statistics.analyze((*digis)[i]);
    }
  }