CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/RecoPixelVertexing/PixelTrackFitting/interface/PixelTrackCleanerBySharedHits.h

Go to the documentation of this file.
00001 #ifndef PixelTrackFitting_PixelTrackCleanerBySharedHits_H
00002 #define PixelTrackFitting_PixelTrackCleanerBySharedHits_H
00003 
00004 #include "FWCore/Framework/interface/EventSetup.h"
00005 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00006 #include "DataFormats/TrackReco/interface/TrackFwd.h"
00007 #include "DataFormats/TrackerRecHit2D/interface/SiPixelRecHitCollection.h"
00008 #include "RecoPixelVertexing/PixelTrackFitting/interface/TracksWithHits.h"
00009 #include "RecoPixelVertexing/PixelTrackFitting/interface/PixelTrackCleaner.h"
00010 
00011 #include <utility>
00012 #include <vector>
00013 
00014 
00015 class PixelTrackCleanerBySharedHits : public PixelTrackCleaner {
00016 
00017 public:
00018   PixelTrackCleanerBySharedHits( const edm::ParameterSet& cfg);
00019 
00020   virtual ~PixelTrackCleanerBySharedHits();
00021 
00022   typedef pixeltrackfitting::TracksWithRecHits TracksWithRecHits;
00023   virtual TracksWithRecHits cleanTracks(const TracksWithRecHits & tracksWithRecHits);
00024 
00025 private:
00026 
00027   void cleanTrack();
00028   bool recHitsAreEqual(const TrackingRecHit *recHit1, const TrackingRecHit *recHit2);
00029 
00030   std::vector<bool> trackOk;
00031   reco::Track *track1, *track2;
00032   int iTrack1, iTrack2;
00033 
00034 };
00035 
00036 #endif