![]() |
![]() |
Functions | |
template<class Collection> | |
void | analyze (edm::Event const &e, CastorDigiStatistics &statistics) |
void CastorDigiAnalyzerImpl::analyze | ( | edm::Event const & | e, | |
CastorDigiStatistics & | statistics | |||
) | [inline] |
Definition at line 18 of file CastorDigiAnalyzer.cc.
References CastorDigiStatistics::analyze(), edm::Event::getByType(), i, and edm::Handle< T >::isValid().
00018 { 00019 edm::Handle<Collection> digis; 00020 e.getByType(digis); 00021 if (!digis.isValid()) { 00022 edm::LogError("CastorDigiAnalyzer") << "Could not find Castor Digi Container "; 00023 } else { 00024 for(unsigned i = 0; i < digis->size(); ++i) { 00025 statistics.analyze((*digis)[i]); 00026 } 00027 } 00028 }