#include <HFRecoEcalCandidateProducer.h>
HFRecoEcalCandidateProducer::HFRecoEcalCandidateProducer |
( |
edm::ParameterSet const & |
conf | ) |
|
|
explicit |
Definition at line 31 of file HFRecoEcalCandidateProducer.cc.
References edm::ParameterSet::existsAs(), edm::ParameterSet::getParameter(), and vertices_.
36 HFDBversion_(conf.existsAs<
int>(
"HFDBversion") ? conf.getParameter<
int>(
"HFDBversion"):99),
37 HFDBvector_(conf.existsAs<std::vector<double> >(
"HFDBvector") ? conf.getParameter<std::vector<double> >(
"HFDBvector"):
defaultDB_),
39 Cut2D_(conf.getParameter<
double>(
"intercept2DCut")),
42 algo_(conf.existsAs<
bool>(
"Correct") ? conf.getParameter<
bool>(
"Correct") :
true,
43 conf.getParameter<
double>(
"e9e25Cut"),
44 conf.getParameter<
double>(
"intercept2DCut"),
45 conf.existsAs<
double>(
"intercept2DSlope") ? conf.getParameter<
double>(
"intercept2DSlope") :
defaultSlope2D_,
46 conf.getParameter<std::vector<double> >(
"e1e9Cut"),
47 conf.getParameter<std::vector<double> >(
"eCOREe9Cut"),
48 conf.getParameter<std::vector<double> >(
"eSeLCut"),
55 produces<reco::RecoEcalCandidateCollection>();
edm::EDGetToken vertices_
HFRecoEcalCandidateAlgo algo_
reco::HFValueStruct hfvars_
std::vector< double > defaultDB_
std::vector< double > HFDBvector_
edm::EDGetToken hfclustersHFEM_
edm::EDGetToken hfclustersSC_
Definition at line 59 of file HFRecoEcalCandidateProducer.cc.
References algo_, edm::Event::getByToken(), hfclustersHFEM_, hfclustersSC_, HFDBversion_, primaryVertexFilter_cfi::maxAbsZ, primaryVertexFilter_cfi::maxd0, eostools::move(), HFRecoEcalCandidateAlgo::produce(), edm::Handle< T >::product(), edm::Event::put(), electrons_cff::vertices, and vertices_.
73 static const int minNDOF = 4;
74 static const double maxAbsZ = 15.0;
75 static const double maxd0 = 2.0;
79 for(reco::VertexCollection::const_iterator vit = vertices.begin(); vit != vertices.end(); ++vit){
80 if(vit->ndof() > minNDOF && ((maxAbsZ <= 0) || fabs(vit->z()) <= maxAbsZ) && ((maxd0 <= 0) || fabs(vit->position().rho()) <= maxd0))
90 auto retdata1 = std::make_unique<reco::RecoEcalCandidateCollection>();
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetToken vertices_
std::vector< Vertex > VertexCollection
collection of Vertex objects
HFRecoEcalCandidateAlgo algo_
T const * product() const
void produce(const edm::Handle< reco::SuperClusterCollection > &SuperClusters, const reco::HFEMClusterShapeAssociationCollection &AssocShapes, reco::RecoEcalCandidateCollection &RecoECand, int nvtx)
edm::EDGetToken hfclustersHFEM_
edm::EDGetToken hfclustersSC_
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 |