#include <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.
: hfclusters_(conf.getParameter<edm::InputTag>("hfclusters")), algo_(conf.getParameter<bool>("Correct"), conf.getParameter<double>("e9e25Cut"), conf.getParameter<double>("intercept2DCut"), conf.getParameter<std::vector<double> >("e1e9Cut"), conf.getParameter<std::vector<double> >("eCOREe9Cut"), conf.getParameter<std::vector<double> >("eSeLCut")) { produces<reco::RecoEcalCandidateCollection>(); }
void HFRecoEcalCandidateProducer::produce | ( | edm::Event & | e, |
edm::EventSetup const & | iSetup | ||
) | [virtual] |
Implements edm::EDProducer.
Definition at line 43 of file HFRecoEcalCandidateProducer.cc.
References algo_, edm::Event::getByLabel(), hfclusters_, HFRecoEcalCandidateAlgo::produce(), and edm::Event::put().
{ edm::Handle<reco::SuperClusterCollection> super_clus; edm::Handle<reco::HFEMClusterShapeAssociationCollection> hf_assoc; e.getByLabel(hfclusters_,super_clus); e.getByLabel(hfclusters_,hf_assoc); // create return data std::auto_ptr<reco::RecoEcalCandidateCollection> retdata1(new reco::RecoEcalCandidateCollection()); algo_.produce(super_clus,*hf_assoc,*retdata1); e.put(retdata1); }
Definition at line 30 of file HFRecoEcalCandidateProducer.h.
Referenced by produce().
Definition at line 29 of file HFRecoEcalCandidateProducer.h.
Referenced by produce().