CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
LineRZ Class Reference

#include <RoadSearchCircleSeed.h>

Public Member Functions

 LineRZ (GlobalPoint point1, GlobalPoint point2)
 
double Theta () const
 
 ~LineRZ ()
 

Private Attributes

double theR_
 
double theZ_
 

Detailed Description

Definition at line 120 of file RoadSearchCircleSeed.h.

Constructor & Destructor Documentation

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().

448 {
449  theR_ = std::fabs(point1.perp()-point2.perp());
450  theZ_ = std::fabs(point1.z()-point2.z());
451  //If the line is pointing backwards in z
452  if ((point1.perp() >= point2.perp() &&
453  point1.z() < point2.z()) ||
454  (point2.perp() >= point1.perp() &&
455  point2.z() < point1.z()))
456  {
457  theZ_ = -1.*theZ_;
458  }
459 }
T perp() const
Definition: PV3DBase.h:71
T z() const
Definition: PV3DBase.h:63
LineRZ::~LineRZ ( )

Definition at line 464 of file RoadSearchCircleSeed.cc.

465 { }

Member Function Documentation

double LineRZ::Theta ( ) const
inline

Definition at line 125 of file RoadSearchCircleSeed.h.

References theR_, and theZ_.

125 { return atan2(theR_,theZ_); }

Member Data Documentation

double LineRZ::theR_
private

Definition at line 128 of file RoadSearchCircleSeed.h.

Referenced by LineRZ(), and Theta().

double LineRZ::theZ_
private

Definition at line 129 of file RoadSearchCircleSeed.h.

Referenced by LineRZ(), and Theta().