#include <HFRecoEcalCandidateProducer.h>
HFRecoEcalCandidateProducer::HFRecoEcalCandidateProducer |
( |
edm::ParameterSet const & |
conf | ) |
|
|
explicit |
Definition at line 31 of file HFRecoEcalCandidateProducer.cc.
38 Cut2D_(
conf.getParameter<
double>(
"intercept2DCut")),
41 algo_(
conf.existsAs<
bool>(
"Correct") ?
conf.getParameter<
bool>(
"Correct") :
true,
42 conf.getParameter<
double>(
"e9e25Cut"),
43 conf.getParameter<
double>(
"intercept2DCut"),
45 conf.getParameter<std::vector<double> >(
"e1e9Cut"),
46 conf.getParameter<std::vector<double> >(
"eCOREe9Cut"),
47 conf.getParameter<std::vector<double> >(
"eSeLCut"),
51 produces<reco::RecoEcalCandidateCollection>();
HFRecoEcalCandidateAlgo algo_
reco::HFValueStruct hfvars_
edm::InputTag hfclusters_
std::vector< double > defaultDB_
std::vector< double > HFDBvector_
Implements edm::EDProducer.
Definition at line 55 of file HFRecoEcalCandidateProducer.cc.
References algo_, edm::Event::getByLabel(), hfclusters_, HFDBversion_, GoodVertex_cfg::maxAbsZ, GoodVertex_cfg::maxd0, HFRecoEcalCandidateAlgo::produce(), edm::Handle< T >::product(), edm::Event::put(), and vertices_.
69 static const int minNDOF = 4;
70 static const double maxAbsZ = 15.0;
71 static const double maxd0 = 2.0;
75 for(reco::VertexCollection::const_iterator vit = vertices.begin(); vit != vertices.end(); ++vit){
76 if(vit->ndof() > minNDOF && ((maxAbsZ <= 0) || fabs(vit->z()) <= maxAbsZ) && ((maxd0 <= 0) || fabs(vit->position().rho()) <= maxd0))
std::vector< Vertex > VertexCollection
collection of Vertex objects
HFRecoEcalCandidateAlgo algo_
edm::InputTag hfclusters_
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
void produce(const edm::Handle< reco::SuperClusterCollection > &SuperClusters, const reco::HFEMClusterShapeAssociationCollection &AssocShapes, reco::RecoEcalCandidateCollection &RecoECand, int nvtx)
T const * product() const
std::vector< RecoEcalCandidate > RecoEcalCandidateCollection
collectin of RecoEcalCandidate objects
double HFRecoEcalCandidateProducer::Cut2D_ |
|
private |
std::vector<double> HFRecoEcalCandidateProducer::defaultDB_ |
|
private |
double HFRecoEcalCandidateProducer::defaultSlope2D_ |
|
private |
bool HFRecoEcalCandidateProducer::doPU_ |
|
private |
std::vector<double> HFRecoEcalCandidateProducer::HFDBvector_ |
|
private |
int HFRecoEcalCandidateProducer::HFDBversion_ |
|
private |