CMS 3D CMS Logo

Public Member Functions | Private Attributes

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 13 of file HcalLaserReco.cc.


Constructor & Destructor Documentation

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

Definition at line 23 of file HcalLaserReco.cc.

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

Definition at line 31 of file HcalLaserReco.cc.

{ }  

Member Function Documentation

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

Implements edm::EDProducer.

Definition at line 34 of file HcalLaserReco.cc.

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

{
  // Step A: Get Inputs 
  edm::Handle<FEDRawDataCollection> rawraw;  
  //    edm::ProcessNameSelector s("PROD"); // HACK!
  e.getByType(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 19 of file HcalLaserReco.cc.

Referenced by produce().

Definition at line 20 of file HcalLaserReco.cc.

Referenced by produce().