#include <PndPlane.h>
Definition at line 21 of file PndPlane.h.
PndPlane::PndPlane |
( |
TVector3 |
b, |
|
|
TVector3 |
d1, |
|
|
TVector3 |
d2 |
|
) |
| |
|
inline |
PndPlane::PndPlane |
( |
PndLine |
line, |
|
|
Int_t |
layer |
|
) |
| |
TVector3 PndPlane::getBase |
( |
| ) |
|
|
inline |
TVector3 PndPlane::getDir1 |
( |
| ) |
|
|
inline |
TVector3 PndPlane::getDir2 |
( |
| ) |
|
|
inline |
TVector3 PndPlane::getIntersection |
( |
PndLine |
l | ) |
|
Definition at line 78 of file PndPlane.cxx.
References CAMath::Abs(), base, dir1, dir2, Double_t, PndLine::getDir(), PndLine::getP1(), i, and max().
80 TVector3 lineDir = l.
getDir();
81 TVector3 lineBase = l.
getP1();
86 matrix[
i][2]=-lineDir[
i];
87 matrix[
i][3]=lineBase[
i]-
base[
i];
94 for(
int j=i+1;j<3;j++){
99 cout <<
"\033[1;31mNo Intersection from plane and line\033[0m" << endl;
100 return TVector3(0,0,0);
103 for(
int j=i;j<4;j++){
105 matrix[
i][j] = matrix[
max][j];
106 matrix[
max][j] = temp;
109 for(
int j=i+1;j<3;j++){
111 for(
int k=i;k<4;k++){
112 matrix[j][k]+=(fac*matrix[
i][k]);
117 Double_t lamp = matrix[2][3]/matrix[2][2];
118 return lineBase+lamp*lineDir;
friend F32vec4 max(const F32vec4 &a, const F32vec4 &b)
The documentation for this class was generated from the following files: