Go to the documentation of this file.00001 #ifndef RecoMuon_TrackingTools_MuonTrackLoader_H
00002 #define RecoMuon_TrackingTools_MuonTrackLoader_H
00003
00013 #include "FWCore/Framework/interface/ESHandle.h"
00014 #include "FWCore/Framework/interface/EventSetup.h"
00015
00016 #include "DataFormats/TrackReco/interface/TrackFwd.h"
00017 #include "DataFormats/TrackReco/interface/TrackExtraFwd.h"
00018 #include "DataFormats/Common/interface/OrphanHandle.h"
00019 #include "DataFormats/MuonReco/interface/MuonFwd.h"
00020 #include "DataFormats/BeamSpot/interface/BeamSpot.h"
00021
00022 #include "FWCore/Utilities/interface/InputTag.h"
00023
00024 #include "RecoMuon/TrackingTools/interface/MuonCandidate.h"
00025
00026 namespace edm {class Event; class EventSetup; class ParameterSet;}
00027
00028 class Trajectory;
00029 class Propagator;
00030 class MuonServiceProxy;
00031 class MuonUpdatorAtVertex;
00032 class TrajectorySmoother;
00033 class ForwardDetLayer;
00034 class BarrelDetLayer;
00035
00036 class MuonTrackLoader {
00037 public:
00038
00039 typedef MuonCandidate::TrajectoryContainer TrajectoryContainer;
00040 typedef MuonCandidate::CandidateContainer CandidateContainer;
00041
00043 MuonTrackLoader(edm::ParameterSet ¶meterSet, const MuonServiceProxy *service =0);
00044
00046 virtual ~MuonTrackLoader();
00047
00049 edm::OrphanHandle<reco::TrackCollection> loadTracks(const TrajectoryContainer&,
00050 edm::Event&,const std::string& = "",
00051 bool = true);
00052
00054 edm::OrphanHandle<reco::TrackCollection> loadTracks(const TrajectoryContainer&,
00055 edm::Event&, std::vector<bool>&,
00056 const std::string& = "",
00057 bool = true);
00058
00060 edm::OrphanHandle<reco::TrackCollection> loadTracks(const TrajectoryContainer&,
00061 edm::Event&,const std::vector<std::pair<Trajectory*, reco::TrackRef> >&,
00062 const std::string& = "",
00063 bool = true);
00064
00066 edm::OrphanHandle<reco::MuonTrackLinksCollection> loadTracks(const CandidateContainer&,
00067 edm::Event&);
00068
00069 private:
00070
00072 std::pair<bool,reco::Track> buildTrackAtPCA(const Trajectory& trajectory, const reco::BeamSpot &) const;
00073
00075 std::pair<bool,reco::Track> buildTrackUpdatedAtPCA(const reco::Track& trackAtPCA, const reco::BeamSpot &) const;
00076
00077 reco::TrackExtra buildTrackExtra(const Trajectory&) const;
00078
00079 const MuonServiceProxy *theService;
00080
00081 bool theUpdatingAtVtx;
00082 MuonUpdatorAtVertex *theUpdatorAtVtx;
00083
00084 bool theTrajectoryFlag;
00085
00086 bool theSmoothingStep;
00087 std::string theSmootherName;
00088 edm::ESHandle<TrajectorySmoother> theSmoother;
00089
00090 edm::InputTag theBeamSpotInputTag;
00091
00093 std::string theL2SeededTkLabel;
00094 bool thePutTkTrackFlag;
00095 bool theSmoothTkTrackFlag;
00096 bool theAllowNoVtxFlag;
00097 };
00098 #endif