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 
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,
86  const reco::TransientTrack track,
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
98  const TrackerTopology *tTopo) const;
99 
100  // return DYT-related informations
101  const reco::DYTInfo* getDYTInfo() {return dytInfo;}
102 
103  protected:
104 
106 
109  std::map<DetId, int> &) const;
110 
113  ConstRecHitContainer&) const;
114 
117  const std::map<DetId, int> &) const;
118 
120  void printHits(const ConstRecHitContainer&) const;
121 
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
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
edm::Handle< GEMRecHitCollection > theGEMRecHits
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
edm::Handle< ME0SegmentCollection > theME0RecHits
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
Definition: Event.h:16
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< MuonTransientTrackingRecHit > MuonRecHitPointer
std::shared_ptr< TrackingRecHit const > ConstRecHitPointer
MuonTransientTrackingRecHit::MuonRecHitContainer MuonRecHitContainer
std::vector< Trajectory > TC
edm::EDGetTokenT< ME0SegmentCollection > theME0RecHitToken
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
edm::InputTag theGEMRecHitLabel
virtual void setEvent(const edm::Event &)
pass the Event to the algo at each event
edm::InputTag theME0RecHitLabel
GlobalMuonRefitter(const edm::ParameterSet &, const MuonServiceProxy *, edm::ConsumesCollector &)
constructor with Parameter Set and MuonServiceProxy
edm::EDGetTokenT< DTRecSegment4DCollection > all4DSegmentsToken
reco::DYTInfo * dytInfo
TransientTrackingRecHit::RecHitContainer RecHitContainer
TransientTrackingRecHit::ConstRecHitContainer ConstRecHitContainer
MuonTransientTrackingRecHit::ConstMuonRecHitContainer ConstMuonRecHitContainer
virtual ~GlobalMuonRefitter()
destructor
std::shared_ptr< MuonTransientTrackingRecHit const > ConstMuonRecHitPointer
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
edm::EDGetTokenT< GEMRecHitCollection > theGEMRecHitToken
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