32 defaultDB_(std::vector<double>()),
33 hfclusters_(conf.getParameter<edm::InputTag>(
"hfclusters")),
34 vertices_(conf.existsAs<edm::InputTag>(
"VertexCollection") ? conf.getParameter<edm::InputTag>(
"VertexCollection"):(edm::InputTag)
"offlinePrimaryVertices"),
35 HFDBversion_(conf.existsAs<int>(
"HFDBversion") ? conf.getParameter<int>(
"HFDBversion"):99),
36 HFDBvector_(conf.existsAs<std::vector<double> >(
"HFDBvector") ? conf.getParameter<std::vector<double> >(
"HFDBvector"):defaultDB_),
38 Cut2D_(conf.getParameter<double>(
"intercept2DCut")),
39 defaultSlope2D_((Cut2D_<=0.83)?(0.475):((Cut2D_>0.83 && Cut2D_<=0.9)?(0.275):(0.2))),
40 hfvars_(HFDBversion_,HFDBvector_),
41 algo_(conf.existsAs<bool>(
"Correct") ? conf.getParameter<bool>(
"Correct") :
true,
42 conf.getParameter<double>(
"e9e25Cut"),
43 conf.getParameter<double>(
"intercept2DCut"),
44 conf.existsAs<double>(
"intercept2DSlope") ? conf.getParameter<double>(
"intercept2DSlope") : defaultSlope2D_,
45 conf.getParameter<std::vector<double> >(
"e1e9Cut"),
46 conf.getParameter<std::vector<double> >(
"eCOREe9Cut"),
47 conf.getParameter<std::vector<double> >(
"eSeLCut"),
51 produces<reco::RecoEcalCandidateCollection>();
69 static const int minNDOF = 4;
70 static const double maxAbsZ = 15.0;
71 static const double maxd0 = 2.0;
75 for(reco::VertexCollection::const_iterator vit = vertices.begin(); vit != vertices.end(); ++vit){
76 if(vit->ndof() > minNDOF && ((maxAbsZ <= 0) || fabs(vit->z()) <= maxAbsZ) && ((maxd0 <= 0) || fabs(vit->position().rho()) <= maxd0))
HFRecoEcalCandidateProducer(edm::ParameterSet const &conf)
std::vector< Vertex > VertexCollection
collection of Vertex objects
HFRecoEcalCandidateAlgo algo_
edm::InputTag hfclusters_
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
void produce(const edm::Handle< reco::SuperClusterCollection > &SuperClusters, const reco::HFEMClusterShapeAssociationCollection &AssocShapes, reco::RecoEcalCandidateCollection &RecoECand, int nvtx)
T const * product() const
std::vector< RecoEcalCandidate > RecoEcalCandidateCollection
collectin of RecoEcalCandidate objects
virtual void produce(edm::Event &e, edm::EventSetup const &iSetup)