CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 
17 public:
18  ALIPlane( const CLHEP::Hep3Vector& point, const CLHEP::Hep3Vector& normal );
19  // Project a std::vector onto this plane
20  CLHEP::Hep3Vector project( const CLHEP::Hep3Vector& vec );
21  ALILine lineProject( const CLHEP::Hep3Vector& vec );
22  // CLHEP::Hep3Vector ALIPlane::intersect( const ALIPlane& l2);
23  const CLHEP::Hep3Vector& point() const {return _point;};
24  const CLHEP::Hep3Vector& normal() const {return _normal;};
25 
26 private:
27  CLHEP::Hep3Vector _point;
28  CLHEP::Hep3Vector _normal;
29 
30 };
31 
32 #endif
CLHEP::Hep3Vector _normal
Definition: ALIPlane.h:28
CLHEP::Hep3Vector _point
Definition: ALIPlane.h:24
CLHEP::Hep3Vector project(const CLHEP::Hep3Vector &vec)
Definition: ALIPlane.cc:30
const CLHEP::Hep3Vector & point() const
Definition: ALIPlane.h:23
ALILine lineProject(const CLHEP::Hep3Vector &vec)
Definition: ALIPlane.cc:46
ALIPlane(const CLHEP::Hep3Vector &point, const CLHEP::Hep3Vector &normal)
Definition: ALIPlane.cc:16
const CLHEP::Hep3Vector & normal() const
Definition: ALIPlane.h:24