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 override
 
 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_
 

Detailed Description

template<typename Fitter>
class PFCandCommonVertexFitter< Fitter >

Definition at line 44 of file PFCandCommonVertexFitter.h.

Constructor & Destructor Documentation

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

Definition at line 46 of file PFCandCommonVertexFitter.h.

46  :
48 // fitter_(reco::modules::make<Fitter>(cfg)) {
49  fitter_(Fitter(cfg, true)) {
50  }
PFCandCommonVertexFitterBase(const edm::ParameterSet &)

Member Function Documentation

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

Implements PFCandCommonVertexFitterBase.

Definition at line 51 of file PFCandCommonVertexFitter.h.

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

Referenced by trackingPlots.Iteration::modules().

52  {
53  try {
54  vertex = fitter_.vertex(tracks);
55  } catch (std::exception & err) {
56  std::cerr << ">>> exception thrown by KalmanVertexFitter:\n"
57  << err.what() << "\n"
58  << ">>> candidate not fitted to common vertex" << std::endl;
59  return false;
60  }
61  return vertex.isValid();
62  }
bool isValid() const

Member Data Documentation

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

Definition at line 64 of file PFCandCommonVertexFitter.h.