CMS 3D CMS Logo

GlobalMuonTrackMatcher.h
Go to the documentation of this file.
1 #ifndef RecoMuon_GlobalTrackingTools_GlobalMuonTrackMatcher_H
2 #define RecoMuon_GlobalTrackingTools_GlobalMuonTrackMatcher_H
3 
26 
28 class MuonServiceProxy;
29 class Trajectory;
30 
31 namespace edm {
32  class ParameterSet;
33 }
34 
35 // ---------------------
36 // -- Class Interface --
37 // ---------------------
38 
40 public:
41  typedef std::pair<const Trajectory*, reco::TrackRef> TrackCand;
42 
45 
47  virtual ~GlobalMuonTrackMatcher();
48 
50  bool matchTight(const TrackCand& sta, const TrackCand& track) const;
51 
55  double match(const TrackCand& sta, const TrackCand& track, int matchOption = 0, int surfaceOption = 1) const;
56 
58  std::vector<TrackCand> match(const TrackCand& sta, const std::vector<TrackCand>& tracks) const;
59 
61  std::vector<TrackCand>::const_iterator matchOne(const TrackCand& sta, const std::vector<TrackCand>& tracks) const;
62 
63  double match_R_IP(const TrackCand&, const TrackCand&) const;
64  double match_D(const TrajectoryStateOnSurface&, const TrajectoryStateOnSurface&) const;
65  double match_d(const TrajectoryStateOnSurface&, const TrajectoryStateOnSurface&) const;
70 
71  std::pair<TrajectoryStateOnSurface, TrajectoryStateOnSurface> convertToTSOSTk(const TrackCand&,
72  const TrackCand&) const;
73  std::pair<TrajectoryStateOnSurface, TrajectoryStateOnSurface> convertToTSOSMuHit(const TrackCand&,
74  const TrackCand&) const;
75  std::pair<TrajectoryStateOnSurface, TrajectoryStateOnSurface> convertToTSOSTkHit(const TrackCand&,
76  const TrackCand&) const;
78 
79 private:
80  double theMinP;
81  double theMinPt;
85  double theChi2_1;
86  double theChi2_2;
87  double theChi2_3;
88  double theLocChi2;
89  double theDeltaD_1;
90  double theDeltaD_2;
91  double theDeltaD_3;
92  double theDeltaR_1;
93  double theDeltaR_2;
94  double theDeltaR_3;
95  double theQual_1;
96  double theQual_2;
97  double theQual_3;
98 
101 };
102 
103 #endif
GlobalMuonTrackMatcher::theQual_1
double theQual_1
Definition: GlobalMuonTrackMatcher.h:95
GlobalMuonTrackMatcher::match_d
double match_d(const TrajectoryStateOnSurface &, const TrajectoryStateOnSurface &) const
Definition: GlobalMuonTrackMatcher.cc:605
GlobalMuonTrackMatcher::theService
const MuonServiceProxy * theService
Definition: GlobalMuonTrackMatcher.h:99
PDWG_EXOHSCP_cff.tracks
tracks
Definition: PDWG_EXOHSCP_cff.py:28
GlobalMuonTrackMatcher::theChi2_3
double theChi2_3
Definition: GlobalMuonTrackMatcher.h:87
GlobalMuonTrackMatcher::convertToTSOSTk
std::pair< TrajectoryStateOnSurface, TrajectoryStateOnSurface > convertToTSOSTk(const TrackCand &, const TrackCand &) const
Definition: GlobalMuonTrackMatcher.cc:359
edm
HLT enums.
Definition: AlignableModifier.h:19
GlobalMuonTrackMatcher::match
double match(const TrackCand &sta, const TrackCand &track, int matchOption=0, int surfaceOption=1) const
Definition: GlobalMuonTrackMatcher.cc:100
GlobalMuonTrackMatcher::theChi2_2
double theChi2_2
Definition: GlobalMuonTrackMatcher.h:86
GlobalMuonTrackMatcher::convertToTSOSTkHit
std::pair< TrajectoryStateOnSurface, TrajectoryStateOnSurface > convertToTSOSTkHit(const TrackCand &, const TrackCand &) const
Definition: GlobalMuonTrackMatcher.cc:461
GlobalMuonTrackMatcher::theChi2_1
double theChi2_1
Definition: GlobalMuonTrackMatcher.h:85
GlobalMuonTrackMatcher::theMinP
double theMinP
Definition: GlobalMuonTrackMatcher.h:80
GlobalMuonTrackMatcher::match_D
double match_D(const TrajectoryStateOnSurface &, const TrajectoryStateOnSurface &) const
Definition: GlobalMuonTrackMatcher.cc:596
GlobalMuonTrackMatcher::theMinPt
double theMinPt
Definition: GlobalMuonTrackMatcher.h:81
GlobalMuonTrackMatcher::thePt_threshold1
double thePt_threshold1
Definition: GlobalMuonTrackMatcher.h:82
GlobalMuonTrackMatcher::theDeltaD_2
double theDeltaD_2
Definition: GlobalMuonTrackMatcher.h:90
TrajectoryStateOnSurface
Definition: TrajectoryStateOnSurface.h:16
GlobalMuonTrackMatcher::samePlane
bool samePlane(const TrajectoryStateOnSurface &, const TrajectoryStateOnSurface &) const
Definition: GlobalMuonTrackMatcher.cc:508
TrackFwd.h
GlobalMuonTrackMatcher::match_Chi2
double match_Chi2(const TrajectoryStateOnSurface &, const TrajectoryStateOnSurface &) const
Definition: GlobalMuonTrackMatcher.cc:533
GlobalMuonTrackMatcher::theQual_3
double theQual_3
Definition: GlobalMuonTrackMatcher.h:97
GlobalMuonTrackMatcher::match_Rpos
double match_Rpos(const TrajectoryStateOnSurface &, const TrajectoryStateOnSurface &) const
Definition: GlobalMuonTrackMatcher.cc:585
GlobalMuonTrackMatcher::TrackCand
std::pair< const Trajectory *, reco::TrackRef > TrackCand
Definition: GlobalMuonTrackMatcher.h:41
GlobalMuonTrackMatcher::theDeltaR_3
double theDeltaR_3
Definition: GlobalMuonTrackMatcher.h:94
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
GlobalMuonTrackMatcher::~GlobalMuonTrackMatcher
virtual ~GlobalMuonTrackMatcher()
destructor
Definition: GlobalMuonTrackMatcher.cc:75
edm::ParameterSet
Definition: ParameterSet.h:36
ParameterSet
Definition: Functions.h:16
GlobalMuonTrackMatcher::theDeltaD_1
double theDeltaD_1
Definition: GlobalMuonTrackMatcher.h:89
GlobalMuonTrackMatcher::theDeltaR_2
double theDeltaR_2
Definition: GlobalMuonTrackMatcher.h:93
GlobalMuonTrackMatcher::theLocChi2
double theLocChi2
Definition: GlobalMuonTrackMatcher.h:88
GlobalMuonTrackMatcher::GlobalMuonTrackMatcher
GlobalMuonTrackMatcher(const edm::ParameterSet &, const MuonServiceProxy *)
constructor
Definition: GlobalMuonTrackMatcher.cc:49
GlobalMuonTrackMatcher
Definition: GlobalMuonTrackMatcher.h:39
GlobalMuonTrackMatcher::theEta_threshold
double theEta_threshold
Definition: GlobalMuonTrackMatcher.h:84
GlobalMuonTrackMatcher::theOutPropagatorName
std::string theOutPropagatorName
Definition: GlobalMuonTrackMatcher.h:100
GlobalMuonTrackMatcher::matchOne
std::vector< TrackCand >::const_iterator matchOne(const TrackCand &sta, const std::vector< TrackCand > &tracks) const
choose the one tracker track which best matches a muon track
Definition: GlobalMuonTrackMatcher.cc:132
GlobalMuonTrackMatcher::theDeltaD_3
double theDeltaD_3
Definition: GlobalMuonTrackMatcher.h:91
GlobalMuonTrackMatcher::convertToTSOSMuHit
std::pair< TrajectoryStateOnSurface, TrajectoryStateOnSurface > convertToTSOSMuHit(const TrackCand &, const TrackCand &) const
Definition: GlobalMuonTrackMatcher.cc:417
GlobalMuonTrackMatcher::match_Rmom
double match_Rmom(const TrajectoryStateOnSurface &, const TrajectoryStateOnSurface &) const
Definition: GlobalMuonTrackMatcher.cc:574
Trajectory
Definition: Trajectory.h:38
GlobalMuonTrackMatcher::match_dist
double match_dist(const TrajectoryStateOnSurface &, const TrajectoryStateOnSurface &) const
Definition: GlobalMuonTrackMatcher.cc:615
GlobalMuonTrackMatcher::match_R_IP
double match_R_IP(const TrackCand &, const TrackCand &) const
Definition: GlobalMuonTrackMatcher.cc:562
GlobalMuonTrackMatcher::theDeltaR_1
double theDeltaR_1
Definition: GlobalMuonTrackMatcher.h:92
HLT_2018_cff.track
track
Definition: HLT_2018_cff.py:10352
MuonServiceProxy
Definition: MuonServiceProxy.h:38
GlobalMuonTrackMatcher::theQual_2
double theQual_2
Definition: GlobalMuonTrackMatcher.h:96
GlobalMuonTrackMatcher::thePt_threshold2
double thePt_threshold2
Definition: GlobalMuonTrackMatcher.h:83
GlobalMuonTrackMatcher::matchTight
bool matchTight(const TrackCand &sta, const TrackCand &track) const
check if two tracks are compatible (less than Chi2Cut, DeltaDCut, DeltaRCut)
Definition: GlobalMuonTrackMatcher.cc:80