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
HLTHFRecoEcalCandidateProducer Class Reference

#include <HLTHFRecoEcalCandidateProducer.h>

Inheritance diagram for HLTHFRecoEcalCandidateProducer:
edm::EDProducer edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

 HLTHFRecoEcalCandidateProducer (edm::ParameterSet const &conf)
 
virtual void produce (edm::Event &e, edm::EventSetup const &iSetup)
 
- Public Member Functions inherited from edm::EDProducer
 EDProducer ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDProducer ()
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 ProducerBase ()
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription
const &)> 
registrationCallback () const
 used by the fwk to register list of products More...
 
virtual ~ProducerBase ()
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Private Attributes

HFRecoEcalCandidateAlgo algo_
 
double Cut2D_
 
double defaultSlope2D_
 
bool doPU_
 
edm::InputTag hfclusters_
 
std::vector< double > HFDBvector_
 
int HFDBversion_
 
reco::HFValueStruct hfvars_
 
edm::InputTag vertices_
 

Additional Inherited Members

- Public Types inherited from edm::EDProducer
typedef EDProducer ModuleType
 
- Public Types inherited from edm::ProducerBase
typedef
ProductRegistryHelper::TypeLabelList 
TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- 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::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Detailed Description

Definition at line 24 of file HLTHFRecoEcalCandidateProducer.h.

Constructor & Destructor Documentation

HLTHFRecoEcalCandidateProducer::HLTHFRecoEcalCandidateProducer ( edm::ParameterSet const &  conf)
explicit

Definition at line 31 of file HLTHFRecoEcalCandidateProducer.cc.

31  :
32  hfclusters_(conf.getParameter<edm::InputTag>("hfclusters")),
33  HFDBversion_(conf.existsAs<bool>("HFDBversion") ? conf.getParameter<int>("HFDBversion"):99),//do nothing
34  HFDBvector_(conf.existsAs<bool>("HFDBvector") ? conf.getParameter<std::vector<double> >("HFDBvector"):std::vector<double>{}),
tuple conf
Definition: dbtoconf.py:185

Member Function Documentation

void HLTHFRecoEcalCandidateProducer::produce ( edm::Event e,
edm::EventSetup const &  iSetup 
)
virtual

Implements edm::EDProducer.

Definition at line 52 of file HLTHFRecoEcalCandidateProducer.cc.

References algo_, edm::Event::getByLabel(), hfclusters_, HFRecoEcalCandidateAlgo::produce(), and edm::Event::put().

52  {
53 
54 
57 
58  e.getByLabel(hfclusters_,super_clus);
59  e.getByLabel(hfclusters_,hf_assoc);
60 
61  int nvertex = 1;
62 
63  // create return data
64  std::auto_ptr<reco::RecoEcalCandidateCollection> retdata1(new reco::RecoEcalCandidateCollection());
65 
66 
67  algo_.produce(super_clus,*hf_assoc,*retdata1,nvertex);
68 
69  e.put(retdata1);
70 
71 }
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Definition: Event.h:115
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:413
void produce(const edm::Handle< reco::SuperClusterCollection > &SuperClusters, const reco::HFEMClusterShapeAssociationCollection &AssocShapes, reco::RecoEcalCandidateCollection &RecoECand, int nvtx)
std::vector< RecoEcalCandidate > RecoEcalCandidateCollection
collectin of RecoEcalCandidate objects

Member Data Documentation

HFRecoEcalCandidateAlgo HLTHFRecoEcalCandidateProducer::algo_
private

Definition at line 36 of file HLTHFRecoEcalCandidateProducer.h.

Referenced by produce().

double HLTHFRecoEcalCandidateProducer::Cut2D_
private

Definition at line 33 of file HLTHFRecoEcalCandidateProducer.h.

double HLTHFRecoEcalCandidateProducer::defaultSlope2D_
private

Definition at line 34 of file HLTHFRecoEcalCandidateProducer.h.

bool HLTHFRecoEcalCandidateProducer::doPU_
private

Definition at line 32 of file HLTHFRecoEcalCandidateProducer.h.

edm::InputTag HLTHFRecoEcalCandidateProducer::hfclusters_
private

Definition at line 29 of file HLTHFRecoEcalCandidateProducer.h.

Referenced by produce().

std::vector<double> HLTHFRecoEcalCandidateProducer::HFDBvector_
private

Definition at line 31 of file HLTHFRecoEcalCandidateProducer.h.

int HLTHFRecoEcalCandidateProducer::HFDBversion_
private

Definition at line 30 of file HLTHFRecoEcalCandidateProducer.h.

reco::HFValueStruct HLTHFRecoEcalCandidateProducer::hfvars_
private

Definition at line 35 of file HLTHFRecoEcalCandidateProducer.h.

edm::InputTag HLTHFRecoEcalCandidateProducer::vertices_
private

Definition at line 29 of file HLTHFRecoEcalCandidateProducer.h.