CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
HFRecoEcalCandidateProducer Class Reference

#include <HFRecoEcalCandidateProducer.h>

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

Public Member Functions

 HFRecoEcalCandidateProducer (edm::ParameterSet const &conf)
 
virtual void produce (edm::Event &e, edm::EventSetup const &iSetup)
 
- Public Member Functions inherited from edm::EDProducer
 EDProducer ()
 
virtual ~EDProducer ()
 
- Public Member Functions inherited from edm::ProducerBase
 ProducerBase ()
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
boost::function< void(const
BranchDescription &)> 
registrationCallback () const
 used by the fwk to register list of products More...
 
virtual ~ProducerBase ()
 

Private Attributes

HFRecoEcalCandidateAlgo algo_
 
edm::InputTag hfclusters_
 

Additional Inherited Members

- Public Types inherited from edm::EDProducer
typedef EDProducer ModuleType
 
typedef WorkerT< EDProducerWorkerType
 
- Public Types inherited from edm::ProducerBase
typedef
ProductRegistryHelper::TypeLabelList 
TypeLabelList
 
- Static Public Member Functions inherited from edm::EDProducer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::EDProducer
CurrentProcessingContext const * currentContext () const
 
- Protected Member Functions inherited from edm::ProducerBase
template<class TProducer , class TMethod >
void callWhenNewProductsRegistered (TProducer *iProd, TMethod iMethod)
 

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.

30  :
31  hfclusters_(conf.getParameter<edm::InputTag>("hfclusters")),
32  algo_(conf.getParameter<bool>("Correct"),
33  conf.getParameter<double>("e9e25Cut"),
34  conf.getParameter<double>("intercept2DCut"),
35  conf.getParameter<std::vector<double> >("e1e9Cut"),
36  conf.getParameter<std::vector<double> >("eCOREe9Cut"),
37  conf.getParameter<std::vector<double> >("eSeLCut")) {
38 
39  produces<reco::RecoEcalCandidateCollection>();
40 
41 }
tuple conf
Definition: dbtoconf.py:185

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

43  {
44 
45 
48 
49  e.getByLabel(hfclusters_,super_clus);
50  e.getByLabel(hfclusters_,hf_assoc);
51 
52 
53 
54  // create return data
55  std::auto_ptr<reco::RecoEcalCandidateCollection> retdata1(new reco::RecoEcalCandidateCollection());
56 
57 
58  algo_.produce(super_clus,*hf_assoc,*retdata1);
59 
60  e.put(retdata1);
61 
62 }
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Definition: Event.h:85
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:356
std::vector< RecoEcalCandidate > RecoEcalCandidateCollection
collectin of RecoEcalCandidate objects
void produce(const edm::Handle< reco::SuperClusterCollection > &SuperClusters, const reco::HFEMClusterShapeAssociationCollection &AssocShapes, reco::RecoEcalCandidateCollection &RecoECand)

Member Data Documentation

HFRecoEcalCandidateAlgo HFRecoEcalCandidateProducer::algo_
private

Definition at line 30 of file HFRecoEcalCandidateProducer.h.

Referenced by produce().

edm::InputTag HFRecoEcalCandidateProducer::hfclusters_
private

Definition at line 29 of file HFRecoEcalCandidateProducer.h.

Referenced by produce().