CMS 3D CMS Logo

ConfigurableTrimmedKalmanFinder.cc
Go to the documentation of this file.
3 
4 namespace {
5  edm::ParameterSet mydefaults() {
7  ret.addParameter<double>("ptcut", 0.);
8  ret.addParameter<double>("trkcutpv", 0.05);
9  ret.addParameter<double>("trkcutsv", 0.01);
10  ret.addParameter<double>("vtxcut", 0.01);
11  return ret;
12  }
13 } // namespace
14 
16 
18  if (theRector)
19  delete theRector;
21  m.augment(mydefaults());
23  tmp->setPtCut(m.getParameter<double>("ptcut"));
24  tmp->setTrackCompatibilityCut(m.getParameter<double>("trkcutpv"));
25  tmp->setTrackCompatibilityToSV(m.getParameter<double>("trkcutsv"));
26  tmp->setVertexFitProbabilityCut(m.getParameter<double>("vtxcut"));
27  theRector = tmp;
28 }
29 
31  if (theRector)
32  delete theRector;
33 }
34 
36  : theRector(o.theRector->clone()) {}
37 
39  return new ConfigurableTrimmedKalmanFinder(*this);
40 }
41 
42 std::vector<TransientVertex> ConfigurableTrimmedKalmanFinder::vertices(const std::vector<reco::TransientTrack>& t,
43  const reco::BeamSpot& s) const {
44  return theRector->vertices(t, s);
45 }
46 
47 std::vector<TransientVertex> ConfigurableTrimmedKalmanFinder::vertices(const std::vector<reco::TransientTrack>& prims,
48  const std::vector<reco::TransientTrack>& secs,
49  const reco::BeamSpot& s) const {
50  return theRector->vertices(prims, secs, s);
51 }
52 
53 std::vector<TransientVertex> ConfigurableTrimmedKalmanFinder::vertices(
54  const std::vector<reco::TransientTrack>& t) const {
55  return theRector->vertices(t);
56 }
57 
59 
61 
62 namespace {
63  const ConfRecoBuilder<ConfigurableTrimmedKalmanFinder> t("tkf", "Trimmed Kalman Vertex Finder");
64 }
void configure(const edm::ParameterSet &) override
ret
prodAgent to be discontinued
virtual std::vector< TransientVertex > vertices(const std::vector< reco::TransientTrack > &) const =0
edm::ParameterSet defaults() const override
ConfigurableTrimmedKalmanFinder * clone() const override
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)
Definition: eve_macros.cc:135
tmp
align.sh
Definition: createJobs.py:716
std::vector< TransientVertex > vertices(const std::vector< reco::TransientTrack > &t) const override