#include <RecoTracker/RoadSearchSeedFinder/interface/RoadSearchCircleSeed.h>
Public Member Functions | |
LineRZ (GlobalPoint point1, GlobalPoint point2) | |
double | Theta () const |
~LineRZ () | |
Private Attributes | |
double | theR_ |
double | theZ_ |
Definition at line 120 of file RoadSearchCircleSeed.h.
LineRZ::LineRZ | ( | GlobalPoint | point1, | |
GlobalPoint | point2 | |||
) |
Definition at line 447 of file RoadSearchCircleSeed.cc.
References PV3DBase< T, PVType, FrameType >::perp(), theR_, theZ_, and PV3DBase< T, PVType, FrameType >::z().
00448 { 00449 theR_ = std::fabs(point1.perp()-point2.perp()); 00450 theZ_ = std::fabs(point1.z()-point2.z()); 00451 //If the line is pointing backwards in z 00452 if ((point1.perp() >= point2.perp() && 00453 point1.z() < point2.z()) || 00454 (point2.perp() >= point1.perp() && 00455 point2.z() < point1.z())) 00456 { 00457 theZ_ = -1.*theZ_; 00458 } 00459 }
LineRZ::~LineRZ | ( | ) |
double LineRZ::Theta | ( | ) | const [inline] |
double LineRZ::theR_ [private] |
double LineRZ::theZ_ [private] |