BOSS 8.0.0
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)
 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/9]

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 123 of file Emc/EmcRecGeoSvc/include/EmcRecGeoSvc/EmcRecEndCapGeo.h.

123 {
124 a_ = a;
125 b_ = b;
126 c_ = c;
127 d_ = d;
128 return;
129 }

Referenced by operator=().

◆ EmcRecGeoPlane() [2/9]

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

Constructor from normal and point.

Definition at line 132 of file Emc/EmcRecGeoSvc/include/EmcRecGeoSvc/EmcRecEndCapGeo.h.

132 {
133 a_ = n.x();
134 b_ = n.y();
135 c_ = n.z();
136 d_ = -n * p;
137 return;
138 }
const Int_t n

◆ EmcRecGeoPlane() [3/9]

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

Constructor from three points.

Definition at line 141 of file Emc/EmcRecGeoSvc/include/EmcRecGeoSvc/EmcRecEndCapGeo.h.

141 {
142 HepNormal3D n = ( p2 - p1 ).cross( p3 - p1 );
143 a_ = n.x();
144 b_ = n.y();
145 c_ = n.z();
146 d_ = -n * p1;
147 }
double p2[4]
double p1[4]
EvtVector3R cross(const EvtVector3R &p1, const EvtVector3R &p2)

◆ EmcRecGeoPlane() [4/9]

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 123 of file InstallArea/x86_64-el9-gcc13-dbg/include/EmcRecGeoSvc/EmcRecEndCapGeo.h.

123 {
124 a_ = a;
125 b_ = b;
126 c_ = c;
127 d_ = d;
128 return;
129 }

◆ EmcRecGeoPlane() [5/9]

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

Constructor from normal and point.

Definition at line 132 of file InstallArea/x86_64-el9-gcc13-dbg/include/EmcRecGeoSvc/EmcRecEndCapGeo.h.

132 {
133 a_ = n.x();
134 b_ = n.y();
135 c_ = n.z();
136 d_ = -n * p;
137 return;
138 }

◆ EmcRecGeoPlane() [6/9]

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

Constructor from three points.

Definition at line 141 of file InstallArea/x86_64-el9-gcc13-dbg/include/EmcRecGeoSvc/EmcRecEndCapGeo.h.

141 {
142 HepNormal3D n = ( p2 - p1 ).cross( p3 - p1 );
143 a_ = n.x();
144 b_ = n.y();
145 c_ = n.z();
146 d_ = -n * p1;
147 }

◆ EmcRecGeoPlane() [7/9]

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 123 of file InstallArea/x86_64-el9-gcc13-opt/include/EmcRecGeoSvc/EmcRecEndCapGeo.h.

123 {
124 a_ = a;
125 b_ = b;
126 c_ = c;
127 d_ = d;
128 return;
129 }

◆ EmcRecGeoPlane() [8/9]

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

Constructor from normal and point.

Definition at line 132 of file InstallArea/x86_64-el9-gcc13-opt/include/EmcRecGeoSvc/EmcRecEndCapGeo.h.

132 {
133 a_ = n.x();
134 b_ = n.y();
135 c_ = n.z();
136 d_ = -n * p;
137 return;
138 }

◆ EmcRecGeoPlane() [9/9]

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

Constructor from three points.

Definition at line 141 of file InstallArea/x86_64-el9-gcc13-opt/include/EmcRecGeoSvc/EmcRecEndCapGeo.h.

141 {
142 HepNormal3D n = ( p2 - p1 ).cross( p3 - p1 );
143 a_ = n.x();
144 b_ = n.y();
145 c_ = n.z();
146 d_ = -n * p1;
147 }

Member Function Documentation

◆ Build() [1/9]

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

Definition at line 170 of file Emc/EmcRecGeoSvc/include/EmcRecGeoSvc/EmcRecEndCapGeo.h.

170 {
171 a_ = n.x();
172 b_ = n.y();
173 c_ = n.z();
174 d_ = -n * p;
175 return;
176 }

