CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Attributes
EcalRawToRecHitLazyUnpacker Class Reference

#include <EcalRawToRecHitLazyUnpacker.h>

Inheritance diagram for EcalRawToRecHitLazyUnpacker:
edm::LazyUnpacker< EcalRecHit >

Public Types

typedef edm::LazyUnpacker
< EcalRecHit
Base
 
typedef edm::DetSet< EcalRecHitDetSet
 
- Public Types inherited from edm::LazyUnpacker< EcalRecHit >
typedef std::vector< EcalRecHitrecord_type
 

Public Member Functions

 EcalRawToRecHitLazyUnpacker (const EcalRegionCabling &cable, const EcalUnpackerWorkerBase &worker, const FEDRawDataCollection &fedcollection)
 
virtual void fill (const uint32_t &, record_type &)
 
virtual ~EcalRawToRecHitLazyUnpacker ()
 
- Public Member Functions inherited from edm::LazyUnpacker< EcalRecHit >
virtual ~LazyUnpacker ()
 

Private Attributes

const EcalRegionCablingcabling_
 
const FEDRawDataCollectionraw_
 
const EcalUnpackerWorkerBaseworker_
 

Detailed Description

Definition at line 12 of file EcalRawToRecHitLazyUnpacker.h.

Member Typedef Documentation

Definition at line 16 of file EcalRawToRecHitLazyUnpacker.h.

Definition at line 15 of file EcalRawToRecHitLazyUnpacker.h.

Constructor & Destructor Documentation

EcalRawToRecHitLazyUnpacker::EcalRawToRecHitLazyUnpacker ( const EcalRegionCabling cable,
const EcalUnpackerWorkerBase worker,
const FEDRawDataCollection fedcollection 
)

Definition at line 5 of file EcalRawToRecHitLazyUnpacker.cc.

References LogDebug, FEDNumbering::MAXECALFEDID, and FEDNumbering::MINECALFEDID.

7  :
8  raw_(&fedcollection), cabling_(&cable), worker_(&worker)
9 {
10  LogDebug("EcalRawToRecHit|LazyUnpacker")<<"lazy unpacker created with a max of: "
12  <<" regions";
13 }
#define LogDebug(id)
const EcalRegionCabling * cabling_
const FEDRawDataCollection * raw_
const EcalUnpackerWorkerBase * worker_
EcalRawToRecHitLazyUnpacker::~EcalRawToRecHitLazyUnpacker ( )
virtual

Definition at line 15 of file EcalRawToRecHitLazyUnpacker.cc.

15  {
16 }

Member Function Documentation

void EcalRawToRecHitLazyUnpacker::fill ( const uint32_t &  i,
record_type rec 
)
virtual

Implements edm::LazyUnpacker< EcalRecHit >.

Definition at line 19 of file EcalRawToRecHitLazyUnpacker.cc.

References i, LogDebug, raw_, HI_PhotonSkim_cff::rechits, EcalUnpackerWorkerBase::work(), and worker_.

19  {
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 }
#define LogDebug(id)
int i
Definition: DBlmapReader.cc:9
virtual std::auto_ptr< EcalRecHitCollection > work(const uint32_t &i, const FEDRawDataCollection &) const
const FEDRawDataCollection * raw_
const EcalUnpackerWorkerBase * worker_

Member Data Documentation

const EcalRegionCabling* EcalRawToRecHitLazyUnpacker::cabling_
private

Definition at line 31 of file EcalRawToRecHitLazyUnpacker.h.

const FEDRawDataCollection* EcalRawToRecHitLazyUnpacker::raw_
private

Definition at line 29 of file EcalRawToRecHitLazyUnpacker.h.

Referenced by fill().

const EcalUnpackerWorkerBase* EcalRawToRecHitLazyUnpacker::worker_
private

Definition at line 33 of file EcalRawToRecHitLazyUnpacker.h.

Referenced by fill().