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 
34 
35 namespace edm {class Event;}
36 namespace reco {class TransientTrack;}
37 
39 class TrackerTopology;
40 
42 class MuonServiceProxy;
43 class Trajectory;
44 
45 class TrajectoryFitter;
46 
48 
49  public:
50 
55 
60 
61  typedef std::vector<Trajectory> TC;
62  typedef TC::const_iterator TI;
63 
64  enum subDetector { PXB = 1, PXF = 2, TIB = 3, TID = 4, TOB = 5, TEC = 6 };
65 
66  public:
67 
70 
72  virtual ~GlobalMuonRefitter();
73 
75  virtual void setEvent(const edm::Event&);
76 
78  void setServices(const edm::EventSetup&);
79 
81  std::vector<Trajectory> refit(const reco::Track& globalTrack, const int theMuonHitsOption,
82  const TrackerTopology *tTopo) const;
83 
85  std::vector<Trajectory> refit(const reco::Track& globalTrack,
88  const int theMuonHitsOption,
89  const TrackerTopology *tTopo) const;
90 
92  std::vector<Trajectory> transform(const reco::Track& newTrack,
93  const reco::TransientTrack track,
94  const TransientTrackingRecHit::ConstRecHitContainer& recHitsForReFit) const;
95 
96  // get rid of selected station RecHits
97  ConstRecHitContainer getRidOfSelectStationHits(const ConstRecHitContainer& hits,
98  const TrackerTopology *tTopo) const;
99 
100  // return DYT-related informations
101  const reco::DYTInfo* getDYTInfo() {return dytInfo;}
102 
103  protected:
104 
105  enum RefitDirection{insideOut,outsideIn,undetermined};
106 
108  void checkMuonHits(const reco::Track&, ConstRecHitContainer&,
109  std::map<DetId, int> &) const;
110 
112  void getFirstHits(const reco::Track&, ConstRecHitContainer&,
113  ConstRecHitContainer&) const;
114 
116  ConstRecHitContainer selectMuonHits(const Trajectory&,
117  const std::map<DetId, int> &) const;
118 
120  void printHits(const ConstRecHitContainer&) const;
121 
122  RefitDirection checkRecHitsOrdering(const ConstRecHitContainer&) const;
123 
124  const MuonServiceProxy* service() const { return theService; }
125 
126  protected:
129  float thePtCut;
130 
131  private:
132 
134  float theProbCut;
142 
155 
159 
160  unsigned long long theCacheId_TRH;
161 
163 
165 
167 
169 
170  std::vector<int> theDYTthrs;
175 
177  std::unique_ptr<TrajectoryFitter> theFitter;
178 
182 
185 
188 
193 };
194 #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::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