CMS 3D CMS Logo

Functions
MuonCosmicsId.cc File Reference
#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)
 

Function Documentation

◆ directionAlongMomentum()

bool directionAlongMomentum ( const reco::Track track)

Definition at line 4 of file MuonCosmicsId.cc.

4  {
5  // check is done in 2D
6  return (track.innerPosition().x() - track.vx()) * track.px() + (track.innerPosition().y() - track.vy()) * track.py() >
7  0;
8 }

References HLT_FULL_cff::track.

Referenced by muonid::matchTracks().

HLT_FULL_cff.track
track
Definition: HLT_FULL_cff.py:11776