CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ALIPlane.h
Go to the documentation of this file.
1 // COCOA class header file
2 //Id: ALIPlane.h
3 //CAT: Fit
4 //
5 // Base class for planes, defined by a point and the plane normal direction
6 //
7 // History: v1.0
8 // Pedro Arce
9 
10 #ifndef _ALIPlane_HH
11 #define _ALIPlane_HH
12 #include <CLHEP/Vector/ThreeVector.h>
14 
15 class ALIPlane {
16 public:
17  ALIPlane(const CLHEP::Hep3Vector& point, const CLHEP::Hep3Vector& normal);
18  // Project a std::vector onto this plane
19  CLHEP::Hep3Vector project(const CLHEP::Hep3Vector& vec);
20  ALILine lineProject(const CLHEP::Hep3Vector& vec);
21  // CLHEP::Hep3Vector ALIPlane::intersect( const ALIPlane& l2);
22  const CLHEP::Hep3Vector& point() const { return _point; };
23  const CLHEP::Hep3Vector& normal() const { return _normal; };
24 
25 private:
26  CLHEP::Hep3Vector _point;
27  CLHEP::Hep3Vector _normal;
28 };
29 
30 #endif
CLHEP::Hep3Vector _normal
Definition: ALIPlane.h:27
CLHEP::Hep3Vector _point
Definition: ALIPlane.h:23
CLHEP::Hep3Vector project(const CLHEP::Hep3Vector &vec)
Definition: ALIPlane.cc:27
const CLHEP::Hep3Vector & point() const
Definition: ALIPlane.h:22
ALILine lineProject(const CLHEP::Hep3Vector &vec)
Definition: ALIPlane.cc:42
ALIPlane(const CLHEP::Hep3Vector &point, const CLHEP::Hep3Vector &normal)
Definition: ALIPlane.cc:15
const CLHEP::Hep3Vector & normal() const
Definition: ALIPlane.h:23