PandaRoot
PndRadMapPlane.h
Go to the documentation of this file.
1 #ifndef __PndRadMapPlane_HH__
2 #define __PndRadMapPlane_HH__ 1
3 #include <TH2D.h>
4 #include <TROOT.h>
5 #include <TFormula.h>
6 #include <TMatrixD.h>
7 #include <FairRadMapPoint.h>
8 
9 enum axis { Xx = 1, Yy = 2, Zz = 3 };
10 enum orientation { XY = 1, YX = 2, XZ = 3, ZX = 4, YZ = 5, ZY = 6 };
11 
13  public:
15  PndRadMapPlane(TVector3 _corner1, TVector3 _corner2, TVector3 _corner3, double dist = 0);
16  PndRadMapPlane(Double_t dist, Double_t rot, orientation plane, axis ax);
17  TVector3 LineIntersection(TVector3 begline, TVector3 endline);
18  void SetNormal(TVector3 n) { normal = n; };
19  void SetDistance(double d) { distance = d; };
20  TVector3 GetCorner(int i);
21  TVector3 Corner1() { return corner1; };
22  TVector3 Corner2() { return corner2; };
23  TVector3 Corner3() { return corner3; };
24  double Distance() { return distance; };
25  TVector3 Normal() { return normal; };
26 
27  private:
28  TVector3 normal;
29  TVector3 corner1;
30  TVector3 corner2;
31  TVector3 corner3;
32  TVector3 _axis;
33  double distance;
34  // ClassDef(PndRadMapPlane,1);
35 };
36 
37 #endif
TVector3 Corner2()
TVector3 LineIntersection(TVector3 begline, TVector3 endline)
TVector3 Normal()
void SetNormal(TVector3 n)
unsigned int i
Definition: P4_F32vec4.h:21
TVector3 GetCorner(int i)
double Distance()
axis
Definition: PndRadMapPlane.h:9
void SetDistance(double d)
orientation
TVector3 Corner3()
TVector3 Corner1()