00001 #ifndef TrajectoryCleaning_TrajectoryCleanerBySharedHits_h 00002 #define TrajectoryCleaning_TrajectoryCleanerBySharedHits_h 00003 00004 #include "TrackingTools/TrajectoryCleaning/interface/TrajectoryCleaner.h" 00005 00016 class TrajectoryCleanerBySharedHits : public TrajectoryCleaner { 00017 00018 public: 00019 00020 typedef std::vector<Trajectory*> TrajectoryPointerContainer; 00021 00022 TrajectoryCleanerBySharedHits() : 00023 theFraction(0.19), 00024 allowSharedFirstHit(true){} 00025 TrajectoryCleanerBySharedHits(const edm::ParameterSet & iConfig) : 00026 theFraction(iConfig.getParameter<double>("fractionShared")), 00027 allowSharedFirstHit(iConfig.getParameter<bool>("allowSharedFirstHit")){} 00028 00029 virtual ~TrajectoryCleanerBySharedHits(){}; 00030 00031 using TrajectoryCleaner::clean; 00032 virtual void clean( TrajectoryPointerContainer&) const; 00033 00034 private: 00035 double theFraction; 00036 bool allowSharedFirstHit; 00037 00038 }; 00039 00040 #endif