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 14 of file HcalLaserReco.cc.
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] |
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 }
int HcalLaserReco::qdctdcFed_ [private] |
HcalLaserUnpacker HcalLaserReco::unpacker_ [private] |