Functions | |
reco::TrackRef | findOppositeTrack (const edm::Handle< reco::TrackCollection > &collection, const reco::Track &muon, double angleMatch=0.01, double momentumMatch=0.05) |
std::pair< double, double > | matchTracks (const reco::Track &ref, const reco::Track &probe) |
reco::TrackRef muonid::findOppositeTrack | ( | const edm::Handle< reco::TrackCollection > & | collection, |
const reco::Track & | muon, | ||
double | angleMatch = 0.01 , |
||
double | momentumMatch = 0.05 |
||
) |
Definition at line 29 of file MuonCosmicsId.cc.
References i, match(), and matchTracks().
Referenced by MuonCosmicCompatibilityFiller::backToBack2LegCosmic(), CosmicsMuonIdProducer::produce(), and TrajectorySeedFromMuonProducer::produce().
std::pair< double, double > muonid::matchTracks | ( | const reco::Track & | ref, |
const reco::Track & | probe | ||
) |
Definition at line 12 of file MuonCosmicsId.cc.
References directionAlongMomentum(), reco::TrackBase::p(), reco::TrackBase::pt(), reco::TrackBase::px(), reco::TrackBase::py(), reco::TrackBase::pz(), query::result, and mathSSE::sqrt().
Referenced by findOppositeTrack().