CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
MuonTrackFinder.h
Go to the documentation of this file.
1 #ifndef RecoMuon_TrackingTools_MuonTrackFinder_H
2 #define RecoMuon_TrackingTools_MuonTrackFinder_H
3 
17 
19 
20 #include <vector>
21 
24 class MuonTrackLoader;
25 
27 public:
30  typedef std::pair<const Trajectory*, reco::TrackRef> TrackCand;
31 
32 public:
34  MuonTrackFinder(std::unique_ptr<MuonTrajectoryBuilder> ConcreteMuonTrajectoryBuilder,
35  std::unique_ptr<MuonTrackLoader> trackLoader,
37 
39  MuonTrackFinder(std::unique_ptr<MuonTrajectoryBuilder> ConcreteMuonTrajectoryBuilder,
40  std::unique_ptr<MuonTrackLoader> trackLoader,
41  std::unique_ptr<MuonTrajectoryCleaner> cleaner,
43 
45  virtual ~MuonTrackFinder();
46 
49  edm::Event&,
50  const edm::EventSetup&);
51 
55  void reconstruct(const std::vector<TrackCand>&, edm::Event&, const edm::EventSetup&);
56 
57 private:
59  void setEvent(const edm::Event&);
60 
63 
65  void load(CandidateContainer&, edm::Event&, const TrackerTopology& ttopo);
66 
67 private:
69 
70  std::unique_ptr<MuonTrajectoryBuilder> theTrajBuilder;
71 
72  std::unique_ptr<MuonTrajectoryCleaner> theTrajCleaner;
73 
74  std::unique_ptr<MuonTrackLoader> theTrackLoader;
75 };
76 #endif
edm::OrphanHandle< reco::TrackCollection > load(TrajectoryContainer &, edm::Event &, const TrackerTopology &ttopo)
convert the trajectories into tracks and load them in to the event
std::unique_ptr< MuonTrajectoryCleaner > theTrajCleaner
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > theTtopoToken
std::pair< const Trajectory *, reco::TrackRef > TrackCand
void setEvent(const edm::Event &)
percolate the Event Setup
virtual ~MuonTrackFinder()
destructor
MuonCandidate::TrajectoryContainer TrajectoryContainer
std::unique_ptr< MuonTrajectoryBuilder > theTrajBuilder
std::vector< std::unique_ptr< MuonCandidate > > CandidateContainer
Definition: MuonCandidate.h:18
MuonTrackFinder(std::unique_ptr< MuonTrajectoryBuilder > ConcreteMuonTrajectoryBuilder, std::unique_ptr< MuonTrackLoader > trackLoader, edm::ConsumesCollector iC)
Constructor, with default cleaner. For the STA reconstruction the trackLoader must have the propagato...
edm::OrphanHandle< reco::TrackCollection > reconstruct(const edm::Handle< edm::View< TrajectorySeed > > &, edm::Event &, const edm::EventSetup &)
reconstruct standalone tracks starting from a collection of seeds
std::vector< std::unique_ptr< Trajectory > > TrajectoryContainer
Definition: MuonCandidate.h:17
std::unique_ptr< MuonTrackLoader > theTrackLoader
MuonCandidate::CandidateContainer CandidateContainer