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());
29 
30  delete theSmoother;
31 }
32 
34  theSequentialFitter = original.theSequentialFitter->clone();
35 }
36 
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
void setMaximumNumberOfIterations(int maxIterations)
GsfVertexFitter(const edm::ParameterSet &pSet, const LinearizationPointFinder &linP=DefaultLinearizationPointFinder())
SequentialVertexFitter< 5 > * theSequentialFitter
~GsfVertexFitter() override
void setMaximumDistance(float maxShift)