32 : defaultDB_(
std::vector<double>()),
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")),
46 : ((Cut2D_ > 0.83 && Cut2D_ <= 0.9) ? (0.275) : (0.2))),
47 hfvars_(HFDBversion_, HFDBvector_),
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>();
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);