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 }
runTheMatrix.ret
ret
prodAgent to be discontinued
Definition: runTheMatrix.py:355
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
ConfigurableTrimmedKalmanFinder::clone
ConfigurableTrimmedKalmanFinder * clone() const override
Definition: ConfigurableTrimmedKalmanFinder.cc:38
createJobs.tmp
tmp
align.sh
Definition: createJobs.py:716
ConfigurableTrimmedKalmanFinder::~ConfigurableTrimmedKalmanFinder
~ConfigurableTrimmedKalmanFinder() override
Definition: ConfigurableTrimmedKalmanFinder.cc:30
EcalTangentSkim_cfg.o
o
Definition: EcalTangentSkim_cfg.py:36
alignCSCRings.s
s
Definition: alignCSCRings.py:92
clone
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)
Definition: eve_macros.cc:135
visualization-live-secondInstance_cfg.m
m
Definition: visualization-live-secondInstance_cfg.py:72
reco::BeamSpot
Definition: BeamSpot.h:21
ConfigurableTrimmedKalmanFinder::theRector
const VertexReconstructor * theRector
Definition: ConfigurableTrimmedKalmanFinder.h:26
OrderedSet.t
t
Definition: OrderedSet.py:90
ConfigurableTrimmedKalmanFinder.h
edm::ParameterSet
Definition: ParameterSet.h:36
ConfigurableTrimmedKalmanFinder::configure
void configure(const edm::ParameterSet &) override
Definition: ConfigurableTrimmedKalmanFinder.cc:17
ConfigurableTrimmedKalmanFinder::ConfigurableTrimmedKalmanFinder
ConfigurableTrimmedKalmanFinder()
Definition: ConfigurableTrimmedKalmanFinder.cc:15
VertexReconstructor::vertices
virtual std::vector< TransientVertex > vertices(const std::vector< reco::TransientTrack > &) const =0
ConfigurableTrimmedKalmanFinder::vertices
std::vector< TransientVertex > vertices(const std::vector< reco::TransientTrack > &t) const override
Definition: ConfigurableTrimmedKalmanFinder.cc:53
ConfigurableTrimmedKalmanFinder::defaults
edm::ParameterSet defaults() const override
Definition: ConfigurableTrimmedKalmanFinder.cc:58
ConfRecoBuilder.h
ConfigurableTrimmedKalmanFinder
Definition: ConfigurableTrimmedKalmanFinder.h:10
KalmanTrimmedVertexFinder.h
ConfRecoBuilder
Definition: ConfRecoBuilder.h:11
KalmanTrimmedVertexFinder
Definition: KalmanTrimmedVertexFinder.h:13