CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
AdaptiveGsfVertexFitter.cc
Go to the documentation of this file.
7 
8 
9 
11  const LinearizationPointFinder & linP )
12 {
13 
14  bool limitComponents_ = pSet.getParameter<bool>("limitComponents");
15 
17 
18  if (limitComponents_) {
19  theMerger = new GsfVertexMerger(pSet.getParameter<edm::ParameterSet>("GsfMergerParameters"));
20  }
21 
24  linP,
25  GsfVertexUpdator(limitComponents_, &*theMerger),
27  GsfVertexSmoother(limitComponents_, &*theMerger),
30 
42  theFitter->setParameters ( pSet.getParameter<double>("maxshift"),
43  pSet.getParameter<double>("maxlpshift"),
44  pSet.getParameter<int>("maxstep"),
45  pSet.getParameter<double>("weightthreshold") );
46 
47 }
48 
50 {
51  theFitter = original.theFitter->clone();
52 }
53 
55 {
56  delete theFitter;
57 }
T getParameter(std::string const &) const
AdaptiveVertexFitter * theFitter
list original
Definition: definitions.py:57
AdaptiveVertexFitter * clone() const
AdaptiveGsfVertexFitter(const edm::ParameterSet &pSet, const LinearizationPointFinder &linP=DefaultLinearizationPointFinder())
void setParameters(double maxshift=0.0001, double maxlpshift=0.1, unsigned maxstep=30, double weightthreshold=.001)
void gsfIntermediarySmoothing(bool sm)