CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch9/src/RecoMuon/TrackingTools/interface/MuonTrackLoader.h

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 &parameterSet, 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<std::pair<Trajectory*, reco::TrackRef> >, 
00056                                                         const std::string& = "", 
00057                                                         bool = true);
00058 
00060     edm::OrphanHandle<reco::MuonTrackLinksCollection> loadTracks(const CandidateContainer&,
00061                                                                  edm::Event&); 
00062   
00063   private:
00064  
00066     std::pair<bool,reco::Track> buildTrackAtPCA(const Trajectory& trajectory, const reco::BeamSpot &) const;
00067 
00069     std::pair<bool,reco::Track> buildTrackUpdatedAtPCA(const reco::Track& trackAtPCA, const reco::BeamSpot &) const;
00070 
00071     reco::TrackExtra buildTrackExtra(const Trajectory&) const;
00072 
00073     const MuonServiceProxy *theService;
00074 
00075     bool theUpdatingAtVtx;
00076     MuonUpdatorAtVertex *theUpdatorAtVtx;
00077 
00078     bool theTrajectoryFlag;
00079 
00080     bool theSmoothingStep;
00081     std::string theSmootherName;
00082     edm::ESHandle<TrajectorySmoother> theSmoother;
00083 
00084     edm::InputTag theBeamSpotInputTag; 
00085 
00087     std::string theL2SeededTkLabel; 
00088     bool thePutTkTrackFlag;
00089     bool theSmoothTkTrackFlag;
00090     bool theAllowNoVtxFlag;
00091 };
00092 #endif