CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EcalRawToRecHitLazyUnpacker.cc
Go to the documentation of this file.
2 
4 
6  const EcalUnpackerWorkerBase & worker,
7  const FEDRawDataCollection& fedcollection):
8  raw_(&fedcollection), cabling_(&cable), worker_(&worker)
9 {
10  LogDebug("EcalRawToRecHit|LazyUnpacker")<<"lazy unpacker created with a max of: "
12  <<" regions";
13 }
14 
16 }
17 
18 
19 void EcalRawToRecHitLazyUnpacker::fill(const uint32_t & i, record_type & rec){
20  LogDebug("EcalRawToRecHit|LazyUnpacker")<<"filling for index: "<<i;
21 
22  std::auto_ptr< EcalRecHitCollection > rechits = worker_->work(i, *raw_);
23 
24  LogDebug("EcalRawToRecHit|LazyUnpacker")<<"inserting: "<<rechits->size() <<" rechit(s) in the record.";
25 
26  rec.insert(rec.end(), rechits->begin(), rechits->end());
27 }
28 
#define LogDebug(id)
int i
Definition: DBlmapReader.cc:9
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
Definition: LazyGetter.h:217
const FEDRawDataCollection * raw_
EcalRawToRecHitLazyUnpacker(const EcalRegionCabling &cable, const EcalUnpackerWorkerBase &worker, const FEDRawDataCollection &fedcollection)
const EcalUnpackerWorkerBase * worker_