8 raw_(&fedcollection), cabling_(&cable), worker_(&worker)
10 LogDebug(
"EcalRawToRecHit|LazyUnpacker")<<
"lazy unpacker created with a max of: "
19 LogDebug(
"EcalRawToRecHit|LazyUnpacker")<<
"filling for index: "<<
i;
21 std::map<uint32_t, std::auto_ptr<EcalRecHitCollection> > ::iterator
f=
cachedRecHits.find(i);
23 LogDebug(
"EcalRawToRecHit|LazyUnpacker")<<
"needs to be unpacked.";
26 LogDebug(
"EcalRawToRecHit|LazyUnpacker")<<
"calling the worker to work on that index: "<<
i;
27 std::auto_ptr< EcalRecHitCollection > rechits =
worker_->
work(i, *
raw_);
29 LogDebug(
"EcalRawToRecHit|LazyUnpacker")<<
"inserting: "<<rechits->size() <<
" rechit(s) in the record.";
30 rec.insert(rec.end(), rechits->begin(), rechits->end());
virtual std::auto_ptr< EcalRecHitCollection > work(const uint32_t &i, const FEDRawDataCollection &) const
virtual void fill(const uint32_t &, record_type &)
std::vector< EcalRecHit > record_type
const FEDRawDataCollection * raw_
EcalRawToRecHitLazyUnpacker(const EcalRegionCabling &cable, const EcalUnpackerWorkerBase &worker, const FEDRawDataCollection &fedcollection)
std::map< uint32_t, std::auto_ptr< EcalRecHitCollection > > cachedRecHits
virtual ~EcalRawToRecHitLazyUnpacker()
const EcalUnpackerWorkerBase * worker_