#include <GlobalMuonTrackMatcher.h>
Public Types | |
typedef std::pair< const Trajectory *, reco::TrackRef > | TrackCand |
Public Member Functions | |
std::pair< TrajectoryStateOnSurface, TrajectoryStateOnSurface > | convertToTSOSMuHit (const TrackCand &, const TrackCand &) const |
std::pair< TrajectoryStateOnSurface, TrajectoryStateOnSurface > | convertToTSOSTk (const TrackCand &, const TrackCand &) const |
std::pair< TrajectoryStateOnSurface, TrajectoryStateOnSurface > | convertToTSOSTkHit (const TrackCand &, const TrackCand &) const |
GlobalMuonTrackMatcher (const edm::ParameterSet &, const MuonServiceProxy *) | |
constructor More... | |
double | match (const TrackCand &sta, const TrackCand &track, int matchOption=0, int surfaceOption=1) const |
std::vector< TrackCand > | match (const TrackCand &sta, const std::vector< TrackCand > &tracks) const |
choose all tracks with a matching-chi2 less than Chi2Cut More... | |
double | match_Chi2 (const TrajectoryStateOnSurface &, const TrajectoryStateOnSurface &) const |
double | match_D (const TrajectoryStateOnSurface &, const TrajectoryStateOnSurface &) const |
double | match_d (const TrajectoryStateOnSurface &, const TrajectoryStateOnSurface &) const |
double | match_dist (const TrajectoryStateOnSurface &, const TrajectoryStateOnSurface &) const |
double | match_R_IP (const TrackCand &, const TrackCand &) const |
double | match_Rmom (const TrajectoryStateOnSurface &, const TrajectoryStateOnSurface &) const |
double | match_Rpos (const TrajectoryStateOnSurface &, const TrajectoryStateOnSurface &) const |
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 More... | |
bool | matchTight (const TrackCand &sta, const TrackCand &track) const |
check if two tracks are compatible (less than Chi2Cut, DeltaDCut, DeltaRCut) More... | |
bool | samePlane (const TrajectoryStateOnSurface &, const TrajectoryStateOnSurface &) const |
virtual | ~GlobalMuonTrackMatcher () |
destructor More... | |
Private Attributes | |
double | theChi2_1 |
double | theChi2_2 |
double | theChi2_3 |
double | theDeltaD_1 |
double | theDeltaD_2 |
double | theDeltaD_3 |
double | theDeltaR_1 |
double | theDeltaR_2 |
double | theDeltaR_3 |
double | theEta_threshold |
double | theLocChi2 |
double | theMinP |
double | theMinPt |
std::string | theOutPropagatorName |
double | thePt_threshold1 |
double | thePt_threshold2 |
double | theQual_1 |
double | theQual_2 |
double | theQual_3 |
const MuonServiceProxy * | theService |
Match a standalone muon track with the most compatible tracker tracks in a TrackCollection. GlobalMuonTrackMatcher is used during global muon reconstruction to check the compatability of a tracker track with a standalone muon track. The compatability is determined on a chi2 comparison, of the local parameters of the two corresponding TrajectoryStates on the surface of the innermost muon measurement for momentum below a threshold and above this, with the position and direction parameters on the mentioned surface. If the comparison of local parameters fails to yield any matches, then it makes a comparison of the TSOS local direction.
Definition at line 37 of file GlobalMuonTrackMatcher.h.
typedef std::pair<const Trajectory*,reco::TrackRef> GlobalMuonTrackMatcher::TrackCand |
Definition at line 41 of file GlobalMuonTrackMatcher.h.
GlobalMuonTrackMatcher::GlobalMuonTrackMatcher | ( | const edm::ParameterSet & | par, |
const MuonServiceProxy * | service | ||
) |
constructor
Definition at line 50 of file GlobalMuonTrackMatcher.cc.
References edm::ParameterSet::getParameter(), theChi2_1, theChi2_2, theChi2_3, theDeltaD_1, theDeltaD_2, theDeltaD_3, theDeltaR_1, theDeltaR_2, theDeltaR_3, theEta_threshold, theLocChi2, theMinP, theMinPt, theOutPropagatorName, thePt_threshold1, thePt_threshold2, theQual_1, theQual_2, and theQual_3.
|
virtual |
std::pair< TrajectoryStateOnSurface, TrajectoryStateOnSurface > GlobalMuonTrackMatcher::convertToTSOSMuHit | ( | const TrackCand & | staCand, |
const TrackCand & | tkCand | ||
) | const |
Definition at line 423 of file GlobalMuonTrackMatcher.cc.
References python.rootplot.argparse::category, relativeConstraints::empty, TrajectoryStateOnSurface::freeState(), TrajectoryStateOnSurface::globalPosition(), trajectoryStateTransform::innerStateOnSurface(), TrajectoryStateOnSurface::isValid(), LogTrace, mag(), trajectoryStateTransform::outerStateOnSurface(), theMinP, theMinPt, theOutPropagatorName, and theService.
Referenced by match(), matchOne(), and matchTight().
std::pair< TrajectoryStateOnSurface, TrajectoryStateOnSurface > GlobalMuonTrackMatcher::convertToTSOSTk | ( | const TrackCand & | staCand, |
const TrackCand & | tkCand | ||
) | const |
Definition at line 366 of file GlobalMuonTrackMatcher.cc.
References python.rootplot.argparse::category, relativeConstraints::empty, TrajectoryStateOnSurface::isValid(), LogTrace, trajectoryStateTransform::outerStateOnSurface(), samePlane(), TrajectoryStateOnSurface::surface(), theMinP, theMinPt, theOutPropagatorName, and theService.
std::pair< TrajectoryStateOnSurface, TrajectoryStateOnSurface > GlobalMuonTrackMatcher::convertToTSOSTkHit | ( | const TrackCand & | staCand, |
const TrackCand & | tkCand | ||
) | const |
Definition at line 467 of file GlobalMuonTrackMatcher.cc.
References python.rootplot.argparse::category, relativeConstraints::empty, TrajectoryStateOnSurface::globalPosition(), trajectoryStateTransform::innerStateOnSurface(), TrajectoryStateOnSurface::isValid(), LogTrace, mag(), trajectoryStateTransform::outerStateOnSurface(), TrajectoryStateOnSurface::surface(), theMinP, theMinPt, theOutPropagatorName, and theService.
Referenced by match().
double GlobalMuonTrackMatcher::match | ( | const TrackCand & | sta, |
const TrackCand & | track, | ||
int | matchOption = 0 , |
||
int | surfaceOption = 1 |
||
) | const |
check if two tracks are compatible matchOption: 0 = chi2, 1 = distance, 2 = deltaR surfaceOption: 0 = outermost tracker surface, 1 = innermost muon system surface
Definition at line 112 of file GlobalMuonTrackMatcher.cc.
References convertToTSOSMuHit(), convertToTSOSTkHit(), match_Chi2(), match_d(), match_dist(), and match_Rpos().
Referenced by GlobalCosmicMuonTrajectoryBuilder::match(), GlobalTrackQualityProducer::produce(), GlobalMuonTrajectoryBuilder::trajectories(), and L3MuonTrajectoryBuilder::trajectories().
vector< GlobalMuonTrackMatcher::TrackCand > GlobalMuonTrackMatcher::match | ( | const TrackCand & | sta, |
const std::vector< TrackCand > & | tracks | ||
) | const |
choose all tracks with a matching-chi2 less than Chi2Cut
Definition at line 181 of file GlobalMuonTrackMatcher.cc.
References PV3DBase< T, PVType, FrameType >::barePhi(), python.rootplot.argparse::category, HiEvtPlane_cfi::chi2, convertToTSOSMuHit(), MuonCkfTrajectoryBuilder_cfi::deltaPhi, deltaR(), SoftLeptonByDistance_cfi::distance, PV3DBase< T, PVType, FrameType >::eta(), TrajectoryStateOnSurface::globalPosition(), cuy::ii, createfilelist::int, TrajectoryStateOnSurface::isValid(), findQualityFiles::jj, LogTrace, match_Chi2(), match_d(), match_dist(), match_Rpos(), mps_fire::result, theChi2_1, theChi2_2, theDeltaD_1, theDeltaD_2, theDeltaR_1, theDeltaR_2, theEta_threshold, theLocChi2, thePt_threshold1, thePt_threshold2, theQual_1, theQual_2, and theQual_3.
double GlobalMuonTrackMatcher::match_Chi2 | ( | const TrajectoryStateOnSurface & | tsos1, |
const TrajectoryStateOnSurface & | tsos2 | ||
) | const |
Definition at line 539 of file GlobalMuonTrackMatcher.cc.
References python.rootplot.argparse::category, TrajectoryStateOnSurface::isValid(), TrajectoryStateOnSurface::localError(), TrajectoryStateOnSurface::localParameters(), funct::m, LocalTrajectoryError::matrix(), findQualityFiles::v, and LocalTrajectoryParameters::vector().
Referenced by match(), matchOne(), and matchTight().
double GlobalMuonTrackMatcher::match_D | ( | const TrajectoryStateOnSurface & | sta, |
const TrajectoryStateOnSurface & | tk | ||
) | const |
Definition at line 617 of file GlobalMuonTrackMatcher.cc.
References TrajectoryStateOnSurface::globalPosition(), TrajectoryStateOnSurface::isValid(), and mag().
Referenced by samePlane().
double GlobalMuonTrackMatcher::match_d | ( | const TrajectoryStateOnSurface & | sta, |
const TrajectoryStateOnSurface & | tk | ||
) | const |
Definition at line 630 of file GlobalMuonTrackMatcher.cc.
References TrajectoryStateOnSurface::isValid(), TrajectoryStateOnSurface::localPosition(), and mag().
Referenced by match(), matchTight(), and samePlane().
double GlobalMuonTrackMatcher::match_dist | ( | const TrajectoryStateOnSurface & | sta, |
const TrajectoryStateOnSurface & | tk | ||
) | const |
Definition at line 644 of file GlobalMuonTrackMatcher.cc.
References python.rootplot.argparse::category, TrajectoryStateOnSurface::isValid(), TrajectoryStateOnSurface::localError(), TrajectoryStateOnSurface::localPosition(), LogTrace, funct::m, LocalTrajectoryError::positionError(), findQualityFiles::v, PV3DBase< T, PVType, FrameType >::x(), LocalError::xx(), LocalError::xy(), PV3DBase< T, PVType, FrameType >::y(), and LocalError::yy().
Referenced by match().
double GlobalMuonTrackMatcher::match_R_IP | ( | const TrackCand & | staCand, |
const TrackCand & | tkCand | ||
) | const |
Definition at line 571 of file GlobalMuonTrackMatcher.cc.
References PFRecoTauDiscriminationAgainstElectronDeadECAL_cfi::dR.
double GlobalMuonTrackMatcher::match_Rmom | ( | const TrajectoryStateOnSurface & | sta, |
const TrajectoryStateOnSurface & | tk | ||
) | const |
Definition at line 589 of file GlobalMuonTrackMatcher.cc.
References PV3DBase< T, PVType, FrameType >::eta(), TrajectoryStateOnSurface::globalMomentum(), TrajectoryStateOnSurface::isValid(), and PV3DBase< T, PVType, FrameType >::phi().
double GlobalMuonTrackMatcher::match_Rpos | ( | const TrajectoryStateOnSurface & | sta, |
const TrajectoryStateOnSurface & | tk | ||
) | const |
Definition at line 603 of file GlobalMuonTrackMatcher.cc.
References PV3DBase< T, PVType, FrameType >::eta(), TrajectoryStateOnSurface::globalPosition(), TrajectoryStateOnSurface::isValid(), and PV3DBase< T, PVType, FrameType >::phi().
Referenced by match().
std::vector< GlobalMuonTrackMatcher::TrackCand >::const_iterator GlobalMuonTrackMatcher::matchOne | ( | const TrackCand & | sta, |
const std::vector< TrackCand > & | tracks | ||
) | const |
choose the one tracker track which best matches a muon track
Definition at line 148 of file GlobalMuonTrackMatcher.cc.
References HiEvtPlane_cfi::chi2, convertToTSOSMuHit(), match_Chi2(), and mps_fire::result.
check if two tracks are compatible (less than Chi2Cut, DeltaDCut, DeltaRCut)
Definition at line 88 of file GlobalMuonTrackMatcher.cc.
References HiEvtPlane_cfi::chi2, convertToTSOSMuHit(), SoftLeptonByDistance_cfi::distance, match_Chi2(), match_d(), theChi2_2, and theDeltaD_2.
Referenced by GlobalTrackQualityProducer::produce().
bool GlobalMuonTrackMatcher::samePlane | ( | const TrajectoryStateOnSurface & | tsos1, |
const TrajectoryStateOnSurface & | tsos2 | ||
) | const |
Definition at line 515 of file GlobalMuonTrackMatcher.cc.
References TrajectoryStateOnSurface::isValid(), TrajectoryStateOnSurface::localPosition(), match_D(), match_d(), p1, p2, TrajectoryStateOnSurface::surface(), and Surface::tangentPlane().
Referenced by convertToTSOSTk().
|
private |
Definition at line 90 of file GlobalMuonTrackMatcher.h.
Referenced by GlobalMuonTrackMatcher(), and match().
|
private |
Definition at line 91 of file GlobalMuonTrackMatcher.h.
Referenced by GlobalMuonTrackMatcher(), match(), and matchTight().
|
private |
Definition at line 92 of file GlobalMuonTrackMatcher.h.
Referenced by GlobalMuonTrackMatcher().
|
private |
Definition at line 94 of file GlobalMuonTrackMatcher.h.
Referenced by GlobalMuonTrackMatcher(), and match().
|
private |
Definition at line 95 of file GlobalMuonTrackMatcher.h.
Referenced by GlobalMuonTrackMatcher(), match(), and matchTight().
|
private |
Definition at line 96 of file GlobalMuonTrackMatcher.h.
Referenced by GlobalMuonTrackMatcher().
|
private |
Definition at line 97 of file GlobalMuonTrackMatcher.h.
Referenced by GlobalMuonTrackMatcher(), and match().
|
private |
Definition at line 98 of file GlobalMuonTrackMatcher.h.
Referenced by GlobalMuonTrackMatcher(), and match().
|
private |
Definition at line 99 of file GlobalMuonTrackMatcher.h.
Referenced by GlobalMuonTrackMatcher().
|
private |
Definition at line 89 of file GlobalMuonTrackMatcher.h.
Referenced by GlobalMuonTrackMatcher(), and match().
|
private |
Definition at line 93 of file GlobalMuonTrackMatcher.h.
Referenced by GlobalMuonTrackMatcher(), and match().
|
private |
Definition at line 85 of file GlobalMuonTrackMatcher.h.
Referenced by convertToTSOSMuHit(), convertToTSOSTk(), convertToTSOSTkHit(), and GlobalMuonTrackMatcher().
|
private |
Definition at line 86 of file GlobalMuonTrackMatcher.h.
Referenced by convertToTSOSMuHit(), convertToTSOSTk(), convertToTSOSTkHit(), and GlobalMuonTrackMatcher().
|
private |
Definition at line 105 of file GlobalMuonTrackMatcher.h.
Referenced by convertToTSOSMuHit(), convertToTSOSTk(), convertToTSOSTkHit(), and GlobalMuonTrackMatcher().
|
private |
Definition at line 87 of file GlobalMuonTrackMatcher.h.
Referenced by GlobalMuonTrackMatcher(), and match().
|
private |
Definition at line 88 of file GlobalMuonTrackMatcher.h.
Referenced by GlobalMuonTrackMatcher(), and match().
|
private |
Definition at line 100 of file GlobalMuonTrackMatcher.h.
Referenced by GlobalMuonTrackMatcher(), and match().
|
private |
Definition at line 101 of file GlobalMuonTrackMatcher.h.
Referenced by GlobalMuonTrackMatcher(), and match().
|
private |
Definition at line 102 of file GlobalMuonTrackMatcher.h.
Referenced by GlobalMuonTrackMatcher(), and match().
|
private |
Definition at line 104 of file GlobalMuonTrackMatcher.h.
Referenced by convertToTSOSMuHit(), convertToTSOSTk(), and convertToTSOSTkHit().