CMS 3D CMS Logo

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 
13  void swap(PixelFitter& o) { std::swap(fitter_, o.fitter_); }
14 
15  std::unique_ptr<reco::Track> run(const std::vector<const TrackingRecHit*>& hits,
16  const TrackingRegion& region,
17  const edm::EventSetup& setup) const {
18  return fitter_->run(hits, region, setup);
19  }
20 
21 private:
22  std::unique_ptr<PixelFitterBase> fitter_;
23 };
24 
25 #endif
PixelFitter::PixelFitter
PixelFitter(std::unique_ptr< PixelFitterBase > fitter)
Definition: PixelFitter.h:11
hfClusterShapes_cfi.hits
hits
Definition: hfClusterShapes_cfi.py:5
singleTopDQM_cfi.setup
setup
Definition: singleTopDQM_cfi.py:37
PixelFitter
Definition: PixelFitter.h:8
EcalTangentSkim_cfg.o
o
Definition: EcalTangentSkim_cfg.py:36
std::swap
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
Definition: DataFrameContainer.h:209
PixelFitterBase.h
PixelFitter::PixelFitter
PixelFitter()
Definition: PixelFitter.h:10
PixelFitter::run
std::unique_ptr< reco::Track > run(const std::vector< const TrackingRecHit * > &hits, const TrackingRegion &region, const edm::EventSetup &setup) const
Definition: PixelFitter.h:15
edm::EventSetup
Definition: EventSetup.h:57
eostools.move
def move(src, dest)
Definition: eostools.py:511
std
Definition: JetResolutionObject.h:76
PixelFitter::swap
void swap(PixelFitter &o)
Definition: PixelFitter.h:13
HLT_2018_cff.region
region
Definition: HLT_2018_cff.py:81479
TrackingRegion
Definition: TrackingRegion.h:40
PixelFitter::fitter_
std::unique_ptr< PixelFitterBase > fitter_
Definition: PixelFitter.h:22