#include <HFRecoEcalCandidateProducer.h>
◆ HFRecoEcalCandidateProducer()
HFRecoEcalCandidateProducer::HFRecoEcalCandidateProducer |
( |
edm::ParameterSet const & |
conf | ) |
|
|
explicit |
Definition at line 31 of file HFRecoEcalCandidateProducer.cc.
35 consumes<reco::HFEMClusterShapeAssociationCollection>(conf.getParameter<
edm::InputTag>(
"hfclusters"))),
37 HFDBversion_(conf.existsAs<
int>(
"HFDBversion") ? conf.getParameter<
int>(
"HFDBversion") : 99),
38 HFDBvector_(conf.existsAs<std::vector<double> >(
"HFDBvector")
39 ? conf.getParameter<std::vector<double> >(
"HFDBvector")
42 Cut2D_(conf.getParameter<
double>(
"intercept2DCut")),
48 algo_(conf.existsAs<
bool>(
"Correct") ? conf.getParameter<
bool>(
"Correct") :
true,
49 conf.getParameter<
double>(
"e9e25Cut"),
50 conf.getParameter<
double>(
"intercept2DCut"),
51 conf.existsAs<
double>(
"intercept2DSlope") ? conf.getParameter<
double>(
"intercept2DSlope") :
defaultSlope2D_,
52 conf.getParameter<std::vector<double> >(
"e1e9Cut"),
53 conf.getParameter<std::vector<double> >(
"eCOREe9Cut"),
54 conf.getParameter<std::vector<double> >(
"eSeLCut"),
61 produces<reco::RecoEcalCandidateCollection>();
References edm::ParameterSet::existsAs(), edm::ParameterSet::getParameter(), and vertices_.
◆ produce()
Definition at line 64 of file HFRecoEcalCandidateProducer.cc.
76 static const int minNDOF = 4;
77 static const double maxAbsZ = 15.0;
78 static const double maxd0 = 2.0;
82 for (reco::VertexCollection::const_iterator vit =
vertices.begin(); vit !=
vertices.end(); ++vit) {
83 if (vit->ndof() > minNDOF && ((
maxAbsZ <= 0) || fabs(vit->z()) <=
maxAbsZ) &&
84 ((
maxd0 <= 0) || fabs(vit->position().rho()) <=
maxd0))
92 auto retdata1 = std::make_unique<reco::RecoEcalCandidateCollection>();
94 algo_.
produce(super_clus, *hf_assoc, *retdata1, nvertex);
References algo_, MillePedeFileConverter_cfg::e, hfclustersHFEM_, hfclustersSC_, HFDBversion_, commonCuts_cff::maxAbsZ, commonCuts_cff::maxd0, eostools::move(), HFRecoEcalCandidateAlgo::produce(), edm::Handle< T >::product(), pwdgSkimBPark_cfi::vertices, and vertices_.
◆ algo_
◆ Cut2D_
double HFRecoEcalCandidateProducer::Cut2D_ |
|
private |
◆ defaultDB_
std::vector<double> HFRecoEcalCandidateProducer::defaultDB_ |
|
private |
◆ defaultSlope2D_
double HFRecoEcalCandidateProducer::defaultSlope2D_ |
|
private |
◆ doPU_
bool HFRecoEcalCandidateProducer::doPU_ |
|
private |
◆ hfclustersHFEM_
◆ hfclustersSC_
◆ HFDBvector_
std::vector<double> HFRecoEcalCandidateProducer::HFDBvector_ |
|
private |
◆ HFDBversion_
int HFRecoEcalCandidateProducer::HFDBversion_ |
|
private |
◆ hfvars_
◆ vertices_