CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
KalmanVertexFitter.cc
Go to the documentation of this file.
9 
10 
12 {
14  setup(pSet, useSmoothing);
15 }
16 
18 {
19  setup(pSet, useSmoothing);
20 }
21 
22 void KalmanVertexFitter::setup(const edm::ParameterSet& pSet, bool useSmoothing )
23 {
24  if (useSmoothing) {
28  SequentialVertexSmoother<5> smoother(vtu, vse, covCalc);
30  = new SequentialVertexFitter<5>(pSet, FsmwLinearizationPointFinder(20, -2., 0.4, 10.),
32  smoother, LinearizedTrackStateFactory());
33  }
34  else {
35  DummyVertexSmoother<5> smoother;
37  = new SequentialVertexFitter<5>(pSet, FsmwLinearizationPointFinder(20, -2., 0.4, 10.),
39  smoother, LinearizedTrackStateFactory());
40  }
41 }
42 
43 
45 {
46  edm::ParameterSet pSet;
47  pSet.addParameter<double>("maxDistance", 0.01);
48  pSet.addParameter<int>("maxNbrOfIterations", 10); //10
49  return pSet;
50 }
edm::ParameterSet defaultParameters() const
void addParameter(std::string const &name, T const &value)
Definition: ParameterSet.h:144
const SequentialVertexFitter< 5 > * theSequentialFitter
void setup(const edm::ParameterSet &pSet, bool useSmoothing)
KalmanVertexFitter(bool useSmoothing=false)