CMS 3D CMS Logo

PixelFitter.h
Go to the documentation of this file.
1 #ifndef RecoTracker_PixelTrackFitting_PixelFitter_h
2 #define RecoTracker_PixelTrackFitting_PixelFitter_h
3 
5 
6 #include <memory>
7 
8 class PixelFitter {
9 public:
11  explicit PixelFitter(std::unique_ptr<PixelFitterBase> fitter) : fitter_(std::move(fitter)) {}
12 
13  void swap(PixelFitter& o) { std::swap(fitter_, o.fitter_); }
14 
15  std::unique_ptr<reco::Track> run(const std::vector<const TrackingRecHit*>& hits, const TrackingRegion& region) const {
16  return fitter_->run(hits, region);
17  }
18 
19 private:
20  std::unique_ptr<PixelFitterBase> fitter_;
21 };
22 
23 #endif
std::unique_ptr< PixelFitterBase > fitter_
Definition: PixelFitter.h:20
PixelFitter(std::unique_ptr< PixelFitterBase > fitter)
Definition: PixelFitter.h:11
std::unique_ptr< reco::Track > run(const std::vector< const TrackingRecHit *> &hits, const TrackingRegion &region) const
Definition: PixelFitter.h:15
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
void swap(PixelFitter &o)
Definition: PixelFitter.h:13
def move(src, dest)
Definition: eostools.py:511