CMS 3D CMS Logo

PixelTrackFilter.h
Go to the documentation of this file.
1 #ifndef RecoPixelVertexing_PixelTrackFitting_PixelTrackFilter_H
2 #define RecoPixelVertexing_PixelTrackFitting_PixelTrackFilter_H
3 
5 
6 #include <memory>
7 
9 public:
11  explicit PixelTrackFilter(std::unique_ptr<PixelTrackFilterBase> filter): filter_(std::move(filter)) {}
12 
14 
15  bool operator()(const reco::Track *track, const PixelTrackFilterBase::Hits& hits) const { return (*filter_)(track, hits); }
16 
17 private:
18  std::unique_ptr<PixelTrackFilterBase> filter_;
19 };
20 
21 #endif
PixelTrackFilter(std::unique_ptr< PixelTrackFilterBase > filter)
void swap(PixelTrackFilter &o)
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
std::vector< const TrackingRecHit * > Hits
bool operator()(const reco::Track *track, const PixelTrackFilterBase::Hits &hits) const
def move(src, dest)
Definition: eostools.py:511
std::unique_ptr< PixelTrackFilterBase > filter_