CMS 3D CMS Logo

GlobalMuonRefitter.h
Go to the documentation of this file.
1 #ifndef RecoMuon_GlobalTrackingTools_GlobalMuonRefitter_H
2 #define RecoMuon_GlobalTrackingTools_GlobalMuonRefitter_H
3 
35 
36 namespace edm {class Event;}
37 namespace reco {class TransientTrack;}
38 
40 class TrackerTopology;
41 
43 class MuonServiceProxy;
44 class Trajectory;
45 
46 class TrajectoryFitter;
47 
49 
50  public:
51 
56 
61 
62  typedef std::vector<Trajectory> TC;
63  typedef TC::const_iterator TI;
64 
65  enum subDetector { PXB = 1, PXF = 2, TIB = 3, TID = 4, TOB = 5, TEC = 6 };
66 
67  public:
68 
71 
73  virtual ~GlobalMuonRefitter();
74 
76  virtual void setEvent(const edm::Event&);
77 
79  void setServices(const edm::EventSetup&);
80 
82  std::vector<Trajectory> refit(const reco::Track& globalTrack, const int theMuonHitsOption,
83  const TrackerTopology *tTopo) const;
84 
86  std::vector<Trajectory> refit(const reco::Track& globalTrack,
89  const int theMuonHitsOption,
90  const TrackerTopology *tTopo) const;
91 
93  std::vector<Trajectory> transform(const reco::Track& newTrack,
94  const reco::TransientTrack track,
95  const TransientTrackingRecHit::ConstRecHitContainer& recHitsForReFit) const;
96 
97  // get rid of selected station RecHits
98  ConstRecHitContainer getRidOfSelectStationHits(const ConstRecHitContainer& hits,
99  const TrackerTopology *tTopo) const;
100 
101  // return DYT-related informations
102  const reco::DYTInfo* getDYTInfo() {return dytInfo;}
103 
104  protected:
105 
106  enum RefitDirection{insideOut,outsideIn,undetermined};
107 
109  void checkMuonHits(const reco::Track&, ConstRecHitContainer&,
110  std::map<DetId, int> &) const;
111 
113  void getFirstHits(const reco::Track&, ConstRecHitContainer&,
114  ConstRecHitContainer&) const;
115 
117  ConstRecHitContainer selectMuonHits(const Trajectory&,
118  const std::map<DetId, int> &) const;
119 
121  void printHits(const ConstRecHitContainer&) const;
122 
123  RefitDirection checkRecHitsOrdering(const ConstRecHitContainer&) const;
124 
125  const MuonServiceProxy* service() const { return theService; }
126 
127  protected:
130  float thePtCut;
131 
132  private:
133 
135  float theProbCut;
143 
156 
160 
161  unsigned long long theCacheId_TRH;
162 
164 
166 
168 
170 
171  std::vector<int> theDYTthrs;
178 
180  std::unique_ptr<TrajectoryFitter> theFitter;
181 
185 
188 
191 
196 };
197 #endif
std::string theMuonRecHitBuilderName
edm::Handle< DTRecHitCollection > theDTRecHits
const reco::DYTInfo * getDYTInfo()
MuonTransientTrackingRecHit::MuonRecHitPointer MuonRecHitPointer
TransientTrackingRecHit::RecHitPointer RecHitPointer
MuonTransientTrackingRecHit::ConstMuonRecHitPointer ConstMuonRecHitPointer
const MuonServiceProxy * theService
RefitDirection theRefitDirection
edm::ESHandle< TransientTrackingRecHitBuilder > theTrackerRecHitBuilder
edm::Handle< CSCSegmentCollection > CSCSegments
std::string thePropagatorName
edm::Handle< GEMRecHitCollection > theGEMRecHits
std::vector< ConstRecHitPointer > RecHitContainer
TransientTrackingRecHit::ConstRecHitContainer ConstRecHitContainer
edm::EDGetTokenT< CSCSegmentCollection > CSCSegmentsToken
TransientTrackingRecHit::ConstRecHitPointer ConstRecHitPointer
std::unique_ptr< TrajectoryFitter > theFitter
edm::ESHandle< TransientTrackingRecHitBuilder > theMuonRecHitBuilder
edm::Handle< ME0SegmentCollection > theME0RecHits
std::vector< int > theDYTthrs
const edm::Event * theEvent
TC::const_iterator TI
edm::Handle< DTRecSegment4DCollection > all4DSegments
std::shared_ptr< MuonTransientTrackingRecHit > MuonRecHitPointer
std::shared_ptr< TrackingRecHit const > ConstRecHitPointer
MuonTransientTrackingRecHit::MuonRecHitContainer MuonRecHitContainer
std::vector< Trajectory > TC
edm::EDGetTokenT< ME0SegmentCollection > theME0RecHitToken
edm::ParameterSet theDYTthrsParameters
edm::Handle< CSCRecHit2DCollection > theCSCRecHits
edm::EDGetTokenT< DTRecHitCollection > theDTRecHitToken
edm::EDGetTokenT< CSCRecHit2DCollection > theCSCRecHitToken
std::shared_ptr< TrackingRecHit const > RecHitPointer
edm::InputTag theDTRecHitLabel
std::vector< ConstMuonRecHitPointer > ConstMuonRecHitContainer
std::vector< ConstRecHitPointer > ConstRecHitContainer
edm::InputTag theGEMRecHitLabel
edm::InputTag theME0RecHitLabel
edm::EDGetTokenT< DTRecSegment4DCollection > all4DSegmentsToken
reco::DYTInfo * dytInfo
TransientTrackingRecHit::RecHitContainer RecHitContainer
fixed size matrix
HLT enums.
MuonTransientTrackingRecHit::ConstMuonRecHitContainer ConstMuonRecHitContainer
std::shared_ptr< MuonTransientTrackingRecHit const > ConstMuonRecHitPointer
unsigned long long theCacheId_TRH
std::string theTrackerRecHitBuilderName
const MuonServiceProxy * service() const
std::vector< MuonRecHitPointer > MuonRecHitContainer
edm::InputTag theCSCRecHitLabel
edm::EDGetTokenT< GEMRecHitCollection > theGEMRecHitToken