CMS 3D CMS Logo

Public Member Functions | Private Attributes

HcalLaserReco Class Reference

Inheritance diagram for HcalLaserReco:
edm::EDProducer edm::ProducerBase edm::EDConsumerBase 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

edm::InputTag fedRawDataCollectionTag_
int qdctdcFed_
HcalLaserUnpacker unpacker_

Detailed Description

Definition at line 15 of file HcalLaserReco.cc.


Constructor & Destructor Documentation

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

Definition at line 26 of file HcalLaserReco.cc.

                                                       :
  qdctdcFed_(conf.getUntrackedParameter<int>("QADCTDCFED",8)),
  fedRawDataCollectionTag_(conf.getParameter<edm::InputTag>("fedRawDataCollectionTag"))
{
  
    produces<HcalLaserDigi>();
}
HcalLaserReco::~HcalLaserReco ( ) [virtual]

Definition at line 35 of file HcalLaserReco.cc.

{ }  

Member Function Documentation

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

Implements edm::EDProducer.

Definition at line 38 of file HcalLaserReco.cc.

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

{
  // Step A: Get Inputs 
  edm::Handle<FEDRawDataCollection> rawraw;
  e.getByLabel(fedRawDataCollectionTag_, rawraw);

  // Step B: Create empty output    
  std::auto_ptr<HcalLaserDigi>
    digi(new HcalLaserDigi);
    
  if (qdctdcFed_ >=0) {
    // Step C: unpack all requested FEDs
    const FEDRawData& fed = rawraw->FEDData(qdctdcFed_);
    unpacker_.unpack(fed,*digi);
  }
  
  // Step D: Put outputs into event
  e.put(digi);
}

Member Data Documentation

Definition at line 23 of file HcalLaserReco.cc.

Referenced by produce().

Definition at line 21 of file HcalLaserReco.cc.

Referenced by produce().

Definition at line 22 of file HcalLaserReco.cc.

Referenced by produce().