CMS 3D CMS Logo

KalmanVertexFitter.cc
Go to the documentation of this file.
9 
12  setup(pSet, useSmoothing);
13 }
14 
15 KalmanVertexFitter::KalmanVertexFitter(const edm::ParameterSet& pSet, bool useSmoothing) { setup(pSet, useSmoothing); }
16 
17 void KalmanVertexFitter::setup(const edm::ParameterSet& pSet, bool useSmoothing) {
18  if (useSmoothing) {
22  SequentialVertexSmoother<5> smoother(vtu, vse, covCalc);
24  FsmwLinearizationPointFinder(20, -2., 0.4, 10.),
26  smoother,
28  } else {
29  DummyVertexSmoother<5> smoother;
31  FsmwLinearizationPointFinder(20, -2., 0.4, 10.),
33  smoother,
35  }
36 }
37 
39  edm::ParameterSet pSet;
40  pSet.addParameter<double>("maxDistance", 0.01);
41  pSet.addParameter<int>("maxNbrOfIterations", 10); //10
42  return pSet;
43 }
edm::ParameterSet defaultParameters() const
void addParameter(std::string const &name, T const &value)
Definition: ParameterSet.h:124
const SequentialVertexFitter< 5 > * theSequentialFitter
void setup(const edm::ParameterSet &pSet, bool useSmoothing)
KalmanVertexFitter(bool useSmoothing=false)