CMS 3D CMS Logo

KinematicConstrainedVertexFitter.h
Go to the documentation of this file.
1 #ifndef KinematicConstrainedVertexFitter_H
2 #define KinematicConstrainedVertexFitter_H
3 
11 
22 public:
27 
32 
34 
40  void setParameters(const edm::ParameterSet &pSet);
41 
46  RefCountedKinematicTree fit(const std::vector<RefCountedKinematicParticle> &part) {
47  return fit(part, nullptr, nullptr);
48  }
49 
53  RefCountedKinematicTree fit(const std::vector<RefCountedKinematicParticle> &part, MultiTrackKinematicConstraint *cs) {
54  return fit(part, cs, nullptr);
55  };
56 
60  RefCountedKinematicTree fit(const std::vector<RefCountedKinematicParticle> &part,
62  GlobalPoint *pt);
63 
64  //return the number of iterations
65  int getNit() const;
66  //return the value of the constraint equation
67  float getCSum() const;
68 
69 private:
70  void defaultParameters();
71 
72  float theMaxDelta; //maximum (delta parameter)^2/(sigma parameter)^2 per iteration for convergence
74  float theMaxReducedChiSq; //max of initial (after 2 iterations) chisq/dof value
75  float theMinChiSqImprovement; //minimum required improvement in chisq to avoid fit termination for cases exceeding theMaxReducedChiSq
81  float csum;
82 };
83 
84 #endif
RefCountedKinematicTree fit(const std::vector< RefCountedKinematicParticle > &part)
RefCountedKinematicTree fit(const std::vector< RefCountedKinematicParticle > &part, MultiTrackKinematicConstraint *cs)
KinematicConstrainedVertexUpdator * updator
void setParameters(const edm::ParameterSet &pSet)
part
Definition: HCALResponse.h:20