Go to the documentation of this file. 1 #ifndef MuonAnalysis_MuonAssociators_src_MatcherByPullsAlgorithm_h
2 #define MuonAnalysis_MuonAssociators_src_MatcherByPullsAlgorithm_h
48 const std::vector<reco::GenParticle> &
cands,
49 const std::vector<uint8_t> &
good)
const;
56 const std::vector<reco::GenParticle> &
cands,
57 const std::vector<uint8_t> &
good,
58 std::vector<std::pair<double, int> > &matchesToFill)
const;
63 const std::vector<reco::GenParticle> &
cands,
64 const std::vector<uint8_t> &
good)
const;
71 const std::vector<reco::GenParticle> &
cands,
72 const std::vector<uint8_t> &
good,
73 std::vector<std::pair<double, int> > &matchesToFill)
const;
~MatcherByPullsAlgorithm()
const auto good
min quality of good
bool useVertex_
Use also dxy / dsz in the matching.
double cut_
Cut on the pull.
void fillInvCov(const reco::Track &tk, AlgebraicSymMatrix55 &invCov) const
Fill the inverse covariance matrix for the match(track, candidate, invCov) method.
MatcherByPullsAlgorithm(const edm::ParameterSet &)
const reco::Track * track(const reco::RecoCandidate &src) const
Get track out of Candidate, NULL if missing.
bool diagOnly_
Use only the diagonal terms of the covariance matrix.
double dr2_
DeltaR of the matching cone.
std::pair< bool, float > match(const reco::Track &tk, const reco::Candidate &mc, const AlgebraicSymMatrix55 &invertedCovariance) const
ROOT::Math::SMatrix< double, 5, 5, ROOT::Math::MatRepSym< double, 5 > > AlgebraicSymMatrix55
TrackChoice track_
Track to be used in matching.
void matchMany(const reco::RecoCandidate &src, const std::vector< reco::GenParticle > &cands, const std::vector< uint8_t > &good, std::vector< std::pair< double, int > > &matchesToFill) const
TrackChoice
Enum to define which track to use.