Geant4  10.03.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
G4TwistTrapAlphaSide Class Reference
Inheritance diagram for G4TwistTrapAlphaSide:
G4VTwistSurface

Public Member Functions

 G4TwistTrapAlphaSide (const G4String &name, G4double PhiTwist, G4double pDz, G4double pTheta, G4double pPhi, G4double pDy1, G4double pDx1, G4double pDx2, G4double pDy2, G4double pDx3, G4double pDx4, G4double pAlph, G4double AngleSide)
 
virtual ~G4TwistTrapAlphaSide ()
 
virtual G4ThreeVector GetNormal (const G4ThreeVector &xx, G4bool isGlobal=false)
 
virtual G4int DistanceToSurface (const G4ThreeVector &gp, const G4ThreeVector &gv, G4ThreeVector gxx[], G4double distance[], G4int areacode[], G4bool isvalid[], EValidate validate=kValidateWithTol)
 
virtual G4int DistanceToSurface (const G4ThreeVector &gp, G4ThreeVector gxx[], G4double distance[], G4int areacode[])
 
 G4TwistTrapAlphaSide (__void__ &)
 
- Public Member Functions inherited from G4VTwistSurface
 G4VTwistSurface (const G4String &name)
 
 G4VTwistSurface (const G4String &name, const G4RotationMatrix &rot, const G4ThreeVector &tlate, G4int handedness, const EAxis axis1, const EAxis axis2, G4double axis0min=-kInfinity, G4double axis1min=-kInfinity, G4double axis0max=kInfinity, G4double axis1max=kInfinity)
 
virtual ~G4VTwistSurface ()
 
virtual G4int AmIOnLeftSide (const G4ThreeVector &me, const G4ThreeVector &vec, G4bool withTol=true)
 
virtual G4double DistanceToBoundary (G4int areacode, G4ThreeVector &xx, const G4ThreeVector &p)
 
virtual G4double DistanceToIn (const G4ThreeVector &gp, const G4ThreeVector &gv, G4ThreeVector &gxxbest)
 
virtual G4double DistanceToOut (const G4ThreeVector &gp, const G4ThreeVector &gv, G4ThreeVector &gxxbest)
 
virtual G4double DistanceTo (const G4ThreeVector &gp, G4ThreeVector &gxx)
 
void DebugPrint () const
 
virtual G4String GetName () const
 
virtual void GetBoundaryParameters (const G4int &areacode, G4ThreeVector &d, G4ThreeVector &x0, G4int &boundarytype) const
 
virtual G4ThreeVector GetBoundaryAtPZ (G4int areacode, const G4ThreeVector &p) const
 
G4double DistanceToPlaneWithV (const G4ThreeVector &p, const G4ThreeVector &v, const G4ThreeVector &x0, const G4ThreeVector &n0, G4ThreeVector &xx)
 
G4double DistanceToPlane (const G4ThreeVector &p, const G4ThreeVector &x0, const G4ThreeVector &n0, G4ThreeVector &xx)
 
G4double DistanceToPlane (const G4ThreeVector &p, const G4ThreeVector &x0, const G4ThreeVector &t1, const G4ThreeVector &t2, G4ThreeVector &xx, G4ThreeVector &n)
 
G4double DistanceToLine (const G4ThreeVector &p, const G4ThreeVector &x0, const G4ThreeVector &d, G4ThreeVector &xx)
 
G4bool IsAxis0 (G4int areacode) const
 
G4bool IsAxis1 (G4int areacode) const
 
G4bool IsOutside (G4int areacode) const
 
G4bool IsInside (G4int areacode, G4bool testbitmode=false) const
 
G4bool IsBoundary (G4int areacode, G4bool testbitmode=false) const
 
G4bool IsCorner (G4int areacode, G4bool testbitmode=false) const
 
G4bool IsValidNorm () const
 
G4bool IsSameBoundary (G4VTwistSurface *surface1, G4int areacode1, G4VTwistSurface *surface2, G4int areacode2) const
 
G4int GetAxisType (G4int areacode, G4int whichaxis) const
 
G4ThreeVector ComputeGlobalPoint (const G4ThreeVector &lp) const
 
G4ThreeVector ComputeLocalPoint (const G4ThreeVector &gp) const
 
G4ThreeVector ComputeGlobalDirection (const G4ThreeVector &lp) const
 
G4ThreeVector ComputeLocalDirection (const G4ThreeVector &gp) const
 
void SetAxis (G4int i, const EAxis axis)
 
