Skip to content

Commit

Permalink
fix outward definition
Browse files Browse the repository at this point in the history
  • Loading branch information
cliu committed Oct 13, 2008
1 parent 96b86f1 commit 00692cd
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions RecoMuon/Navigation/src/DirectMuonNavigation.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/** \file DirectMuonNavigation
*
* $Date: 2008/05/19 15:23:25 $
* $Revision: 1.12 $
* $Date: 2008/05/20 16:25:23 $
* $Revision: 1.13 $
* \author Chang Liu - Purdue University
*/

Expand Down Expand Up @@ -243,6 +243,15 @@ bool DirectMuonNavigation::checkCompatible(const FreeTrajectoryState& fts,const

bool DirectMuonNavigation::outward(const FreeTrajectoryState& fts) const {

return (fts.position().basicVector().dot(fts.momentum().basicVector())>0);
// return (fts.position().basicVector().dot(fts.momentum().basicVector())>0);

float x0 = fts.position().x();
float y0 = fts.position().y();

float xm = fts.momentum().x();
float ym = fts.momentum().y();

return ((x0 * xm + y0 * ym ) > 0);


}

0 comments on commit 00692cd

Please sign in to comment.