CMS 3D CMS Logo

CachingSeedCleanerByHitPosition.h
Go to the documentation of this file.
1 #ifndef CachingSeedCleanerByHitPosition_H
2 #define CachingSeedCleanerByHitPosition_H
4 #include <map>
5 
7  public:
8 
10  void add(const Trajectory *traj) override ;
11 
13  void init(const std::vector<Trajectory> *vect) override ;
14 
15  void done() override ;
16 
18  bool good(const TrajectorySeed *seed) override ;
19 
21  /*, comps_(0), tracks_(0), calls_(0)*/ {}
22  ~CachingSeedCleanerByHitPosition() override { theVault.clear(); theCache.clear(); }
23  private:
24  std::vector<Trajectory::RecHitContainer> theVault;
25  std::multimap<uint32_t, unsigned int> theCache;
26 
27  //uint64_t comps_, tracks_, calls_;
28 };
29 
30 #endif
std::multimap< uint32_t, unsigned int > theCache
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 ...
void add(const Trajectory *traj) override
std::vector< Trajectory::RecHitContainer > theVault