HFRecoEcalCandidateProducer::HFRecoEcalCandidateProducer |
( |
edm::ParameterSet const & |
conf | ) |
|
|
explicit |
Definition at line 52 of file HFRecoEcalCandidateProducer.cc.
References edm::ParameterSet::existsAs(), edm::ParameterSet::getParameter(), HLT_FULL_cff::InputTag, and vertices_.
56 consumes<reco::HFEMClusterShapeAssociationCollection>(conf.getParameter<
edm::InputTag>(
"hfclusters"))),
58 HFDBversion_(conf.existsAs<
int>(
"HFDBversion") ? conf.getParameter<
int>(
"HFDBversion") : 99),
59 HFDBvector_(conf.existsAs<std::vector<double> >(
"HFDBvector")
60 ? conf.getParameter<std::vector<double> >(
"HFDBvector")
63 Cut2D_(conf.getParameter<
double>(
"intercept2DCut")),
69 algo_(conf.existsAs<
bool>(
"Correct") ? conf.getParameter<
bool>(
"Correct") :
true,
70 conf.getParameter<
double>(
"e9e25Cut"),
71 conf.getParameter<
double>(
"intercept2DCut"),
72 conf.existsAs<
double>(
"intercept2DSlope") ? conf.getParameter<
double>(
"intercept2DSlope") :
defaultSlope2D_,
73 conf.getParameter<std::vector<double> >(
"e1e9Cut"),
74 conf.getParameter<std::vector<double> >(
"eCOREe9Cut"),
75 conf.getParameter<std::vector<double> >(
"eSeLCut"),
82 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 85 of file HFRecoEcalCandidateProducer.cc.
References algo_, edm::Event::getByToken(), hfclustersHFEM_, hfclustersSC_, HFDBversion_, GoodVertex_cfg::maxAbsZ, GoodVertex_cfg::maxd0, eostools::move(), HFRecoEcalCandidateAlgo::produce(), edm::Handle< T >::product(), edm::Event::put(), beam_dqm_sourceclient-live_cfg::vertices, and vertices_.
97 static const int minNDOF = 4;
98 static const double maxAbsZ = 15.0;
99 static const double maxd0 = 2.0;
103 for (reco::VertexCollection::const_iterator vit = vertices.begin(); vit != vertices.end(); ++vit) {
104 if (vit->ndof() > minNDOF && ((maxAbsZ <= 0) || fabs(vit->z()) <= maxAbsZ) &&
105 ((maxd0 <= 0) || fabs(vit->position().rho()) <= maxd0))
113 auto retdata1 = std::make_unique<reco::RecoEcalCandidateCollection>();
115 algo_.
produce(super_clus, *hf_assoc, *retdata1, nvertex);
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetToken vertices_
void produce(const edm::Handle< reco::SuperClusterCollection > &SuperClusters, const reco::HFEMClusterShapeAssociationCollection &AssocShapes, reco::RecoEcalCandidateCollection &RecoECand, int nvtx) const
std::vector< Vertex > VertexCollection
collection of Vertex objects
HFRecoEcalCandidateAlgo algo_
T const * product() const
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 |