File indexing completed on 2024-04-06 12:24:57
0001 #ifndef ConversionVertexFinder_H
0002 #define ConversionVertexFinder_H
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #include "TrackingTools/TransientTrack/interface/TransientTrack.h"
0013 #include "RecoVertex/VertexPrimitives/interface/TransientVertex.h"
0014 #include "RecoVertex/KalmanVertexFit/interface/KalmanVertexFitter.h"
0015 #include "RecoVertex/KinematicFit/interface/KinematicConstrainedVertexFitter.h"
0016
0017 #include "DataFormats/TrackReco/interface/Track.h"
0018 #include "DataFormats/TrackReco/interface/TrackExtra.h"
0019 #include "DataFormats/VertexReco/interface/Vertex.h"
0020 #include "DataFormats/VertexReco/interface/VertexFwd.h"
0021
0022
0023 #include "FWCore/Framework/interface/ESHandle.h"
0024 #include "FWCore/Framework/interface/EventSetup.h"
0025 #include "FWCore/Framework/interface/Event.h"
0026 #include <vector>
0027
0028 class KinematicConstrainedVertexFitter;
0029 class ConversionVertexFinder {
0030 public:
0031 ConversionVertexFinder(const edm::ParameterSet& config);
0032
0033 ~ConversionVertexFinder();
0034
0035 TransientVertex run(const std::vector<reco::TransientTrack>& pair);
0036
0037 bool run(const std::vector<reco::TransientTrack>& pair, reco::Vertex& the_vertex);
0038
0039 private:
0040 edm::ParameterSet conf_;
0041 double maxDelta_;
0042 double maxReducedChiSq_;
0043 double minChiSqImprovement_;
0044 int maxNbrOfIterations_;
0045 KinematicConstrainedVertexFitter* kcvFitter_;
0046 };
0047
0048 #endif