CMS 3D CMS Logo

Public Member Functions | Private Attributes

LineRZ Class Reference

#include <RoadSearchCircleSeed.h>

List of all members.

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

{
  theR_ = std::fabs(point1.perp()-point2.perp()); 
  theZ_ = std::fabs(point1.z()-point2.z());
  //If the line is pointing backwards in z
  if ((point1.perp() >= point2.perp() &&
       point1.z() < point2.z()) ||
      (point2.perp() >= point1.perp() &&
       point2.z() < point1.z()))
  {
    theZ_ = -1.*theZ_;
  }
}
LineRZ::~LineRZ ( )

Definition at line 464 of file RoadSearchCircleSeed.cc.

{ }

Member Function Documentation

double LineRZ::Theta ( ) const [inline]

Definition at line 125 of file RoadSearchCircleSeed.h.

References theR_, and theZ_.

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