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