CMS 3D CMS Logo

GsfVertexFitter.cc
Go to the documentation of this file.
5 
7  float theMaxShift = pSet.getParameter<double>("maxDistance"); //0.01
8  int theMaxStep = pSet.getParameter<int>("maxNbrOfIterations"); //10
9  bool limitComponents_ = pSet.getParameter<bool>("limitComponents");
10  bool useSmoothing = pSet.getParameter<bool>("smoothTracks");
11 
12  VertexSmoother<5>* theSmoother;
14 
15  if (limitComponents_) {
16  edm::ParameterSet mergerPSet = pSet.getParameter<edm::ParameterSet>("GsfMergerParameters");
17  theMerger = new GsfVertexMerger(mergerPSet);
18  }
19 
20  if (useSmoothing)
21  theSmoother = new GsfVertexSmoother(limitComponents_, &*theMerger);
22  else
23  theSmoother = new DummyVertexSmoother<5>();
24 
26  linP, GsfVertexUpdator(limitComponents_, &*theMerger), *theSmoother, MultiPerigeeLTSFactory());
27  theSequentialFitter->setMaximumDistance(theMaxShift);
28  theSequentialFitter->setMaximumNumberOfIterations(theMaxStep);
29 
30  delete theSmoother;
31 }
32 
35 }
36 
T getParameter(std::string const &) const
SequentialVertexFitter * clone() const override
GsfVertexFitter(const edm::ParameterSet &pSet, const LinearizationPointFinder &linP=DefaultLinearizationPointFinder())
SequentialVertexFitter< 5 > * theSequentialFitter
~GsfVertexFitter() override