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;
bool diagOnly_
Use only the diagonal terms of the covariance matrix.
~MatcherByPullsAlgorithm()
MatcherByPullsAlgorithm(const edm::ParameterSet &)
std::pair< bool, float > match(const reco::Track &tk, const reco::Candidate &mc, const AlgebraicSymMatrix55 &invertedCovariance) const
double dr2_
DeltaR of the matching cone.
bool useVertex_
Use also dxy / dsz in the matching.
void fillInvCov(const reco::Track &tk, AlgebraicSymMatrix55 &invCov) const
Fill the inverse covariance matrix for the match(track, candidate, invCov) method.
double cut_
Cut on the pull.
auto const good
min quality of good
ROOT::Math::SMatrix< double, 5, 5, ROOT::Math::MatRepSym< double, 5 > > AlgebraicSymMatrix55
TrackChoice track_
Track to be used in matching.
TrackChoice
Enum to define which track to use.
const reco::Track * track(const reco::RecoCandidate &src) const
Get track out of Candidate, NULL if missing.
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