00001 #ifndef TrajectoryCleaning_TrajectoryCleanerBySharedSeeds_h 00002 #define TrajectoryCleaning_TrajectoryCleanerBySharedSeeds_h 00003 00004 #include "TrackingTools/TrajectoryCleaning/interface/TrajectoryCleaner.h" 00005 00006 using namespace std; 00007 00008 class TrajectoryCleanerBySharedSeeds : public TrajectoryCleaner 00009 { 00010 public: 00011 typedef std::vector<Trajectory*> TrajectoryPointerContainer; 00012 00013 TrajectoryCleanerBySharedSeeds(){}; 00014 virtual ~TrajectoryCleanerBySharedSeeds(){}; 00015 00016 using TrajectoryCleaner::clean; 00017 virtual void clean(TrajectoryPointerContainer&) const; 00018 void clean (vector<Trajectory> & trajs) const; 00019 00020 private: 00021 bool sameSeed(const TrajectorySeed & s1, const TrajectorySeed & s2) const; 00022 }; 00023 00024 #endif