CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
PixelFitter.h
Go to the documentation of this file.
1 #ifndef RecoPixelVertexing_PixelTrackFitting_PixelFitter_H
2 #define RecoPixelVertexing_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 
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
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
def move
Definition: eostools.py:511
void swap(PixelFitter &o)
Definition: PixelFitter.h:13
std::unique_ptr< reco::Track > run(const std::vector< const TrackingRecHit * > &hits, const TrackingRegion &region) const
Definition: PixelFitter.h:15