CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
PFCandCommonVertexFitter< Fitter > Class Template Reference

#include <PFCandCommonVertexFitter.h>

Inheritance diagram for PFCandCommonVertexFitter< Fitter >:
PFCandCommonVertexFitterBase

Public Member Functions

bool fit (TransientVertex &vertex, const std::vector< reco::TransientTrack > &tracks) const
 
 PFCandCommonVertexFitter (const edm::ParameterSet &cfg)
 
- Public Member Functions inherited from PFCandCommonVertexFitterBase
 PFCandCommonVertexFitterBase (const edm::ParameterSet &)
 
void set (const MagneticField *bField)
 
void set (reco::VertexCompositeCandidate &) const
 
virtual ~PFCandCommonVertexFitterBase ()
 

Private Attributes

Fitter fitter_
 

Additional Inherited Members

- Public Types inherited from PFCandCommonVertexFitterBase
typedef reco::Vertex::CovarianceMatrix CovarianceMatrix
 
- Protected Member Functions inherited from PFCandCommonVertexFitterBase
void fill (std::vector< reco::TransientTrack > &, std::vector< reco::Candidate * > &, std::vector< reco::RecoCandidate::TrackType > &, reco::Candidate &) const
 
- Protected Attributes inherited from PFCandCommonVertexFitterBase
const MagneticFieldbField_
 
double chi2_
 chi-sqared More...
 
CovarianceMatrix cov_
 covariance matrix (3x3) More...
 
double ndof_
 number of degrees of freedom More...
 

Detailed Description

template<typename Fitter>
class PFCandCommonVertexFitter< Fitter >

Definition at line 50 of file PFCandCommonVertexFitter.h.

Constructor & Destructor Documentation

template<typename Fitter >
PFCandCommonVertexFitter< Fitter >::PFCandCommonVertexFitter ( const edm::ParameterSet cfg)
inline

Definition at line 52 of file PFCandCommonVertexFitter.h.

52  :
54 // fitter_(reco::modules::make<Fitter>(cfg)) {
55  fitter_(Fitter(cfg, true)) {
56  }
PFCandCommonVertexFitterBase(const edm::ParameterSet &)

Member Function Documentation

template<typename Fitter >
bool PFCandCommonVertexFitter< Fitter >::fit ( TransientVertex vertex,
const std::vector< reco::TransientTrack > &  tracks 
) const
inlinevirtual

Implements PFCandCommonVertexFitterBase.

Definition at line 57 of file PFCandCommonVertexFitter.h.

References MessageLogger_cfi::cerr, cppFunctionSkipper::exception, and TransientVertex::isValid().

Referenced by trackingPlots.Iteration::modules().

58  {
59  try {
60  vertex = fitter_.vertex(tracks);
61  } catch (std::exception & err) {
62  std::cerr << ">>> exception thrown by KalmanVertexFitter:\n"
63  << err.what() << "\n"
64  << ">>> candidate not fitted to common vertex" << std::endl;
65  return false;
66  }
67  return vertex.isValid();
68  }
bool isValid() const

Member Data Documentation

template<typename Fitter >
Fitter PFCandCommonVertexFitter< Fitter >::fitter_
private

Definition at line 70 of file PFCandCommonVertexFitter.h.