Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:44:26

0001 //  COCOA class header file

0002 //Id:  ALIPlane.h

0003 //CAT: Fit

0004 //

0005 //   Base class for planes, defined by a point and the plane normal direction

0006 //

0007 //   History: v1.0

0008 //   Pedro Arce

0009 
0010 #ifndef _ALIPlane_HH
0011 #define _ALIPlane_HH
0012 #include <CLHEP/Vector/ThreeVector.h>
0013 #include "Alignment/CocoaModel/interface/ALILine.h"
0014 
0015 class ALIPlane {
0016 public:
0017   ALIPlane(const CLHEP::Hep3Vector& point, const CLHEP::Hep3Vector& normal);
0018   // Project a std::vector onto this plane

0019   CLHEP::Hep3Vector project(const CLHEP::Hep3Vector& vec);
0020   ALILine lineProject(const CLHEP::Hep3Vector& vec);
0021   //  CLHEP::Hep3Vector ALIPlane::intersect( const ALIPlane& l2);

0022   const CLHEP::Hep3Vector& point() const { return _point; };
0023   const CLHEP::Hep3Vector& normal() const { return _normal; };
0024 
0025 private:
0026   CLHEP::Hep3Vector _point;
0027   CLHEP::Hep3Vector _normal;
0028 };
0029 
0030 #endif