void SetNeighbours (G4VTwistSurface *axis0min, G4VTwistSurface *axis1min, G4VTwistSurface *axis0max, G4VTwistSurface *axis1max)
 
G4int GetNode (G4int i, G4int j, G4int m, G4int n, G4int iside)
 
G4int GetFace (G4int i, G4int j, G4int m, G4int n, G4int iside)
 
G4int GetEdgeVisibility (G4int i, G4int j, G4int m, G4int n, G4int number, G4int orientation)
 
 G4VTwistSurface (__void__ &)
 

Private Member Functions

virtual G4int GetAreaCode (const G4ThreeVector &xx, G4bool withTol=true)
 
virtual void SetCorners ()
 
virtual void SetBoundaries ()
 
void GetPhiUAtX (G4ThreeVector p, G4double &phi, G4double &u)
 
G4ThreeVector ProjectPoint (const G4ThreeVector &p, G4bool isglobal=false)
 
virtual G4ThreeVector SurfacePoint (G4double phi, G4double u, G4bool isGlobal=false)
 
virtual G4double GetBoundaryMin (G4double phi)
 
virtual G4double GetBoundaryMax (G4double phi)
 
virtual G4double GetSurfaceArea ()
 
virtual void GetFacets (G4int m, G4int n, G4double xyz[][3], G4int faces[][4], G4int iside)
 
G4ThreeVector NormAng (G4double phi, G4double u)
 
G4double GetValueA (G4double phi)
 
G4double GetValueB (G4double phi)
 
G4double GetValueD (G4double phi)
 
G4double Xcoef (G4double u, G4double phi)
 

Private Attributes

G4double fTheta
 
G4double fPhi
 
G4double fDy1
 
G4double fDx1
 
G4double fDx2
 
G4double fDy2
 
G4double fDx3
 
G4double fDx4
 
G4double fDz
 
G4double fAlph
 
G4double fTAlph
 
G4double fPhiTwist
 
G4double fAngleSide
 
G4double fDx4plus2
 
G4double fDx4minus2
 
G4double fDx3plus1
 
G4double fDx3minus1
 
G4double fDy2plus1
 
G4double fDy2minus1
 
G4double fa1md1
 
G4double fa2md2
 
G4double fdeltaX
 
G4double fdeltaY
 

Additional Inherited Members

- Public Types inherited from G4VTwistSurface
enum  EValidate { kDontValidate = 0, kValidateWithTol = 1, kValidateWithoutTol = 2, kUninitialized = 3 }
 
- Static Public Attributes inherited from G4VTwistSurface
static const G4int sOutside
 
static const G4int sInside
 
static const G4int sBoundary
 
static const G4int sCorner
 
static const G4int sC0Min1Min
 
static const G4int sC0Max1Min
 
static const G4int sC0Max1Max
 
static const G4int sC0Min1Max
 
static const G4int sAxisMin
 
static const G4int sAxisMax
 
static const G4int sAxisX
 
static const G4int sAxisY
 
static const G4int sAxisZ
 
static const G4int sAxisRho
 
static const G4int sAxisPhi
 
static const G4int sAxis0
 
static const G4int sAxis1
 
static const G4int sSizeMask
 
static const G4int sAxisMask
 
static const G4int sAreaMask
 
- Protected Member Functions inherited from G4VTwistSurface
G4VTwistSurface ** GetNeighbours ()
 
G4int GetNeighbours (G4int areacode, G4VTwistSurface *surfaces[])
 
G4ThreeVector GetCorner (G4int areacode) const
 
void GetBoundaryAxis (G4int areacode, EAxis axis[]) const
 
void GetBoundaryLimit (G4int areacode, G4double limit[]) const
 
virtual void SetBoundary (const G4int &axiscode, const G4ThreeVector &direction, const G4ThreeVector &x0, const G4int &boundarytype)
 
void SetCorner (G4int areacode, G4double x, G4double y, G4double z)
 
- Protected Attributes inherited from G4VTwistSurface
EAxis fAxis [2]
 
G4double fAxisMin [2]
 
G4double fAxisMax [2]
 
CurrentStatus fCurStatWithV
 
CurrentStatus fCurStat
 
G4RotationMatrix fRot
 
G4ThreeVector fTrans
 
G4int fHandedness
 
G4SurfCurNormal fCurrentNormal
 
G4bool fIsValidNorm
 
G4double kCarTolerance
 

Constructor & Destructor Documentation

