List of all members | Public Member Functions | Public Attributes | Private Attributes
CachedDirectInjectorOG::TankGeometry Class Reference

#include <TankGeometry.h>

Public Member Functions

 if ((where-fTopPlane.GetAnchor()).GetMag2()< fRadius2) return true
 
 if (disc >=0)
 
 if ((where-fBottomPlane.GetAnchor()).GetMag2()< fRadius2) return true
 
const Line particleLine (particlePoint, particleDirection)
 
 TankGeometry (const double bottom, const double top, const double radius, const CoordinateSystemPtr cs)
 

Public Attributes

const double a = Sqr(ax) + Sqr(ay)
 
const double ax = particleDirection.GetX(fCS)
 
const double ay = particleDirection.GetY(fCS)
 
const double b = 2*(ax*px + ay*py)
 
const double c = Sqr(px) + Sqr(py) - fRadius2
 
bool const
 
const double disc = Sqr(b) - 4*a*c
 
return false
 
const VectorparticleDirection = particle.GetDirection()
 
const double px = particlePoint.GetX(fCS)
 
const double py = particlePoint.GetY(fCS)
 
 where = Intersection(fTopPlane, particleLine)
 

Private Attributes

const Plane fBottomPlane
 
const CoordinateSystemPtr fCS
 
const double fRadius2
 
const Plane fTopPlane
 

Detailed Description

Definition at line 18 of file TankGeometry.h.

Constructor & Destructor Documentation

CachedDirectInjectorOG::TankGeometry::TankGeometry ( const double  bottom,
const double  top,
const double  radius,
const CoordinateSystemPtr  cs 
)
inline

Definition at line 20 of file TankGeometry.h.

Member Function Documentation

CachedDirectInjectorOG::TankGeometry::if ( )
CachedDirectInjectorOG::TankGeometry::if ( disc >=  0)
inline

Definition at line 49 of file TankGeometry.h.

References RdGeoCeLDFFitter::a, utl::Distance(), utl::s, and sqrt().

CachedDirectInjectorOG::TankGeometry::if ( )
const Line CachedDirectInjectorOG::TankGeometry::particleLine ( particlePoint  ,
particleDirection   
)

Member Data Documentation

const double CachedDirectInjectorOG::TankGeometry::a = Sqr(ax) + Sqr(ay)

Definition at line 45 of file TankGeometry.h.

const double CachedDirectInjectorOG::TankGeometry::ax = particleDirection.GetX(fCS)

Definition at line 41 of file TankGeometry.h.

const double CachedDirectInjectorOG::TankGeometry::ay = particleDirection.GetY(fCS)

Definition at line 42 of file TankGeometry.h.

const double CachedDirectInjectorOG::TankGeometry::b = 2*(ax*px + ay*py)

Definition at line 46 of file TankGeometry.h.

const double CachedDirectInjectorOG::TankGeometry::c = Sqr(px) + Sqr(py) - fRadius2

Definition at line 47 of file TankGeometry.h.

bool CachedDirectInjectorOG::TankGeometry::const
Initial value:
{
const Point& particlePoint = particle.GetPosition()

Definition at line 31 of file TankGeometry.h.

const double CachedDirectInjectorOG::TankGeometry::disc = Sqr(b) - 4*a*c

Definition at line 48 of file TankGeometry.h.

return CachedDirectInjectorOG::TankGeometry::false

Definition at line 67 of file TankGeometry.h.

const Plane CachedDirectInjectorOG::TankGeometry::fBottomPlane
private

Definition at line 71 of file TankGeometry.h.

const CoordinateSystemPtr CachedDirectInjectorOG::TankGeometry::fCS
private

Definition at line 74 of file TankGeometry.h.

const double CachedDirectInjectorOG::TankGeometry::fRadius2
private

Definition at line 73 of file TankGeometry.h.

const Plane CachedDirectInjectorOG::TankGeometry::fTopPlane
private

Definition at line 72 of file TankGeometry.h.

const Vector& CachedDirectInjectorOG::TankGeometry::particleDirection = particle.GetDirection()

Definition at line 33 of file TankGeometry.h.

const double CachedDirectInjectorOG::TankGeometry::px = particlePoint.GetX(fCS)

Definition at line 43 of file TankGeometry.h.

const double CachedDirectInjectorOG::TankGeometry::py = particlePoint.GetY(fCS)

Definition at line 44 of file TankGeometry.h.

CachedDirectInjectorOG::TankGeometry::where = Intersection(fTopPlane, particleLine)

Definition at line 37 of file TankGeometry.h.


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

, generated on Tue Sep 26 2023.