File indexing completed on 2024-04-06 12:28:37
0001 #ifndef RecoTracker_PixelTrackFitting_PixelTrackCleaner_h
0002 #define RecoTracker_PixelTrackFitting_PixelTrackCleaner_h
0003
0004
0005
0006
0007
0008
0009 #include "TrackingTools/TrajectoryFiltering/interface/TrajectoryFilter.h"
0010
0011 #include "RecoTracker/PixelTrackFitting/interface/TracksWithHits.h"
0012 #include <cassert>
0013
0014 class PixelTrackCleaner {
0015 protected:
0016 explicit PixelTrackCleaner(bool fast = false) : fast_(fast) {}
0017
0018 public:
0019 using Record = TrajectoryFilter::Record;
0020
0021 virtual ~PixelTrackCleaner() {}
0022
0023 bool fast() const { return fast_; }
0024
0025
0026 typedef pixeltrackfitting::TracksWithRecHits TracksWithRecHits;
0027 virtual TracksWithRecHits cleanTracks(const TracksWithRecHits& tracksWithRecHits) const {
0028 assert(false);
0029 return TracksWithRecHits();
0030 }
0031
0032
0033 using TracksWithTTRHs = pixeltrackfitting::TracksWithTTRHs;
0034 virtual void cleanTracks(TracksWithTTRHs& tracksWithRecHits) const { assert(false); }
0035
0036 private:
0037 const bool fast_;
0038 };
0039
0040 #endif