CMS 3D CMS Logo

Functions
CastorDigiAnalyzerImpl Namespace Reference

Functions

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

Function Documentation

◆ analyze()

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

Definition at line 15 of file CastorDigiAnalyzer.cc.

15  {
17  e.getByLabel(tag, digis);
18  if (!digis.isValid()) {
19  edm::LogError("CastorDigiAnalyzer") << "Could not find Castor Digi Container ";
20  } else {
21  for (unsigned i = 0; i < digis->size(); ++i) {
22  statistics.analyze((*digis)[i]);
23  }
24  }
25  }

References MillePedeFileConverter_cfg::e, mps_fire::i, edm::HandleBase::isValid(), myMessageLogger_cff::statistics, and GlobalPosition_Frontier_DevDB_cff::tag.

mps_fire.i
i
Definition: mps_fire.py:428
edm::Handle
Definition: AssociativeIterator.h:50
GlobalPosition_Frontier_DevDB_cff.tag
tag
Definition: GlobalPosition_Frontier_DevDB_cff.py:11
edm::LogError
Log< level::Error, false > LogError
Definition: MessageLogger.h:123
myMessageLogger_cff.statistics
statistics
Definition: myMessageLogger_cff.py:9
edm::HandleBase::isValid
bool isValid() const
Definition: HandleBase.h:70
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37