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 
14 
19 
25 
26 namespace edm {class Event;}
27 namespace reco {class TransientTrack;}
28 
30 class TrackerTopology;
31 
33 class MuonServiceProxy;
34 class Trajectory;
35 
36 class TrajectoryFitter;
37 
39 
40  public:
41 
46 
51 
52  typedef std::vector<Trajectory> TC;
53  typedef TC::const_iterator TI;
54 
55  enum subDetector { PXB = 1, PXF = 2, TIB = 3, TID = 4, TOB = 5, TEC = 6 };
56 
57  public:
58 
61 
63  virtual ~GlobalMuonRefitter();
64 
66  virtual void setEvent(const edm::Event&);
67 
69  void setServices(const edm::EventSetup&);
70 
72  std::vector<Trajectory> refit(const reco::Track& globalTrack, const int theMuonHitsOption,
73  const TrackerTopology *tTopo) const;
74 
76  std::vector<Trajectory> refit(const reco::Track& globalTrack,
77  const reco::TransientTrack track,
79  const int theMuonHitsOption,
80  const TrackerTopology *tTopo) const;
81 
83  std::vector<Trajectory> transform(const reco::Track& newTrack,
84  const reco::TransientTrack track,
85  const TransientTrackingRecHit::ConstRecHitContainer& recHitsForReFit) const;
86 
87  // get rid of selected station RecHits
89  const TrackerTopology *tTopo) const;
90 
91 
92  protected:
93 
95 
98  std::map<DetId, int> &) const;
99 
102  ConstRecHitContainer&) const;
103 
106  const std::map<DetId, int> &) const;
107 
109  void printHits(const ConstRecHitContainer&) const;
110 
112 
113  const MuonServiceProxy* service() const { return theService; }
114 
115  protected:
118  float thePtCut;
119 
120  private:
121 
123  float theProbCut;
129 
134 
138 
139  unsigned long long theCacheId_TRH;
140 
142 
144 
146 
148 
149  std::vector<int> theDYTthrs;
150 
153 
156 
159 
162 };
163 #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