CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_4/src/TrackingTools/PatternTools/interface/TwoTrackMinimumDistanceLineLine.h

Go to the documentation of this file.
00001 /* $Id: TwoTrackMinimumDistanceLineLine.h,v 1.2 2008/05/02 19:52:24 burkett Exp $ */
00002 #ifndef _Tracker_TwoTrackMinimumDistanceLineLine_H_
00003 #define _Tracker_TwoTrackMinimumDistanceLineLine_H_
00004 
00005 #include "DataFormats/GeometryVector/interface/GlobalPoint.h"
00006 #include <string>
00007 #include <sstream>
00008 #include <utility>
00009 
00016 class GlobalTrajectoryParameters;
00017 
00018 class TwoTrackMinimumDistanceLineLine {
00019 
00020 public:
00030   bool calculate( const GlobalTrajectoryParameters &,
00031       const GlobalTrajectoryParameters &); // retval=true? error occured.
00032 
00033   std::pair <GlobalPoint, GlobalPoint> points() const;
00034   std::pair <double, double> pathLength() const;
00035 
00036   double firstAngle() const {return phiG;}
00037   double secondAngle() const {return phiH;}
00038 private:
00039   double phiH, phiG;
00040   double pathG, pathH;
00041   GlobalPoint gPos, hPos;
00042 };
00043 #endif