#include <CachingSeedCleanerBySharedInput.h>
Public Member Functions | |
void | add (const Trajectory *traj) override |
Informs the cleaner that a new trajectory has been made, in case the cleaner keeps a local collection of those tracks (i.e. in a map) More... | |
CachingSeedCleanerBySharedInput (unsigned int numHitsForSeedCleaner=4, bool onlyPixelHits=false) | |
void | done () override |
Tells the cleaner that the seeds are finished, and so it can clear any cache it has. More... | |
bool | good (const TrajectorySeed *seed) override |
Returns true if the seed is not overlapping with another trajectory. More... | |
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 to keep a local collection of trajectories. More... | |
Public Member Functions inherited from RedundantSeedCleaner | |
void | clean (const std::vector< TrajectorySeed > &, std::vector< TrajectorySeed > &) |
clean More... | |
void | define (std::vector< TrajectorySeed > &) |
collection definition More... | |
RedundantSeedCleaner () | |
constructor More... | |
virtual | ~RedundantSeedCleaner () |
~RedundantSeedCleaner () | |
destructor More... | |
Private Attributes | |
std::unordered_multimap< unsigned int, unsigned int > | theCache |
int | theNumHitsForSeedCleaner |
bool | theOnlyPixelHits |
std::vector< Trajectory::RecHitContainer > | theVault |
Merge of SeedCleanerBySharedInput and CachingSeedCleanerByHitPosition
Definition at line 8 of file CachingSeedCleanerBySharedInput.h.
|
inline |
Definition at line 22 of file CachingSeedCleanerBySharedInput.h.
|
overridevirtual |
Informs the cleaner that a new trajectory has been made, in case the cleaner keeps a local collection of those tracks (i.e. in a map)
Implements RedundantSeedCleaner.
Definition at line 24 of file CachingSeedCleanerBySharedInput.cc.
References h, hfClusterShapes_cfi::hits, training_settings::idx, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, theCache, theOnlyPixelHits, and theVault.
Referenced by counter.Counter::register().
|
overridevirtual |
Tells the cleaner that the seeds are finished, and so it can clear any cache it has.
Implements RedundantSeedCleaner.
Definition at line 15 of file CachingSeedCleanerBySharedInput.cc.
|
overridevirtual |
Returns true if the seed is not overlapping with another trajectory.
Implements RedundantSeedCleaner.
Definition at line 43 of file CachingSeedCleanerBySharedInput.cc.
References TrackingRecHit::all, plotBeamSpotDB::first, runEdmFileComparison::found, plotBeamSpotDB::last, min(), TrajectorySeed::nHits(), TrajectorySeed::recHits(), protons_cff::t, theCache, theNumHitsForSeedCleaner, and theVault.
|
overridevirtual |
Provides the cleaner a pointer to the vector where trajectories are stored, in case it does not want to keep a local collection of trajectories.
Implements RedundantSeedCleaner.
Definition at line 11 of file CachingSeedCleanerBySharedInput.cc.
|
private |
|
private |
Definition at line 30 of file CachingSeedCleanerBySharedInput.h.
Referenced by good().
|
private |
Definition at line 31 of file CachingSeedCleanerBySharedInput.h.
Referenced by add().
|
private |