CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GlobalMuonRefitter.h
Go to the documentation of this file.
1 #ifndef RecoMuon_GlobalTrackingTools_GlobalMuonRefitter_H
2 #define RecoMuon_GlobalTrackingTools_GlobalMuonRefitter_H
3 
16 
21 
27 
28 namespace edm {class Event;}
29 namespace reco {class TransientTrack;}
30 
32 class TrackerTopology;
33 
35 class MuonServiceProxy;
36 class Trajectory;
37 
38 class TrajectoryFitter;
39 
41 
42  public:
43 
48 
53 
54  typedef std::vector<Trajectory> TC;
55  typedef TC::const_iterator TI;
56 
57  enum subDetector { PXB = 1, PXF = 2, TIB = 3, TID = 4, TOB = 5, TEC = 6 };
58 
59  public:
60 
63 
65  virtual ~GlobalMuonRefitter();
66 
68  virtual void setEvent(const edm::Event&);
69 
71  void setServices(const edm::EventSetup&);
72 
74  std::vector<Trajectory> refit(const reco::Track& globalTrack, const int theMuonHitsOption,
75  const TrackerTopology *tTopo) const;
76 
78  std::vector<Trajectory> refit(const reco::Track& globalTrack,
79  const reco::TransientTrack track,
81  const int theMuonHitsOption,
82  const TrackerTopology *tTopo) const;
83 
85  std::vector<Trajectory> transform(const reco::Track& newTrack,
86  const reco::TransientTrack track,
87  const TransientTrackingRecHit::ConstRecHitContainer& recHitsForReFit) const;
88 
89  // get rid of selected station RecHits
91  const TrackerTopology *tTopo) const;
92 
93 
94  protected:
95 
97 
100  std::map<DetId, int> &) const;
101 
104  ConstRecHitContainer&) const;
105 
108  const std::map<DetId, int> &) const;
109 
111  void printHits(const ConstRecHitContainer&) const;
112 
114 
115  const MuonServiceProxy* service() const { return theService; }
116 
117  protected:
120  float thePtCut;
121 
122  private:
123 
125  float theProbCut;
131 
136 
140 
141  unsigned long long theCacheId_TRH;
142 
144 
146 
148 
150 
151  std::vector<int> theDYTthrs;
152 
155 
158 
161 
164 };
165 #endif
std::string theMuonRecHitBuilderName
void printHits(const ConstRecHitContainer &) const
print all RecHits of a trajectory
edm::Handle< DTRecHitCollection > theDTRecHits
MuonTransientTrackingRecHit::MuonRecHitPointer MuonRecHitPointer
TransientTrackingRecHit::RecHitPointer RecHitPointer
MuonTransientTrackingRecHit::ConstMuonRecHitPointer ConstMuonRecHitPointer
const MuonServiceProxy * theService
RefitDirection theRefitDirection
edm::ESHandle< TransientTrackingRecHitBuilder > theTrackerRecHitBuilder
std::string thePropagatorName
void setServices(const edm::EventSetup &)
set the services needed by the TrackTransformer
TransientTrackingRecHit::ConstRecHitContainer ConstRecHitContainer
TransientTrackingRecHit::ConstRecHitPointer ConstRecHitPointer
std::vector< ConstRecHitPointer > RecHitContainer
edm::ESHandle< TransientTrackingRecHitBuilder > theMuonRecHitBuilder
void checkMuonHits(const reco::Track &, ConstRecHitContainer &, std::map< DetId, int > &) const
check muon RecHits, calculate chamber occupancy and select hits to be used in the final fit ...
std::vector< int > theDYTthrs
void getFirstHits(const reco::Track &, ConstRecHitContainer &, ConstRecHitContainer &) const
get the RecHits in the tracker and the first muon chamber with hits
const edm::Event * theEvent
TC::const_iterator TI
edm::ESHandle< TrajectoryFitter > theFitter
ConstRecHitContainer selectMuonHits(const Trajectory &, const std::map< DetId, int > &) const
select muon hits compatible with trajectory; check hits in chambers with showers
ConstRecHitContainer getRidOfSelectStationHits(const ConstRecHitContainer &hits, const TrackerTopology *tTopo) const
MuonTransientTrackingRecHit::MuonRecHitContainer MuonRecHitContainer
std::vector< Trajectory > TC
edm::Handle< CSCRecHit2DCollection > theCSCRecHits
RefitDirection checkRecHitsOrdering(const ConstRecHitContainer &) const
edm::InputTag theDTRecHitLabel
std::vector< ConstMuonRecHitPointer > ConstMuonRecHitContainer
std::vector< ConstRecHitPointer > ConstRecHitContainer
virtual void setEvent(const edm::Event &)
pass the Event to the algo at each event
GlobalMuonRefitter(const edm::ParameterSet &, const MuonServiceProxy *)
constructor with Parameter Set and MuonServiceProxy
TransientTrackingRecHit::RecHitContainer RecHitContainer
TransientTrackingRecHit::ConstRecHitContainer ConstRecHitContainer
MuonTransientTrackingRecHit::ConstMuonRecHitContainer ConstMuonRecHitContainer
virtual ~GlobalMuonRefitter()
destructor
unsigned long long theCacheId_TRH
std::string theTrackerRecHitBuilderName
const MuonServiceProxy * service() const
std::vector< MuonRecHitPointer > MuonRecHitContainer
std::vector< Trajectory > refit(const reco::Track &globalTrack, const int theMuonHitsOption, const TrackerTopology *tTopo) const
build combined trajectory from sta Track and tracker RecHits
edm::InputTag theCSCRecHitLabel
std::vector< Trajectory > transform(const reco::Track &newTrack, const reco::TransientTrack track, const TransientTrackingRecHit::ConstRecHitContainer &recHitsForReFit) const
refit the track with a new set of RecHits