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 
28 
29 namespace edm {class Event;}
30 namespace reco {class TransientTrack;}
31 
33 class TrackerTopology;
34 
36 class MuonServiceProxy;
37 class Trajectory;
38 
39 class TrajectoryFitter;
40 
42 
43  public:
44 
49 
54 
55  typedef std::vector<Trajectory> TC;
56  typedef TC::const_iterator TI;
57 
58  enum subDetector { PXB = 1, PXF = 2, TIB = 3, TID = 4, TOB = 5, TEC = 6 };
59 
60  public:
61 
64 
66  virtual ~GlobalMuonRefitter();
67 
69  virtual void setEvent(const edm::Event&);
70 
72  void setServices(const edm::EventSetup&);
73 
75  std::vector<Trajectory> refit(const reco::Track& globalTrack, const int theMuonHitsOption,
76  const TrackerTopology *tTopo) const;
77 
79  std::vector<Trajectory> refit(const reco::Track& globalTrack,
80  const reco::TransientTrack track,
82  const int theMuonHitsOption,
83  const TrackerTopology *tTopo) const;
84 
86  std::vector<Trajectory> transform(const reco::Track& newTrack,
87  const reco::TransientTrack track,
88  const TransientTrackingRecHit::ConstRecHitContainer& recHitsForReFit) const;
89 
90  // get rid of selected station RecHits
92  const TrackerTopology *tTopo) const;
93 
94  // return DYT-related informations
95  const reco::DYTInfo* getDYTInfo() {return dytInfo;}
96 
97  protected:
98 
100 
103  std::map<DetId, int> &) const;
104 
107  ConstRecHitContainer&) const;
108 
111  const std::map<DetId, int> &) const;
112 
114  void printHits(const ConstRecHitContainer&) const;
115 
117 
118  const MuonServiceProxy* service() const { return theService; }
119 
120  protected:
123  float thePtCut;
124 
125  private:
126 
128  float theProbCut;
134 
141 
145 
146  unsigned long long theCacheId_TRH;
147 
149 
151 
153 
155 
156  std::vector<int> theDYTthrs;
161 
163  std::unique_ptr<TrajectoryFitter> theFitter;
164 
168 
171 
174 
179 };
180 #endif
std::string theMuonRecHitBuilderName
void printHits(const ConstRecHitContainer &) const
print all RecHits of a trajectory
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
std::vector< ConstRecHitPointer > RecHitContainer
void setServices(const edm::EventSetup &)
set the services needed by the TrackTransformer
TransientTrackingRecHit::ConstRecHitContainer ConstRecHitContainer
edm::EDGetTokenT< CSCSegmentCollection > CSCSegmentsToken
TransientTrackingRecHit::ConstRecHitPointer ConstRecHitPointer
std::unique_ptr< TrajectoryFitter > theFitter
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::Handle< DTRecSegment4DCollection > all4DSegments
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
std::shared_ptr< TrackingRecHit const > ConstRecHitPointer
MuonTransientTrackingRecHit::MuonRecHitContainer MuonRecHitContainer
std::vector< Trajectory > TC
edm::Handle< CSCRecHit2DCollection > theCSCRecHits
RefitDirection checkRecHitsOrdering(const ConstRecHitContainer &) const
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
virtual void setEvent(const edm::Event &)
pass the Event to the algo at each event
GlobalMuonRefitter(const edm::ParameterSet &, const MuonServiceProxy *, edm::ConsumesCollector &)
constructor with Parameter Set and MuonServiceProxy
edm::EDGetTokenT< DTRecSegment4DCollection > all4DSegmentsToken
reco::DYTInfo * dytInfo
TransientTrackingRecHit::RecHitContainer RecHitContainer
MuonTransientTrackingRecHit const * ConstMuonRecHitPointer
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