Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:28:08

0001 #include "RecoVertex/ConfigurableVertexReco/interface/AbstractConfFitter.h"
0002 
0003 AbstractConfFitter::AbstractConfFitter(const VertexFitter<5>& f) : theFitter(f.clone()) {}
0004 
0005 AbstractConfFitter::AbstractConfFitter() : theFitter(nullptr) {}
0006 
0007 AbstractConfFitter::AbstractConfFitter(const AbstractConfFitter& o) : theFitter(o.theFitter->clone()) {}
0008 
0009 AbstractConfFitter::~AbstractConfFitter() {
0010   if (theFitter)
0011     delete theFitter;
0012 }
0013 
0014 CachingVertex<5> AbstractConfFitter::vertex(const std::vector<reco::TransientTrack>& t) const {
0015   return theFitter->vertex(t);
0016 }
0017 
0018 CachingVertex<5> AbstractConfFitter::vertex(const std::vector<RefCountedVertexTrack>& tracks) const {
0019   return theFitter->vertex(tracks);
0020 }
0021 
0022 CachingVertex<5> AbstractConfFitter::vertex(const std::vector<RefCountedVertexTrack>& tracks,
0023                                             const reco::BeamSpot& spot) const {
0024   return theFitter->vertex(tracks, spot);
0025 }
0026 
0027 CachingVertex<5> AbstractConfFitter::vertex(const std::vector<reco::TransientTrack>& tracks,
0028                                             const GlobalPoint& linPoint) const {
0029   return theFitter->vertex(tracks, linPoint);
0030 }
0031 
0032 CachingVertex<5> AbstractConfFitter::vertex(const std::vector<reco::TransientTrack>& tracks,
0033                                             const GlobalPoint& priorPos,
0034                                             const GlobalError& priorError) const {
0035   return theFitter->vertex(tracks, priorPos, priorError);
0036 }
0037 
0038 CachingVertex<5> AbstractConfFitter::vertex(const std::vector<reco::TransientTrack>& tracks,
0039                                             const reco::BeamSpot& beamSpot) const {
0040   return theFitter->vertex(tracks, beamSpot);
0041 }
0042 
0043 CachingVertex<5> AbstractConfFitter::vertex(const std::vector<RefCountedVertexTrack>& tracks,
0044                                             const GlobalPoint& priorPos,
0045                                             const GlobalError& priorError) const {
0046   return theFitter->vertex(tracks, priorPos, priorError);
0047 }