◆ Build() [2/9]

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

Definition at line 170 of file InstallArea/x86_64-el9-gcc13-dbg/include/EmcRecGeoSvc/EmcRecEndCapGeo.h.

170 {
171 a_ = n.x();
172 b_ = n.y();
173 c_ = n.z();
174 d_ = -n * p;
175 return;
176 }

◆ Build() [3/9]

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

Definition at line 170 of file InstallArea/x86_64-el9-gcc13-opt/include/EmcRecGeoSvc/EmcRecEndCapGeo.h.

170 {
171 a_ = n.x();
172 b_ = n.y();
173 c_ = n.z();
174 d_ = -n * p;
175 return;
176 }

◆ Build() [4/9]

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

Definition at line 178 of file Emc/EmcRecGeoSvc/include/EmcRecGeoSvc/EmcRecEndCapGeo.h.

178 {
179 HepNormal3D n = ( p2 - p1 ).cross( p3 - p1 );
180 a_ = n.x();
181 b_ = n.y();
182 c_ = n.z();
183 d_ = -n * p1;
184 return;
185 }

◆ Build() [5/9]

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

Definition at line 178 of file InstallArea/x86_64-el9-gcc13-dbg/include/EmcRecGeoSvc/EmcRecEndCapGeo.h.

178 {
179 HepNormal3D n = ( p2 - p1 ).cross( p3 - p1 );
180 a_ = n.x();
181 b_ = n.y();
182 c_ = n.z();
183 d_ = -n * p1;
184 return;
185 }

◆ Build() [6/9]

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

Definition at line 178 of file InstallArea/x86_64-el9-gcc13-opt/include/EmcRecGeoSvc/EmcRecEndCapGeo.h.

178 {
179 HepNormal3D n = ( p2 - p1 ).cross( p3 - p1 );
180 a_ = n.x();
181 b_ = n.y();
182 c_ = n.z();
183 d_ = -n * p1;
184 return;
185 }

◆ Build() [7/9]

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

Definition at line 162 of file Emc/EmcRecGeoSvc/include/EmcRecGeoSvc/EmcRecEndCapGeo.h.

162 {
163 a_ = a;
164 b_ = b;
165 c_ = c;
166 d_ = d;
167 return;
168 }

◆ Build() [8/9]

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

Definition at line 162 of file InstallArea/x86_64-el9-gcc13-dbg/include/EmcRecGeoSvc/EmcRecEndCapGeo.h.

162 {
163 a_ = a;
164 b_ = b;
165 c_ = c;
166 d_ = d;
167 return;
168 }

◆ Build() [9/9]

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

Definition at line 162 of file InstallArea/x86_64-el9-gcc13-opt/include/EmcRecGeoSvc/EmcRecEndCapGeo.h.

162 {
163 a_ = a;
164 b_ = b;
165 c_ = c;
166 d_ = d;
167 return;
168 }

◆ operator=() [1/3]

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

Assignment.

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

150 {
151 if ( this != &plane )
152 {
153 a_ = plane.a_;
154 b_ = plane.b_;
155 c_ = plane.c_;
156 d_ = plane.d_;
157 }
158 return *this;
159 }

◆ operator=() [2/3]

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

Assignment.

Definition at line 150 of file InstallArea/x86_64-el9-gcc13-dbg/include/EmcRecGeoSvc/EmcRecEndCapGeo.h.

150 {
151 if ( this != &plane )
152 {
153 a_ = plane.a_;
154 b_ = plane.b_;
155 c_ = plane.c_;
156 d_ = plane.d_;
157 }
158 return *this;
159 }

◆ operator=() [3/3]

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

Assignment.

Definition at line 150 of file InstallArea/x86_64-el9-gcc13-opt/include/EmcRecGeoSvc/EmcRecEndCapGeo.h.

150 {
151 if ( this != &plane )
152 {
153 a_ = plane.a_;
154 b_ = plane.b_;
155 c_ = plane.c_;
156 d_ = plane.d_;
157 }
158 return *this;
159 }

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