Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef _ALILINE_HH
00011 #define _ALILINE_HH
00012 #include <iostream>
00013 #include <CLHEP/Vector/ThreeVector.h>
00014 class ALIPlane;
00015
00016 class ALILine {
00017
00018 public:
00019 ALILine(){ };
00020 ~ALILine(){ };
00021 ALILine( const CLHEP::Hep3Vector& point, const CLHEP::Hep3Vector& direction );
00022
00023
00024
00025 CLHEP::Hep3Vector intersect( const ALILine& l2, bool notParallel = 0);
00026 CLHEP::Hep3Vector intersect( const ALIPlane& plane, bool notParallel = 1);
00027 const CLHEP::Hep3Vector& pt() const {return _point;};
00028 const CLHEP::Hep3Vector& vec() const {return _direction;};
00029
00030 friend std::ostream& operator << (std::ostream&, const ALILine& li);
00031
00032 private:
00033 CLHEP::Hep3Vector _point;
00034 CLHEP::Hep3Vector _direction;
00035
00036 };
00037
00038 #endif