#include "RecoMuon/MuonIdentification/interface/MuonCosmicsId.h"
#include "DataFormats/TrackReco/interface/Track.h"
Go to the source code of this file.
Functions | |
bool | directionAlongMomentum (const reco::Track &track) |
bool directionAlongMomentum | ( | const reco::Track & | track | ) |
Definition at line 4 of file MuonCosmicsId.cc.
References reco::Track::innerPosition(), reco::TrackBase::px(), reco::TrackBase::py(), reco::TrackBase::vx(), and reco::TrackBase::vy().
Referenced by muonid::matchTracks().
{ // check is done in 2D return (track.innerPosition().x()-track.vx())*track.px() + (track.innerPosition().y()-track.vy())*track.py() > 0; }