CMS 3D CMS Logo

EcalUncalibRecHitWorkerRunOneDigiBase.h
Go to the documentation of this file.
1 #ifndef RecoLocalCalo_EcalRecProducers_EcalUncalibRecHitWorkerRunOneDigiBase_hh
2 #define RecoLocalCalo_EcalRecProducers_EcalUncalibRecHitWorkerRunOneDigiBase_hh
3 
5 
6 
10 
12  public:
17 
18  virtual bool run(const edm::Event& evt, const EcalDigiCollection::const_iterator & digi, EcalUncalibratedRecHitCollection & result) = 0;
19 
20  virtual void run(const edm::Event& evt, const EcalDigiCollection & digis, EcalUncalibratedRecHitCollection & result) override
21  {
22  result.reserve(result.size() + digis.size());
23  for (auto it = digis.begin(); it != digis.end(); ++it)
24  run(evt, it, result);
25  }
26 
27 };
28 
29 #endif
virtual void run(const edm::Event &evt, const EcalDigiCollection &digis, EcalUncalibratedRecHitCollection &result) override
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
const_iterator begin() const
EcalUncalibRecHitWorkerRunOneDigiBase(const edm::ParameterSet &p, edm::ConsumesCollector &c)
virtual bool run(const edm::Event &evt, const EcalDigiCollection::const_iterator &digi, EcalUncalibratedRecHitCollection &result)=0
const_iterator end() const
size_type size() const
void reserve(size_type n)