![]() |
![]() |
#include <PhysicsTools/RecoUtils/interface/CandCommonVertexFitter.h>
Public Member Functions | |
CandCommonVertexFitter (const edm::ParameterSet &cfg) | |
bool | fit (TransientVertex &vertex, const std::vector< reco::TransientTrack > &tracks) const |
Private Attributes | |
Fitter | fitter_ |
Definition at line 44 of file CandCommonVertexFitter.h.
CandCommonVertexFitter< Fitter >::CandCommonVertexFitter | ( | const edm::ParameterSet & | cfg | ) | [inline] |
Definition at line 46 of file CandCommonVertexFitter.h.
00046 : 00047 CandCommonVertexFitterBase(cfg), 00048 fitter_(reco::modules::make<Fitter>(cfg)) { 00049 }
bool CandCommonVertexFitter< Fitter >::fit | ( | TransientVertex & | vertex, | |
const std::vector< reco::TransientTrack > & | tracks | |||
) | const [inline, virtual] |
Implements CandCommonVertexFitterBase.
Definition at line 50 of file CandCommonVertexFitter.h.
References TestMuL1L2Filter_cff::cerr, lat::endl(), err, exception, CandCommonVertexFitter< Fitter >::fitter_, and TransientVertex::isValid().
00051 { 00052 try { 00053 vertex = fitter_.vertex(tracks); 00054 } catch (std::exception & err) { 00055 std::cerr << ">>> exception thrown by KalmanVertexFitter:\n" 00056 << err.what() << "\n" 00057 << ">>> candidate not fitted to common vertex" << std::endl; 00058 return false; 00059 } 00060 return vertex.isValid(); 00061 }
Fitter CandCommonVertexFitter< Fitter >::fitter_ [private] |
Definition at line 63 of file CandCommonVertexFitter.h.
Referenced by CandCommonVertexFitter< Fitter >::fit().