G4TwistTrapAlphaSide ( const G4String name,
G4double  PhiTwist,
G4double  pDz,
G4double  pTheta,
G4double  pPhi,
G4double  pDy1,
G4double  pDx1,
G4double  pDx2,
G4double  pDy2,
G4double  pDx3,
G4double  pDx4,
G4double  pAlph,
G4double  AngleSide 
)
virtual ~G4TwistTrapAlphaSide ( )
virtual
G4TwistTrapAlphaSide ( __void__ &  )

Member Function Documentation

virtual G4ThreeVector GetNormal ( const G4ThreeVector xx,
G4bool  isGlobal = false 
)
virtual

Implements G4VTwistSurface.

virtual G4int DistanceToSurface ( const G4ThreeVector gp,
const G4ThreeVector gv,
G4ThreeVector  gxx[],
G4double  distance[],
G4int  areacode[],
G4bool  isvalid[],
EValidate  validate = kValidateWithTol 
)
virtual

Implements G4VTwistSurface.

virtual G4int DistanceToSurface ( const G4ThreeVector gp,
G4ThreeVector  gxx[],
G4double  distance[],
G4int  areacode[] 
)
virtual

Implements G4VTwistSurface.

virtual G4int GetAreaCode ( const G4ThreeVector xx,
G4bool  withTol = true 
)
privatevirtual

Implements G4VTwistSurface.

virtual void SetCorners ( )
privatevirtual

Implements G4VTwistSurface.

virtual void SetBoundaries ( )
privatevirtual

Implements G4VTwistSurface.

void GetPhiUAtX ( G4ThreeVector  p,
G4double phi,
G4double u 
)
private
G4ThreeVector ProjectPoint ( const G4ThreeVector p,
G4bool  isglobal = false 
)
private
G4ThreeVector SurfacePoint ( G4double  phi,
G4double  u,
G4bool  isGlobal = false 
)
privatevirtual
G4double GetBoundaryMin ( G4double  phi)
privatevirtual

Implements G4VTwistSurface.

References GetValueB().

G4double GetBoundaryMax ( G4double  phi)
privatevirtual

Implements G4VTwistSurface.

References GetValueB().

G4double GetSurfaceArea ( )
privatevirtual

Implements G4VTwistSurface.

References fa1md1, fa2md2, fDy1, fDy2, fDz, and fTAlph.

virtual void GetFacets ( G4int  m,
G4int  n,
G4double  xyz[][3],
G4int  faces[][4],
G4int  iside 
)
privatevirtual

Implements G4VTwistSurface.

G4double GetValueA ( G4double  phi)
private

References fDx4minus2, fDx4plus2, and fPhiTwist.

Referenced by Xcoef().

G4double GetValueB ( G4double  phi)
private

References fDy2minus1, fDy2plus1, and fPhiTwist.

Referenced by GetBoundaryMax(), GetBoundaryMin(), and Xcoef().

G4double GetValueD ( G4double  phi)
private

References fDx3minus1, fDx3plus1, and fPhiTwist.

Referenced by Xcoef().

G4double Xcoef ( G4double  u,
G4double  phi 
)
private

References fTAlph, GetValueA(), GetValueB(), and GetValueD().

Referenced by SurfacePoint().

Member Data Documentation

G4double fTheta
private
G4double fPhi
private
G4double fDy1
private

Referenced by GetSurfaceArea(), and NormAng().

G4double fDx1
private
G4double fDx2
private

Referenced by NormAng().

G4double fDy2
private

Referenced by GetSurfaceArea().

G4double fDx3
private
G4double fDx4
private

Referenced by NormAng().

G4double fDz
private
G4double fAlph
private
G4double fTAlph
private

Referenced by GetSurfaceArea(), NormAng(), and Xcoef().

G4double fPhiTwist
private
G4double fAngleSide
private
G4double fDx4plus2
private

Referenced by GetValueA().

G4double fDx4minus2
private

Referenced by GetValueA(), and NormAng().

G4double fDx3plus1
private

Referenced by GetValueD(), and NormAng().

G4double fDx3minus1
private

Referenced by GetValueD(), and NormAng().

G4double fDy2plus1
private

Referenced by GetValueB().

G4double fDy2minus1
private

Referenced by GetValueB().

G4double fa1md1
private

Referenced by GetSurfaceArea(), and NormAng().

G4double fa2md2
private

Referenced by GetSurfaceArea().

G4double fdeltaX
private

Referenced by NormAng(), and SurfacePoint().

G4double fdeltaY
private

Referenced by NormAng(), and SurfacePoint().