CMS 3D CMS Logo

LineRZ Class Reference

#include <RecoTracker/RoadSearchSeedFinder/interface/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().

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

Definition at line 464 of file RoadSearchCircleSeed.cc.

00465 { }


Member Function Documentation

double LineRZ::Theta (  )  const [inline]

Definition at line 125 of file RoadSearchCircleSeed.h.

References theR_, and theZ_.

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


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:27:45 2009 for CMSSW by  doxygen 1.5.4