CMS 3D CMS Logo

SeedCleanerBySharedInput.h
Go to the documentation of this file.
1 #ifndef SeedCleanerBySharedInput_H
2 #define SeedCleanerBySharedInput_H
4 
9  public:
11  virtual void add(const Trajectory *traj) { }
12 
14  virtual void init(const std::vector<Trajectory> *vect) { trajectories = vect; }
15 
16  virtual void done() { trajectories = 0; };
17 
19  virtual bool good(const TrajectorySeed *seed) ;
20 
21 
23  private:
24  const std::vector<Trajectory> *trajectories;
25 
26 };
27 
28 #endif
virtual bool good(const TrajectorySeed *seed)
Returns true if the seed is not overlapping with another trajectory.
virtual void init(const std::vector< Trajectory > *vect)
Provides the cleaner a pointer to the vector where trajectories are stored, in case it does not want ...
virtual void add(const Trajectory *traj)
virtual void done()
Tells the cleaner that the seeds are finished, and so it can clear any cache it has.
const std::vector< Trajectory > * trajectories