#include <RecoEgamma/EgammaHFProducers/plugins/HFRecoEcalCandidateProducer.h>
Public Member Functions | |
HFRecoEcalCandidateProducer (edm::ParameterSet const &conf) | |
virtual void | produce (edm::Event &e, edm::EventSetup const &iSetup) |
Private Attributes | |
HFRecoEcalCandidateAlgo | algo_ |
edm::InputTag | hfclusters_ |
Definition at line 24 of file HFRecoEcalCandidateProducer.h.
HFRecoEcalCandidateProducer::HFRecoEcalCandidateProducer | ( | edm::ParameterSet const & | conf | ) | [explicit] |
Definition at line 30 of file HFRecoEcalCandidateProducer.cc.
00030 : 00031 hfclusters_(conf.getUntrackedParameter<edm::InputTag>("hfclusters")), 00032 algo_(conf.getParameter<bool>("Correct"),conf.getParameter<double>("e9e25Cut"),conf.getParameter<double>("intercept2DCut")){ 00033 00034 produces<reco::RecoEcalCandidateCollection>(); 00035 00036 }
void HFRecoEcalCandidateProducer::produce | ( | edm::Event & | e, | |
edm::EventSetup const & | iSetup | |||
) | [virtual] |
Implements edm::EDProducer.
Definition at line 38 of file HFRecoEcalCandidateProducer.cc.
References algo_, edm::Event::getByLabel(), hfclusters_, HFRecoEcalCandidateAlgo::produce(), and edm::Event::put().
00038 { 00039 00040 00041 edm::Handle<reco::SuperClusterCollection> super_clus; 00042 edm::Handle<reco::HFEMClusterShapeAssociationCollection> hf_assoc; 00043 00044 e.getByLabel(hfclusters_,super_clus); 00045 e.getByLabel(hfclusters_,hf_assoc); 00046 00047 00048 00049 // create return data 00050 std::auto_ptr<reco::RecoEcalCandidateCollection> retdata1(new reco::RecoEcalCandidateCollection()); 00051 00052 00053 algo_.produce(super_clus,*hf_assoc,*retdata1); 00054 00055 e.put(retdata1); 00056 00057 }