CMS 3D CMS Logo

ALILine.h
Go to the documentation of this file.
1 // COCOA class header file
2 //Id: ALILine.h
3 //CAT: Model
4 //
5 // Base class for entries
6 //
7 // History: v1.0
8 // Pedro Arce
9 
10 #ifndef _ALILINE_HH
11 #define _ALILINE_HH
12 #include <iostream>
13 #include <CLHEP/Vector/ThreeVector.h>
14 class ALIPlane;
15 
16 class ALILine {
17 
18 public:
19  ALILine(){ };
20  ~ALILine(){ };
21  ALILine( const CLHEP::Hep3Vector& point, const CLHEP::Hep3Vector& direction );
22 // Next 1 line was added with 22 Mar 2001
23 // CLHEP::Hep3Vector ALILine( const ALILine& l2, bool notParallel = 0);
24 //0
25  CLHEP::Hep3Vector intersect( const ALILine& l2, bool notParallel = false);
26  CLHEP::Hep3Vector intersect( const ALIPlane& plane, bool notParallel = true);
27  const CLHEP::Hep3Vector& pt() const {return _point;};
28  const CLHEP::Hep3Vector& vec() const {return _direction;};
29 
30  friend std::ostream& operator << (std::ostream&, const ALILine& li);
31 
32 private:
33  CLHEP::Hep3Vector _point;
34  CLHEP::Hep3Vector _direction;
35 
36 };
37 
38 #endif
CLHEP::Hep3Vector intersect(const ALILine &l2, bool notParallel=false)
Definition: ALILine.cc:30
~ALILine()
Definition: ALILine.h:20
CLHEP::Hep3Vector _point
Definition: ALILine.h:33
ALILine()
Definition: ALILine.h:19
friend std::ostream & operator<<(std::ostream &, const ALILine &li)
Definition: ALILine.cc:188
const CLHEP::Hep3Vector & pt() const
Definition: ALILine.h:27
CLHEP::Hep3Vector _direction
Definition: ALILine.h:34
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point
Definition: invegas.h:5
const CLHEP::Hep3Vector & vec() const
Definition: ALILine.h:28