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_ |
Definition at line 13 of file HcalLaserReco.cc.
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.
{ }
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); }
int HcalLaserReco::qdctdcFed_ [private] |
Definition at line 19 of file HcalLaserReco.cc.
Referenced by produce().
HcalLaserUnpacker HcalLaserReco::unpacker_ [private] |
Definition at line 20 of file HcalLaserReco.cc.
Referenced by produce().