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  void add(const Trajectory *traj) override { }
12 
14  void init(const std::vector<Trajectory> *vect) override { trajectories = vect; }
15 
16  void done() override { trajectories = nullptr; };
17 
19  bool good(const TrajectorySeed *seed) override ;
20 
21 
23  private:
24  const std::vector<Trajectory> *trajectories;
25 
26 };
27 
28 #endif
void add(const Trajectory *traj) override
#define nullptr
bool good(const TrajectorySeed *seed) override
Returns true if the seed is not overlapping with another trajectory.
void done() override
Tells the cleaner that the seeds are finished, and so it can clear any cache it has.
void init(const std::vector< Trajectory > *vect) override
Provides the cleaner a pointer to the vector where trajectories are stored, in case it does not want ...
const std::vector< Trajectory > * trajectories