File indexing completed on 2024-09-07 04:34:25
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef _ALILINE_HH
0011 #define _ALILINE_HH
0012 #include <iostream>
0013 #include <CLHEP/Vector/ThreeVector.h>
0014 class ALIPlane;
0015
0016 class ALILine {
0017 public:
0018 ALILine() {}
0019 ~ALILine() {}
0020 ALILine(const CLHEP::Hep3Vector& point, const CLHEP::Hep3Vector& direction);
0021
0022
0023
0024 CLHEP::Hep3Vector intersect(const ALILine& l2, bool notParallel = false);
0025 CLHEP::Hep3Vector intersect(const ALIPlane& plane, bool notParallel = true);
0026 const CLHEP::Hep3Vector& pt() const { return _point; };
0027 const CLHEP::Hep3Vector& vec() const { return _direction; };
0028
0029 friend std::ostream& operator<<(std::ostream&, const ALILine& li);
0030
0031 private:
0032 CLHEP::Hep3Vector _point;
0033 CLHEP::Hep3Vector _direction;
0034 };
0035
0036 #endif