◆ HFRecoEcalCandidateProducer()
HFRecoEcalCandidateProducer::HFRecoEcalCandidateProducer |
( |
edm::ParameterSet const & |
conf | ) |
|
|
explicit |
Definition at line 52 of file HFRecoEcalCandidateProducer.cc.
References edm::ParameterSet::existsAs(), edm::ParameterSet::getParameter(), HLT_2022v12_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_
◆ produce()
Definition at line 85 of file HFRecoEcalCandidateProducer.cc.
References algo_, MillePedeFileConverter_cfg::e, hfclustersHFEM_, hfclustersSC_, HFDBversion_, commonCuts_cff::maxAbsZ, commonCuts_cff::maxd0, eostools::move(), HFRecoEcalCandidateAlgo::produce(), edm::Handle< T >::product(), AlignmentTracksFromVertexSelector_cfi::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);
edm::EDGetToken vertices_
void produce(const edm::Handle< reco::SuperClusterCollection > &SuperClusters, const reco::HFEMClusterShapeAssociationCollection &AssocShapes, reco::RecoEcalCandidateCollection &RecoECand, int nvtx) const
T const * product() const
std::vector< Vertex > VertexCollection
collection of Vertex objects
HFRecoEcalCandidateAlgo algo_
edm::EDGetToken hfclustersHFEM_
edm::EDGetToken hfclustersSC_
◆ 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_