CMS 3D CMS Logo

Public Member Functions | Private Attributes

HFRecoEcalCandidateProducer Class Reference

#include <HFRecoEcalCandidateProducer.h>

Inheritance diagram for HFRecoEcalCandidateProducer:
edm::EDProducer edm::ProducerBase edm::ProductRegistryHelper

List of all members.

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_

Detailed Description

Definition at line 24 of file HFRecoEcalCandidateProducer.h.


Constructor & Destructor Documentation

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>();

} 

Member Function Documentation

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);

}

Member Data Documentation

Definition at line 30 of file HFRecoEcalCandidateProducer.h.

Referenced by produce().

Definition at line 29 of file HFRecoEcalCandidateProducer.h.

Referenced by produce().