CMS 3D CMS Logo

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 augment(ParameterSet const &from)
void configure(const edm::ParameterSet &) override
void addParameter(std::string const &name, T const &value)
Definition: ParameterSet.h:144
const VertexFitter< 5 > * theFitter
edm::ParameterSet defaults() const override
ConfigurableKalmanFitter * clone() const override