BOSS 7.0.3
BESIII Offline Software System
Loading...
Searching...
No Matches
EmcRecGeoPlane Class Reference

#include <EmcRecEndCapGeo.h>

+ Inheritance diagram for EmcRecGeoPlane:

Public Member Functions

 EmcRecGeoPlane (double a=0, double b=0, double c=0, double d=0)
 
 EmcRecGeoPlane (const HepPoint3D &n, const HepPoint3D &p)
 Constructor from normal and point.
 
 EmcRecGeoPlane (const HepPoint3D &p1, const HepPoint3D &p2, const HepPoint3D &p3)
 Constructor from three points.
 
EmcRecGeoPlaneoperator= (const EmcRecGeoPlane &plane)
 Assignment

 
void Build (double a=0, double b=0, double c=0, double d=0)
 
void Build (const HepPoint3D &n, const HepPoint3D &p)
 
void Build (const HepPoint3D &p1, const HepPoint3D &p2, const HepPoint3D &p3)
 
 EmcRecGeoPlane (double a=0, double b=0, double c=0, double d=0)
 
 EmcRecGeoPlane (const HepPoint3D &n, const HepPoint3D &p)
 Constructor from normal and point.
 
 EmcRecGeoPlane (const HepPoint3D &p1, const HepPoint3D &p2, const HepPoint3D &p3)
 Constructor from three points.
 
EmcRecGeoPlaneoperator= (const EmcRecGeoPlane &plane)
 Assignment

 
void Build (double a=0, double b=0, double c=0, double d=0)
 
void Build (const HepPoint3D &n, const HepPoint3D &p)
 
void Build (const HepPoint3D &p1, const HepPoint3D &p2, const HepPoint3D &p3)
 

Detailed Description

Constructor & Destructor Documentation

◆ EmcRecGeoPlane() [1/6]

EmcRecGeoPlane::EmcRecGeoPlane ( double  a = 0,
double  b = 0,
double  c = 0,
double  d = 0 
)
inline

Constructor from four numbers. The numbers are the coefficients of the equation of the plane:

a*x+b*y+c*z+d=0
Double_t x[10]

Definition at line 127 of file Emc/EmcRecGeoSvc/EmcRecGeoSvc-01-01-07/EmcRecGeoSvc/EmcRecEndCapGeo.h.

127 {
128 a_=a; b_=b; c_=c; d_=d; return; }

◆ EmcRecGeoPlane() [2/6]

EmcRecGeoPlane::EmcRecGeoPlane ( const HepPoint3D n,
const HepPoint3D p 
)
inline

Constructor from normal and point.

Definition at line 131 of file Emc/EmcRecGeoSvc/EmcRecGeoSvc-01-01-07/EmcRecGeoSvc/EmcRecEndCapGeo.h.

131 {
132 a_=n.x(); b_=n.y(); c_=n.z(); d_=-n*p; return; }
const Int_t n

◆ EmcRecGeoPlane() [3/6]

EmcRecGeoPlane::EmcRecGeoPlane ( const HepPoint3D p1,
const HepPoint3D p2,
const HepPoint3D p3 
)
inline

Constructor from three points.

Definition at line 135 of file Emc/EmcRecGeoSvc/EmcRecGeoSvc-01-01-07/EmcRecGeoSvc/EmcRecEndCapGeo.h.

136 {
137 HepNormal3D n = (p2-p1).cross(p3-p1);
138 a_ = n.x(); b_ = n.y(); c_ = n.z(); d_ = -n*p1;
139 }
EvtVector3R cross(const EvtVector3R &p1, const EvtVector3R &p2)
Definition: EvtVector3R.cc:84

◆ EmcRecGeoPlane() [4/6]

EmcRecGeoPlane::EmcRecGeoPlane ( double  a = 0,
double  b = 0,
double  c = 0,
double  d = 0 
)
inline

Constructor from four numbers. The numbers are the coefficients of the equation of the plane:

a*x+b*y+c*z+d=0

Definition at line 127 of file InstallArea/include/EmcRecGeoSvc/EmcRecGeoSvc/EmcRecEndCapGeo.h.

127 {
128 a_=a; b_=b; c_=c; d_=d; return; }

◆ EmcRecGeoPlane() [5/6]

EmcRecGeoPlane::EmcRecGeoPlane ( const HepPoint3D n,
const HepPoint3D p 
)
inline

Constructor from normal and point.

Definition at line 131 of file InstallArea/include/EmcRecGeoSvc/EmcRecGeoSvc/EmcRecEndCapGeo.h.

