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.

References HLT_2024v13_cff::track.

Referenced by muonid::matchTracks().

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 }