CMS 3D CMS Logo

CachingSeedCleanerBySharedInput.h
Go to the documentation of this file.
1 #ifndef CachingSeedCleanerBySharedInput_H
2 #define CachingSeedCleanerBySharedInput_H
4 #include <map>
5 #include <unordered_map>
6 
9 public:
10  // in this implementation it populate the cache
11  void add(const Trajectory *traj) override;
12 
14  void init(const std::vector<Trajectory> *vect) override;
15 
16  void done() override;
17 
19  bool good(const TrajectorySeed *seed) override;
20 
21  CachingSeedCleanerBySharedInput(unsigned int numHitsForSeedCleaner = 4, bool onlyPixelHits = false)
23 
24 private:
25  std::vector<Trajectory::RecHitContainer> theVault;
26  std::unordered_multimap<unsigned int, unsigned int> theCache;
27 
30 
31  //uint64_t comps_, tracks_, calls_;
32 };
33 
34 #endif
CachingSeedCleanerBySharedInput::done
void done() override
Tells the cleaner that the seeds are finished, and so it can clear any cache it has.
Definition: CachingSeedCleanerBySharedInput.cc:16
CachingSeedCleanerBySharedInput::init
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 ...
Definition: CachingSeedCleanerBySharedInput.cc:11
fileCollector.seed
seed
Definition: fileCollector.py:127
RedundantSeedCleaner.h
CachingSeedCleanerBySharedInput
Definition: CachingSeedCleanerBySharedInput.h:8
CachingSeedCleanerBySharedInput::CachingSeedCleanerBySharedInput
CachingSeedCleanerBySharedInput(unsigned int numHitsForSeedCleaner=4, bool onlyPixelHits=false)
Definition: CachingSeedCleanerBySharedInput.h:21
CachingSeedCleanerBySharedInput::theOnlyPixelHits
bool theOnlyPixelHits
Definition: CachingSeedCleanerBySharedInput.h:29
CachingSeedCleanerBySharedInput::add
void add(const Trajectory *traj) override
Informs the cleaner that a new trajectory has been made, in case the cleaner keeps a local collection...
Definition: CachingSeedCleanerBySharedInput.cc:23
CachingSeedCleanerBySharedInput::theVault
std::vector< Trajectory::RecHitContainer > theVault
Definition: CachingSeedCleanerBySharedInput.h:25
CachingSeedCleanerBySharedInput::good
bool good(const TrajectorySeed *seed) override
Returns true if the seed is not overlapping with another trajectory.
Definition: CachingSeedCleanerBySharedInput.cc:43
RedundantSeedCleaner
Definition: RedundantSeedCleaner.h:21
Trajectory
Definition: Trajectory.h:38
TrajectorySeed
Definition: TrajectorySeed.h:18
CachingSeedCleanerBySharedInput::theCache
std::unordered_multimap< unsigned int, unsigned int > theCache
Definition: CachingSeedCleanerBySharedInput.h:26
HLT_FULL_cff.numHitsForSeedCleaner
numHitsForSeedCleaner
Definition: HLT_FULL_cff.py:111377
CachingSeedCleanerBySharedInput::theNumHitsForSeedCleaner
int theNumHitsForSeedCleaner
Definition: CachingSeedCleanerBySharedInput.h:28