CMS 3D CMS Logo

Functions
CastorDigiAnalyzerImpl Namespace Reference

Functions

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

Function Documentation

◆ analyze()

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

Definition at line 96 of file CastorDigiAnalyzer.cc.

References MillePedeFileConverter_cfg::e, mps_fire::i, edm::HandleBase::isValid(), MessageLogger_cfi::statistics, and unpackBuffers-CaloStage2::token.

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