test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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  virtual void add(const Trajectory *traj) ;
11 
13  virtual void init(const std::vector<Trajectory> *vect) ;
14 
15  virtual void done() ;
16 
18  virtual bool good(const TrajectorySeed *seed) ;
19 
21  /*, comps_(0), tracks_(0), calls_(0)*/ {}
22  virtual ~CachingSeedCleanerByHitPosition() { 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
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 bool good(const TrajectorySeed *seed)
Returns true if the seed is not overlapping with another trajectory.
virtual void done()
Tells the cleaner that the seeds are finished, and so it can clear any cache it has.
virtual void add(const Trajectory *traj)
std::vector< Trajectory::RecHitContainer > theVault