Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:29:06

0001 #ifndef _ReconstructorFromFitter_H_
0002 #define _ReconstructorFromFitter_H_
0003 
0004 #include <memory>
0005 #include "RecoVertex/ConfigurableVertexReco/interface/AbstractConfReconstructor.h"
0006 #include "RecoVertex/ConfigurableVertexReco/interface/AbstractConfFitter.h"
0007 
0008 /**
0009  *  Wrap any VertexFitter into the VertexReconstructor interface
0010  */
0011 
0012 class ReconstructorFromFitter : public AbstractConfReconstructor {
0013 public:
0014   explicit ReconstructorFromFitter(std::unique_ptr<AbstractConfFitter>&&);
0015   ReconstructorFromFitter(const ReconstructorFromFitter& o);
0016   ~ReconstructorFromFitter() override;
0017   void configure(const edm::ParameterSet&) override;
0018   edm::ParameterSet defaults() const override;
0019   std::vector<TransientVertex> vertices(const std::vector<reco::TransientTrack>&) const override;
0020   std::vector<TransientVertex> vertices(const std::vector<reco::TransientTrack>&, const reco::BeamSpot&) const override;
0021 
0022   ReconstructorFromFitter* clone() const override;
0023 
0024 private:
0025   const AbstractConfFitter* theFitter;
0026 };
0027 
0028 #endif