Go to the documentation of this file. 1 #ifndef MuonAnalysis_MuonAssociators_MatcherUsingTracksAlgorithm_h
2 #define MuonAnalysis_MuonAssociators_MatcherUsingTracksAlgorithm_h
75 bool useFirstMomentum);
150 float &lastDeltaLocalPos,
151 float &lastGlobalDPtRel,
152 float &lastChi2)
const;
161 float &lastDeltaLocalPos,
162 float &lastGlobalDPtRel,
163 float &lastChi2)
const;
171 float &lastDeltaLocalPos,
172 float &lastGlobalDPtRel,
173 float &lastChi2)
const;
TrajectoryStateOnSurface targetState(const reco::Candidate &reco, WhichTrack whichTrack, WhichState whichState) const
End state for the propagation.
edm::ESHandle< GlobalTrackingGeometry > geometry_
bool hasChi2() const
Return 'true' if the matcher will produce also chi2.
float maxGlobalMomDeltaEta_
bool matchByDirectComparison(const FreeTrajectoryState &start, const FreeTrajectoryState &other, float &lastDeltaR, float &lastDeltaEta, float &lastDeltaPhi, float &lastDeltaLocalPos, float &lastGlobalDPtRel, float &lastChi2) const
Compare directly two states. return true if current pair is the new best match (in that case,...
void getConf(const edm::ParameterSet &iConfig, const std::string &whatFor, WhichTrack &whichTrack, WhichState &whichState)
Parse some configuration.
static const double deltaEta
void init(const edm::EventSetup &iSetup)
Call this method at the beginning of each run, to initialize geometry, magnetic field and propagators...
StringCutObjectSelector< reco::Candidate, true > srcCut_
virtual ~MatcherUsingTracksAlgorithm()
MatcherUsingTracksAlgorithm(const edm::ParameterSet &iConfig)
bool matchWithPropagation(const FreeTrajectoryState &start, const FreeTrajectoryState &target, float &lastDeltaR, float &lastDeltaEta, float &lastDeltaPhi, float &lastDeltaLocalPos, float &lastGlobalDPtRel, float &lastChi2) const
bool hasMetrics() const
Return 'true' if the matcher will produce meaningful deltaR, deltaLocalPos, deltaPtRel values.
static void cropAndInvert(AlgebraicSymMatrix55 &cov, bool diagonalOnly, bool top3by3only)
Possibly crop the 3x3 part of the matrix or remove off-diagonal terms, then invert.
reco::TrackRef getTrack(const reco::Candidate &reco, WhichTrack which) const
Get track reference out of a Candidate (via dynamic_cast to reco::RecoCandidate)
float maxGlobalMomDeltaPhi_
edm::ESHandle< Propagator > propagator_
static double getChi2(const FreeTrajectoryState &start, const FreeTrajectoryState &other, bool diagonalOnly, bool useVertex, bool useFirstMomentum)
edm::ESHandle< MagneticField > magfield_
StringCutObjectSelector< reco::Candidate, true > matchedCut_
bool match(const reco::Candidate &c1, const reco::Candidate &c2, float &deltaR, float &deltaEta, float &deltaPhi, float &deltaLocalPos, float &deltaPtRel, float &chi2) const
FreeTrajectoryState startingState(const reco::Candidate &reco, WhichTrack whichTrack, WhichState whichState) const
Starting state for the propagation.
float maxGlobalMomDeltaR_
ROOT::Math::SMatrix< double, 5, 5, ROOT::Math::MatRepSym< double, 5 > > AlgebraicSymMatrix55