CMS 3D CMS Logo

HLTHFRecoEcalCandidateProducer.cc
Go to the documentation of this file.
1 
9 #include <iostream>
10 #include <vector>
11 #include <memory>
12 
13 // Framework
20 //
26 
30 
32  hfclusters_(conf.getParameter<edm::InputTag>("hfclusters")),
33  HFDBversion_(conf.existsAs<bool>("HFDBversion") ? conf.getParameter<int>("HFDBversion"):99),//do nothing
34  HFDBvector_(conf.existsAs<bool>("HFDBvector") ? conf.getParameter<std::vector<double> >("HFDBvector"):std::vector<double>{}),
35  Cut2D_(conf.getParameter<double>("intercept2DCut")),
36  defaultSlope2D_((Cut2D_<=0.83)?(0.475):((Cut2D_>0.83 && Cut2D_<=0.9)?(0.275):(0.2))),//fix for hlt unable to add slope variable now
38  algo_(conf.existsAs<bool>("Correct") ? conf.getParameter<bool>("Correct") :true,
39  conf.getParameter<double>("e9e25Cut"),
40  conf.getParameter<double>("intercept2DCut"),
41  conf.existsAs<bool>("intercept2DSlope") ? conf.getParameter<double>("intercept2DSlope") : defaultSlope2D_,
42  conf.getParameter<std::vector<double> >("e1e9Cut"),
43  conf.getParameter<std::vector<double> >("eCOREe9Cut"),
44  conf.getParameter<std::vector<double> >("eSeLCut"),
45  hfvars_
46 ) {
47 
48  produces<reco::RecoEcalCandidateCollection>();
49 
50 }
51 
53 
54 
57 
58  e.getByLabel(hfclusters_,super_clus);
59  e.getByLabel(hfclusters_,hf_assoc);
60 
61  int nvertex = 1;
62 
63  // create return data
64  auto retdata1 = std::make_unique<reco::RecoEcalCandidateCollection>();
65 
66 
67  algo_.produce(super_clus,*hf_assoc,*retdata1,nvertex);
68 
69  e.put(std::move(retdata1));
70 
71 }
72 
73 
74 
75 
76 
77 
78 
79 
80 
81 
82 
83 
HLTHFRecoEcalCandidateProducer(edm::ParameterSet const &conf)
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:137
void produce(const edm::Handle< reco::SuperClusterCollection > &SuperClusters, const reco::HFEMClusterShapeAssociationCollection &AssocShapes, reco::RecoEcalCandidateCollection &RecoECand, int nvtx) const
void produce(edm::StreamID, edm::Event &, edm::EventSetup const &) const override
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:535
HLT enums.
def move(src, dest)
Definition: eostools.py:511