CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ConfigurableKalmanFitter.cc
Go to the documentation of this file.
3 
4 namespace {
5  edm::ParameterSet mydefaults()
6  {
8  ret.addParameter<double>("maxDistance",0.01);
9  ret.addParameter<int>("maxNbrOfIterations",10);
10  return ret;
11  }
12 }
13 
16 {}
17 
19  const edm::ParameterSet & n )
20 {
22  m.augment ( mydefaults() );
23  if (theFitter ) delete theFitter;
24  theFitter = new KalmanVertexFitter( m ) ;
25 }
26 
28 {
29  // if (theFitter) delete theFitter;
30 }
31 
34  AbstractConfFitter ( o )
35 {}
36 
37 
39 {
40  return new ConfigurableKalmanFitter ( *this );
41 }
42 
44 {
45  return mydefaults();
46 }
47 
49 
50 namespace {
51  ConfFitterBuilder < ConfigurableKalmanFitter > t ( "kalman", "Standard Kalman Filter" );
52  ConfFitterBuilder < ConfigurableKalmanFitter > s ( "default", "Standard Kalman Filter" );
53 }
void configure(const edm::ParameterSet &)
tuple t
Definition: tree.py:139
void augment(ParameterSet const &from)
void addParameter(std::string const &name, T const &value)
Definition: ParameterSet.h:144
ConfigurableKalmanFitter * clone() const
const VertexFitter< 5 > * theFitter
edm::ParameterSet defaults() const