CMS 3D CMS Logo

HcalLaserReco Class Reference

Inheritance diagram for HcalLaserReco:

edm::EDProducer edm::ProducerBase edm::ProductRegistryHelper

List of all members.

Public Member Functions

 HcalLaserReco (const edm::ParameterSet &ps)
virtual void produce (edm::Event &e, const edm::EventSetup &c)
virtual ~HcalLaserReco ()

Private Attributes

int qdctdcFed_
HcalLaserUnpacker unpacker_


Detailed Description

Definition at line 14 of file HcalLaserReco.cc.


Constructor & Destructor Documentation

HcalLaserReco::HcalLaserReco ( const edm::ParameterSet ps  )  [explicit]

Definition at line 24 of file HcalLaserReco.cc.

00024                                                        :
00025   qdctdcFed_(conf.getUntrackedParameter<int>("QADCTDCFED",8))
00026 {
00027   
00028     produces<HcalLaserDigi>();
00029 }

HcalLaserReco::~HcalLaserReco (  )  [virtual]

Definition at line 32 of file HcalLaserReco.cc.

00032 { }  


Member Function Documentation

void HcalLaserReco::produce ( edm::Event e,
const edm::EventSetup c 
) [virtual]

Implements edm::EDProducer.

Definition at line 35 of file HcalLaserReco.cc.

References edm::Event::getByType(), edm::Event::put(), qdctdcFed_, HcalLaserUnpacker::unpack(), and unpacker_.

00036 {
00037   // Step A: Get Inputs 
00038   edm::Handle<FEDRawDataCollection> rawraw;  
00039   //    edm::ProcessNameSelector s("PROD"); // HACK!
00040   e.getByType(rawraw);           
00041   
00042   // Step B: Create empty output    
00043   std::auto_ptr<HcalLaserDigi>
00044     digi(new HcalLaserDigi);
00045     
00046   if (qdctdcFed_ >=0) {
00047     // Step C: unpack all requested FEDs
00048     const FEDRawData& fed = rawraw->FEDData(qdctdcFed_);
00049     unpacker_.unpack(fed,*digi);
00050   }
00051   
00052   // Step D: Put outputs into event
00053   e.put(digi);
00054 }


Member Data Documentation

int HcalLaserReco::qdctdcFed_ [private]

Definition at line 20 of file HcalLaserReco.cc.

Referenced by produce().

HcalLaserUnpacker HcalLaserReco::unpacker_ [private]

Definition at line 21 of file HcalLaserReco.cc.

Referenced by produce().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:23:44 2009 for CMSSW by  doxygen 1.5.4