CMS 3D CMS Logo

CandKinematicVertexFitter.h
Go to the documentation of this file.
1 #ifndef RecoCandUtils_CandKinematicVertexFitter_h
2 #define RecoCandUtils_CandKinematicVertexFitter_h
3 /* \class CandKinematicVertexFitter
4  *
5  * \author Luca Lista, INFN
6  *
7  */
8 
17 #include <vector>
18 #include "boost/shared_ptr.hpp"
19 
20 class MagneticField;
21 namespace reco { class VertexCompositeCandidate; }
22 
24 public:
27  bField_(0), pdt_(0), fitter_(), fitters_(new std::vector<CandKinematicVertexFitter>) {
28  }
30  bField_(o.bField_), pdt_(o.pdt_), fitter_(), fitters_(new std::vector<CandKinematicVertexFitter>) {
31  }
32  void set(const MagneticField * bField) { bField_ = bField; }
33  void set(const ParticleDataTable * pdt) { pdt_ = pdt; }
34  void set(reco::VertexCompositeCandidate &) const;
35  bool fit(const std::vector<RefCountedKinematicParticle> & tracks) const;
37  tree_->movePointerToTheTop();
38  return tree_->currentParticle();
39  }
40 private:
43  void fill(std::vector<RefCountedKinematicParticle> &,
44  std::vector<reco::Candidate *> &,
45  std::vector<reco::RecoCandidate::TrackType> &,
46  reco::Candidate &) const;
54  mutable double chi2_;
56  mutable double ndof_;
58  mutable CovarianceMatrix cov_;
60  boost::shared_ptr<std::vector<CandKinematicVertexFitter> > fitters_;
61 };
62 
63 #endif
CandKinematicVertexFitter(const CandKinematicVertexFitter &o)
RefCountedKinematicTree tree_
fit tree
CandKinematicVertexFitter(const edm::ParameterSet &cfg)
HepPDT::ParticleDataTable ParticleDataTable
double ndof_
number of degrees of freedom
KinematicParticleVertexFitter fitter_
fitter
math::Error< dimension >::type CovarianceMatrix
covariance error matrix (3x3)
Definition: Vertex.h:45
boost::shared_ptr< std::vector< CandKinematicVertexFitter > > fitters_
fitters used for recursive calls
reco::Vertex::CovarianceMatrix CovarianceMatrix
CovarianceMatrix cov_
covariance matrix (3x3)
RefCountedKinematicParticle currentParticle() const
fixed size matrix
KinematicParticleFactoryFromTransientTrack factory_
particle factor
const ParticleDataTable * pdt_