CMS 3D CMS Logo

Functions

HcalDigiAnalyzerImpl Namespace Reference

Functions

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

Function Documentation

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

Definition at line 30 of file HcalDigiAnalyzer.cc.

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

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