131 {
132 a_=n.x(); b_=n.y(); c_=n.z(); d_=-n*p; return; }

◆ EmcRecGeoPlane() [6/6]

EmcRecGeoPlane::EmcRecGeoPlane ( const HepPoint3D p1,
const HepPoint3D p2,
const HepPoint3D p3 
)
inline

Constructor from three points.

Definition at line 135 of file InstallArea/include/EmcRecGeoSvc/EmcRecGeoSvc/EmcRecEndCapGeo.h.

136 {
137 HepNormal3D n = (p2-p1).cross(p3-p1);
138 a_ = n.x(); b_ = n.y(); c_ = n.z(); d_ = -n*p1;
139 }

Member Function Documentation

◆ Build() [1/6]

void EmcRecGeoPlane::Build ( const HepPoint3D n,
const HepPoint3D p 
)
inline

Definition at line 153 of file Emc/EmcRecGeoSvc/EmcRecGeoSvc-01-01-07/EmcRecGeoSvc/EmcRecEndCapGeo.h.

153 {
154 a_=n.x(); b_=n.y(); c_=n.z(); d_=-n*p; return; }

◆ Build() [2/6]

void EmcRecGeoPlane::Build ( const HepPoint3D n,
const HepPoint3D p 
)
inline

Definition at line 153 of file InstallArea/include/EmcRecGeoSvc/EmcRecGeoSvc/EmcRecEndCapGeo.h.

153 {
154 a_=n.x(); b_=n.y(); c_=n.z(); d_=-n*p; return; }

◆ Build() [3/6]

void EmcRecGeoPlane::Build ( const HepPoint3D p1,
const HepPoint3D p2,
const HepPoint3D p3 
)
inline

Definition at line 156 of file Emc/EmcRecGeoSvc/EmcRecGeoSvc-01-01-07/EmcRecGeoSvc/EmcRecEndCapGeo.h.

156 {
157 HepNormal3D n = (p2-p1).cross(p3-p1);
158 a_ = n.x(); b_ = n.y(); c_ = n.z(); d_ = -n*p1;
159 return; }

◆ Build() [4/6]

void EmcRecGeoPlane::Build ( const HepPoint3D p1,
const HepPoint3D p2,
const HepPoint3D p3 
)
inline

Definition at line 156 of file InstallArea/include/EmcRecGeoSvc/EmcRecGeoSvc/EmcRecEndCapGeo.h.

156 {
157 HepNormal3D n = (p2-p1).cross(p3-p1);
158 a_ = n.x(); b_ = n.y(); c_ = n.z(); d_ = -n*p1;
159 return; }

◆ Build() [5/6]

void EmcRecGeoPlane::Build ( double  a = 0,
double  b = 0,
double  c = 0,
double  d = 0 
)
inline

Definition at line 150 of file Emc/EmcRecGeoSvc/EmcRecGeoSvc-01-01-07/EmcRecGeoSvc/EmcRecEndCapGeo.h.

150 {
151 a_=a; b_=b; c_=c; d_=d; return; }

◆ Build() [6/6]

void EmcRecGeoPlane::Build ( double  a = 0,
double  b = 0,
double  c = 0,
double  d = 0 
)
inline

Definition at line 150 of file InstallArea/include/EmcRecGeoSvc/EmcRecGeoSvc/EmcRecEndCapGeo.h.

150 {
151 a_=a; b_=b; c_=c; d_=d; return; }

◆ operator=() [1/2]

EmcRecGeoPlane & EmcRecGeoPlane::operator= ( const EmcRecGeoPlane plane)
inline

Assignment

Definition at line 142 of file Emc/EmcRecGeoSvc/EmcRecGeoSvc-01-01-07/EmcRecGeoSvc/EmcRecEndCapGeo.h.

142 {
143 if(this!=&plane) {
144 a_ = plane.a_; b_ = plane.b_; c_ = plane.c_; d_ = plane.d_;
145 }
146 return *this;
147 }

◆ operator=() [2/2]

EmcRecGeoPlane & EmcRecGeoPlane::operator= ( const EmcRecGeoPlane plane)
inline

Assignment

Definition at line 142 of file InstallArea/include/EmcRecGeoSvc/EmcRecGeoSvc/EmcRecEndCapGeo.h.

142 {
143 if(this!=&plane) {
144 a_ = plane.a_; b_ = plane.b_; c_ = plane.c_; d_ = plane.d_;
145 }
146 return *this;
147 }

The documentation for this class was generated from the following files: