File indexing completed on 2024-09-07 04:37:48
0001 #ifndef RecoMuon_TrackingTools_MuonTrajectoryCleaner_H
0002 #define RecoMuon_TrackingTools_MuonTrajectoryCleaner_H
0003
0004
0005
0006
0007
0008
0009
0010 #include "TrackingTools/PatternTools/interface/Trajectory.h"
0011 #include "RecoMuon/TrackingTools/interface/MuonCandidate.h"
0012 #include "FWCore/Framework/interface/Event.h"
0013 #include <vector>
0014
0015
0016 class MuonTrajectoryCleaner {
0017 public:
0018 typedef MuonCandidate::TrajectoryContainer TrajectoryContainer;
0019 typedef MuonCandidate::CandidateContainer CandidateContainer;
0020
0021
0022 MuonTrajectoryCleaner() : reportGhosts_(false) {}
0023
0024
0025 MuonTrajectoryCleaner(bool reportGhosts) : reportGhosts_(reportGhosts) {}
0026
0027
0028 virtual ~MuonTrajectoryCleaner() {}
0029
0030
0031
0032
0033 void clean(TrajectoryContainer& muonTrajectories,
0034 edm::Event& evt,
0035 const edm::Handle<edm::View<TrajectorySeed> >& seeds);
0036
0037
0038 void clean(CandidateContainer& muonTrajectories);
0039
0040 protected:
0041 private:
0042 bool reportGhosts_;
0043 };
0044 #endif