test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ConfigurableTrimmedKalmanFinder.cc
Go to the documentation of this file.
3 
4 namespace {
5  edm::ParameterSet mydefaults ()
6  {
8  ret.addParameter<double>("ptcut",0.);
9  ret.addParameter<double>("trkcutpv",0.05);
10  ret.addParameter<double>("trkcutsv",0.01);
11  ret.addParameter<double>("vtxcut",0.01);
12  return ret;
13  }
14 }
15 
17  theRector( new KalmanTrimmedVertexFinder() )
18 {}
19 
21  const edm::ParameterSet & n )
22 {
23  if ( theRector ) delete theRector;
25  m.augment ( mydefaults() );
27  tmp->setPtCut ( m.getParameter<double>("ptcut") );
28  tmp->setTrackCompatibilityCut ( m.getParameter<double>("trkcutpv") );
29  tmp->setTrackCompatibilityToSV ( m.getParameter<double>("trkcutsv") );
30  tmp->setVertexFitProbabilityCut ( m.getParameter<double>( "vtxcut" ) );
31  theRector = tmp;
32 }
33 
35 {
36  if ( theRector ) delete theRector;
37 }
38 
41  theRector ( o.theRector->clone() )
42 {}
43 
44 
46 {
47  return new ConfigurableTrimmedKalmanFinder ( *this );
48 }
49 
50 std::vector < TransientVertex > ConfigurableTrimmedKalmanFinder::vertices (
51  const std::vector < reco::TransientTrack > & t,
52  const reco::BeamSpot & s ) const
53 {
54  return theRector->vertices ( t, s );
55 }
56 
57 std::vector < TransientVertex > ConfigurableTrimmedKalmanFinder::vertices (
58  const std::vector < reco::TransientTrack > & prims,
59  const std::vector < reco::TransientTrack > & secs,
60  const reco::BeamSpot & s ) const
61 {
62  return theRector->vertices ( prims, secs, s );
63 }
64 
65 std::vector < TransientVertex > ConfigurableTrimmedKalmanFinder::vertices (
66  const std::vector < reco::TransientTrack > & t ) const
67 {
68  return theRector->vertices ( t );
69 }
70 
72 {
73  return mydefaults();
74 }
75 
77 
78 namespace {
79  ConfRecoBuilder < ConfigurableTrimmedKalmanFinder > t ( "tkf", "Trimmed Kalman Vertex Finder" );
80 }
T getParameter(std::string const &) const
tuple ret
prodAgent to be discontinued
virtual std::vector< TransientVertex > vertices(const std::vector< reco::TransientTrack > &) const =0
void configure(const edm::ParameterSet &)
void augment(ParameterSet const &from)
virtual VertexReconstructor * clone() const =0
void addParameter(std::string const &name, T const &value)
Definition: ParameterSet.h:144
ConfigurableTrimmedKalmanFinder * clone() const
std::vector< std::vector< double > > tmp
Definition: MVATrainer.cc:100
std::vector< TransientVertex > vertices(const std::vector< reco::TransientTrack > &t) const