CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_4_5_patch3/src/RecoVertex/TrimmedKalmanVertexFinder/src/KalmanTrimmedVertexFinder.cc

Go to the documentation of this file.
00001 #include "RecoVertex/TrimmedKalmanVertexFinder/interface/KalmanTrimmedVertexFinder.h"
00002 #include "RecoVertex/KalmanVertexFit/interface/KalmanVertexFitter.h"
00003 #include "RecoVertex/KalmanVertexFit/interface/KalmanVertexUpdator.h"
00004 #include "RecoVertex/KalmanVertexFit/interface/KalmanVertexTrackCompatibilityEstimator.h"
00005 
00006 
00007 KalmanTrimmedVertexFinder::KalmanTrimmedVertexFinder() 
00008 {
00009   KalmanVertexFitter vf(false);
00010   KalmanVertexUpdator<5> vu;
00011   KalmanVertexTrackCompatibilityEstimator<5> ve;
00012 
00013   theFinder = new ConfigurableTrimmedVertexFinder (&vf, &vu, &ve);
00014 }
00015 
00016 void KalmanTrimmedVertexFinder::setParameters ( const edm::ParameterSet & s )
00017 {
00018   setPtCut(s.getParameter<double>("ptCut"));
00019   setTrackCompatibilityCut(s.getParameter<double>("trackCompatibilityToPVcut"));
00020   setTrackCompatibilityToSV(s.getParameter<double>("trackCompatibilityToSVcut"));
00021   setVertexFitProbabilityCut(s.getParameter<double>("vtxFitProbCut")); 
00022   setMaxNbOfVertices(s.getParameter<int>("maxNbOfVertices"));
00023 }
00024 
00025 
00026 KalmanTrimmedVertexFinder::~KalmanTrimmedVertexFinder() 
00027 {
00028   delete theFinder;
00029 }
00030 
00031 
00032 KalmanTrimmedVertexFinder::KalmanTrimmedVertexFinder(
00033   const KalmanTrimmedVertexFinder & other)
00034 {
00035   theFinder = other.theFinder->clone();
00036 }