PandaRoot
PndRadMapPlane.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 #ifndef __PndRadMapPlane_HH__
14 #define __PndRadMapPlane_HH__ 1
15 #include <TH2D.h>
16 #include <TROOT.h>
17 #include <TFormula.h>
18 #include <TMatrixD.h>
19 #include <FairRadMapPoint.h>
20 
21 enum axis { Xx = 1, Yy = 2, Zz = 3 };
22 enum orientation { XY = 1, YX = 2, XZ = 3, ZX = 4, YZ = 5, ZY = 6 };
23 
25  public:
27  PndRadMapPlane(TVector3 _corner1, TVector3 _corner2, TVector3 _corner3, double dist = 0);
28  PndRadMapPlane(Double_t dist, Double_t rot, orientation plane, axis ax);
29  TVector3 LineIntersection(TVector3 begline, TVector3 endline);
30  void SetNormal(TVector3 n) { normal = n; };
31  void SetDistance(double d) { distance = d; };
32  TVector3 GetCorner(int i);
33  TVector3 Corner1() { return corner1; };
34  TVector3 Corner2() { return corner2; };
35  TVector3 Corner3() { return corner3; };
36  double Distance() { return distance; };
37  TVector3 Normal() { return normal; };
38 
39  private:
40  TVector3 normal;
41  TVector3 corner1;
42  TVector3 corner2;
43  TVector3 corner3;
44  TVector3 _axis;
45  double distance;
46  // ClassDef(PndRadMapPlane,1);
47 };
48 
49 #endif
TVector3 Corner2()
TVector3 LineIntersection(TVector3 begline, TVector3 endline)
TVector3 Normal()
void SetNormal(TVector3 n)
unsigned int i
Definition: P4_F32vec4.h:33
TVector3 GetCorner(int i)
double Distance()
axis
void SetDistance(double d)
orientation
TVector3 Corner3()
TVector3 Corner1()