#include <PixelTrackCleanerBySharedHits.h>
PixelTrackCleanerBySharedHits::PixelTrackCleanerBySharedHits |
( |
const edm::ParameterSet & |
cfg | ) |
|
PixelTrackCleanerBySharedHits::~PixelTrackCleanerBySharedHits |
( |
| ) |
|
|
virtual |
void PixelTrackCleanerBySharedHits::cleanTrack |
( |
| ) |
|
|
private |
Implements PixelTrackCleaner.
Definition at line 19 of file PixelTrackCleanerBySharedHits.cc.
References i, LogDebug, and findQualityFiles::size.
21 typedef std::vector<const TrackingRecHit *> RecHits;
24 LogDebug(
"PixelTrackCleanerBySharedHits") <<
"Cleanering tracks" <<
"\n";
25 int size = trackHitPairs.size();
31 const RecHits& recHits1 = trackHitPairs.at(
iTrack1).second;
40 const RecHits& recHits2 = trackHitPairs.at(
iTrack2).second;
42 int commonRecHits = 0;
43 for (
int iRecHit1 = 0; iRecHit1 < (int)recHits1.size(); iRecHit1++)
45 for (
int iRecHit2 = 0; iRecHit2 < (int)recHits2.size(); iRecHit2++)
47 if (
recHitsAreEqual(recHits1.at(iRecHit1), recHits2.at(iRecHit2))) commonRecHits++;
54 vector<TrackWithRecHits> cleanedTracks;
58 if (
trackOk.at(
i)) cleanedTracks.push_back(trackHitPairs.at(
i));
59 else delete trackHitPairs.at(
i).first;
bool recHitsAreEqual(const TrackingRecHit *recHit1, const TrackingRecHit *recHit2)
std::vector< bool > trackOk
tuple size
Write out results.
int PixelTrackCleanerBySharedHits::iTrack1 |
|
private |
int PixelTrackCleanerBySharedHits::iTrack2 |
|
private |
std::vector<bool> PixelTrackCleanerBySharedHits::trackOk |
|
private |