Geant4  10.01.p02
G4Para Class Reference

#include <G4Para.hh>

+ Inheritance diagram for G4Para:
+ Collaboration diagram for G4Para:

Public Member Functions

 G4Para (const G4String &pName, G4double pDx, G4double pDy, G4double pDz, G4double pAlpha, G4double pTheta, G4double pPhi)
 
 G4Para (const G4String &pName, const G4ThreeVector pt[8])
 
virtual ~G4Para ()
 
G4double GetZHalfLength () const
 
G4ThreeVector GetSymAxis () const
 
G4double GetYHalfLength () const
 
G4double GetXHalfLength () const
 
G4double GetTanAlpha () const
 
void SetXHalfLength (G4double val)
 
void SetYHalfLength (G4double val)
 
void SetZHalfLength (G4double val)
 
void SetAlpha (G4double alpha)
 
void SetTanAlpha (G4double val)
 
void SetThetaAndPhi (double pTheta, double pPhi)
 
void SetAllParameters (G4double pDx, G4double pDy, G4double pDz, G4double pAlpha, G4double pTheta, G4double pPhi)
 
G4double GetCubicVolume ()
 
G4double GetSurfaceArea ()
 
void ComputeDimensions (G4VPVParameterisation *p, const G4int n, const G4VPhysicalVolume *pRep)
 
G4bool CalculateExtent (const EAxis pAxis, const G4VoxelLimits &pVoxelLimit, const G4AffineTransform &pTransform, G4double &pMin, G4double &pMax) const
 
EInside Inside (const G4ThreeVector &p) const
 
G4ThreeVector SurfaceNormal (const G4ThreeVector &p) const
 
G4double DistanceToIn (const G4ThreeVector &p, const G4ThreeVector &v) const
 
G4double DistanceToIn (const G4ThreeVector &p) const
 
G4double DistanceToOut (const G4ThreeVector &p, const G4ThreeVector &v, const G4bool calcNorm=G4bool(false), G4bool *validNorm=0, G4ThreeVector *n=0) const
 
G4double DistanceToOut (const G4ThreeVector &p) const
 
G4GeometryType GetEntityType () const
 
G4ThreeVector GetPointOnSurface () const
 
G4VSolidClone () const
 
std::ostream & StreamInfo (std::ostream &os) const
 
void DescribeYourselfTo (G4VGraphicsScene &scene) const
 
G4PolyhedronCreatePolyhedron () const
 
 G4Para (__void__ &)
 
 G4Para (const G4Para &rhs)
 
G4Paraoperator= (const G4Para &rhs)
 
- Public Member Functions inherited from G4CSGSolid
 G4CSGSolid (const G4String &pName)
 
virtual ~G4CSGSolid ()
 
virtual G4PolyhedronGetPolyhedron () const
 
 G4CSGSolid (__void__ &)
 
 G4CSGSolid (const G4CSGSolid &rhs)
 
G4CSGSolidoperator= (const G4CSGSolid &rhs)
 
- Public Member Functions inherited from G4VSolid
 G4VSolid (const G4String &name)
 
virtual ~G4VSolid ()
 
G4bool operator== (const G4VSolid &s) const
 
G4String GetName () const
 
void SetName (const G4String &name)
 
G4double GetTolerance () const
 
void DumpInfo () const
 
virtual G4VisExtent GetExtent () const
 
virtual const G4VSolidGetConstituentSolid (G4int no) const
 
virtual G4VSolidGetConstituentSolid (G4int no)
 
virtual const G4DisplacedSolidGetDisplacedSolidPtr () const
 
virtual G4DisplacedSolidGetDisplacedSolidPtr ()
 
 G4VSolid (__void__ &)
 
 G4VSolid (const G4VSolid &rhs)
 
G4VSolidoperator= (const G4VSolid &rhs)
 

Protected Member Functions

G4ThreeVectorListCreateRotatedVertices (const G4AffineTransform &pTransform) const
 
- Protected Member Functions inherited from G4CSGSolid
G4double GetRadiusInRing (G4double rmin, G4double rmax) const
 
- Protected Member Functions inherited from G4VSolid
void CalculateClippedPolygonExtent (G4ThreeVectorList &pPolygon, const G4VoxelLimits &pVoxelLimit, const EAxis pAxis, G4double &pMin, G4double &pMax) const
 
void ClipCrossSection (G4ThreeVectorList *pVertices, const G4int pSectionIndex, const G4VoxelLimits &pVoxelLimit, const EAxis pAxis, G4double &pMin, G4double &pMax) const
 
void ClipBetweenSections (G4ThreeVectorList *pVertices, const G4int pSectionIndex, const G4VoxelLimits &pVoxelLimit, const EAxis pAxis, G4double &pMin, G4double &pMax) const
 
void ClipPolygon (G4ThreeVectorList &pPolygon, const G4VoxelLimits &pVoxelLimit, const EAxis pAxis) const
 
G4double EstimateCubicVolume (G4int nStat, G4double epsilon) const
 
G4double EstimateSurfaceArea (G4int nStat, G4double ell) const
 

Private Member Functions

G4ThreeVector ApproxSurfaceNormal (const G4ThreeVector &p) const
 
G4ThreeVector GetPointOnPlane (G4ThreeVector p0, G4ThreeVector p1, G4ThreeVector p2, G4ThreeVector p3, G4double &area) const
 

Private Attributes

G4double fDx
 
G4double fDy
 
G4double fDz
 
G4double fTalpha
 
G4double fTthetaCphi
 
G4double fTthetaSphi
 

Additional Inherited Members

- Protected Attributes inherited from G4CSGSolid
G4double fCubicVolume
 
G4double fSurfaceArea
 
G4bool fRebuildPolyhedron
 
G4PolyhedronfpPolyhedron
 
- Protected Attributes inherited from G4VSolid
G4double kCarTolerance
 

Detailed Description

Definition at line 77 of file G4Para.hh.

Constructor & Destructor Documentation

G4Para::G4Para ( const G4String pName,
G4double  pDx,
G4double  pDy,
G4double  pDz,
G4double  pAlpha,
G4double  pTheta,
G4double  pPhi 
)

Definition at line 98 of file G4Para.cc.

References FatalException, G4endl, G4Exception(), G4VSolid::GetName(), and SetAllParameters().

Referenced by Clone().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4Para::G4Para ( const G4String pName,
const G4ThreeVector  pt[8] 
)

Definition at line 121 of file G4Para.cc.

References FatalException, G4CSGSolid::fCubicVolume, fDx, fDy, fDz, G4CSGSolid::fSurfaceArea, fTalpha, fTthetaCphi, fTthetaSphi, G4Exception(), G4VSolid::GetName(), and z.

+ Here is the call graph for this function:

G4Para::~G4Para ( )
virtual

Definition at line 163 of file G4Para.cc.

G4Para::G4Para ( __void__ &  a)

Definition at line 154 of file G4Para.cc.

G4Para::G4Para ( const G4Para rhs)

Definition at line 171 of file G4Para.cc.

Member Function Documentation

G4ThreeVector G4Para::ApproxSurfaceNormal ( const G4ThreeVector p) const
private

Definition at line 550 of file G4Para.cc.

References fDx, fDy, fDz, fTalpha, fTthetaCphi, fTthetaSphi, kNX, kNY, and kNZ.

Referenced by SurfaceNormal().

+ Here is the caller graph for this function:

G4VSolid * G4Para::Clone ( ) const
virtual

Reimplemented from G4VSolid.

Definition at line 1203 of file G4Para.cc.

References G4Para().

+ Here is the call graph for this function:

void G4Para::ComputeDimensions ( G4VPVParameterisation p,
const G4int  n,
const G4VPhysicalVolume pRep 
)
virtual

Reimplemented from G4VSolid.

Definition at line 206 of file G4Para.cc.

References G4VPVParameterisation::ComputeDimensions().

+ Here is the call graph for this function:

G4Polyhedron * G4Para::CreatePolyhedron ( ) const
virtual

Reimplemented from G4VSolid.

Definition at line 1345 of file G4Para.cc.

References alpha, fDx, fDy, fDz, fTalpha, fTthetaCphi, and fTthetaSphi.

G4ThreeVectorList * G4Para::CreateRotatedVertices ( const G4AffineTransform pTransform) const
protected

Definition at line 1147 of file G4Para.cc.

References G4VSolid::DumpInfo(), FatalException, fDx, fDy, fDz, fTalpha, fTthetaCphi, fTthetaSphi, G4Exception(), and G4AffineTransform::TransformPoint().

Referenced by CalculateExtent().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4Para::DescribeYourselfTo ( G4VGraphicsScene scene) const
virtual

Implements G4VSolid.

Definition at line 1340 of file G4Para.cc.

References G4VGraphicsScene::AddSolid().

+ Here is the call graph for this function:

G4double G4Para::DistanceToIn ( const G4ThreeVector p,
const G4ThreeVector v 
) const
virtual

Implements G4VSolid.

Definition at line 638 of file G4Para.cc.

References fDx, fDy, fDz, fTalpha, fTthetaCphi, fTthetaSphi, G4VSolid::kCarTolerance, kInfinity, G4INCL::Math::max(), and smax.

+ Here is the call graph for this function:

G4double G4Para::DistanceToIn ( const G4ThreeVector p) const
virtual

Implements G4VSolid.

Definition at line 814 of file G4Para.cc.

References fDx, fDy, fDz, fTalpha, fTthetaCphi, and fTthetaSphi.

G4double G4Para::DistanceToOut ( const G4ThreeVector p,
const G4ThreeVector v,
const G4bool  calcNorm = G4bool(false),
G4bool validNorm = 0,
G4ThreeVector n = 0 
) const
virtual

Implements G4VSolid.

Definition at line 861 of file G4Para.cc.

References G4VSolid::DumpInfo(), fDx, fDy, fDz, fTalpha, fTthetaCphi, fTthetaSphi, G4Exception(), JustWarning, G4VSolid::kCarTolerance, kInfinity, kMX, kMY, kMZ, kPX, kPY, kPZ, kUndef, and G4INCL::Math::max().

+ Here is the call graph for this function:

G4double G4Para::DistanceToOut ( const G4ThreeVector p) const
virtual

Implements G4VSolid.

Definition at line 1079 of file G4Para.cc.

References G4VSolid::DumpInfo(), fDx, fDy, fDz, fTalpha, fTthetaCphi, fTthetaSphi, G4cout, G4endl, G4Exception(), Inside(), JustWarning, kOutside, and mm.

+ Here is the call graph for this function:

G4double G4Para::GetCubicVolume ( )
inlinevirtual

Reimplemented from G4VSolid.

G4GeometryType G4Para::GetEntityType ( ) const
virtual

Implements G4VSolid.

Definition at line 1194 of file G4Para.cc.

G4ThreeVector G4Para::GetPointOnPlane ( G4ThreeVector  p0,
G4ThreeVector  p1,
G4ThreeVector  p2,
G4ThreeVector  p3,
G4double area 
) const
private

Definition at line 1240 of file G4Para.cc.

References CLHEP::normal(), p0, p1, p2, and G4INCL::DeJongSpin::shoot().

Referenced by GetPointOnSurface().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4ThreeVector G4Para::GetPointOnSurface ( ) const
virtual

Reimplemented from G4VSolid.

Definition at line 1289 of file G4Para.cc.

References fDx, fDy, fDz, fTalpha, fTthetaCphi, fTthetaSphi, GetPointOnPlane(), and G4INCL::DeJongSpin::shoot().

+ Here is the call graph for this function:

G4double G4Para::GetSurfaceArea ( )
inlinevirtual

Reimplemented from G4VSolid.

EInside G4Para::Inside ( const G4ThreeVector p) const
virtual

Implements G4VSolid.

Definition at line 438 of file G4Para.cc.

References fDx, fDy, fDz, fTalpha, fTthetaCphi, fTthetaSphi, G4VSolid::kCarTolerance, kInside, kOutside, and kSurface.

Referenced by CalculateExtent(), and DistanceToOut().

+ Here is the caller graph for this function:

G4Para & G4Para::operator= ( const G4Para rhs)

Definition at line 182 of file G4Para.cc.

References fDx, fDy, fDz, fTalpha, fTthetaCphi, fTthetaSphi, and G4CSGSolid::operator=().

+ Here is the call graph for this function:

void G4Para::SetAllParameters ( G4double  pDx,
G4double  pDy,
G4double  pDz,
G4double  pAlpha,
G4double  pTheta,
G4double  pPhi 
)

Definition at line 70 of file G4Para.cc.

References FatalException, G4endl, and G4Exception().

Referenced by G4ParameterisationParaX::ComputeDimensions(), G4ParameterisationParaY::ComputeDimensions(), G4ParameterisationParaZ::ComputeDimensions(), export_G4Para(), and G4Para().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4Para::SetAlpha ( G4double  alpha)
inline

Referenced by G4GDMLParameterisation::ComputeDimensions(), and export_G4Para().

+ Here is the caller graph for this function:

void G4Para::SetTanAlpha ( G4double  val)
inline

Referenced by G4GDMLParameterisation::ComputeDimensions(), and export_G4Para().

+ Here is the caller graph for this function:

void G4Para::SetThetaAndPhi ( double  pTheta,
double  pPhi 
)
inline

Referenced by G4GDMLParameterisation::ComputeDimensions(), and export_G4Para().

+ Here is the caller graph for this function:

void G4Para::SetXHalfLength ( G4double  val)
inline

Referenced by G4GDMLParameterisation::ComputeDimensions(), and export_G4Para().

+ Here is the caller graph for this function:

void G4Para::SetYHalfLength ( G4double  val)
inline

Referenced by G4GDMLParameterisation::ComputeDimensions(), and export_G4Para().

+ Here is the caller graph for this function:

void G4Para::SetZHalfLength ( G4double  val)
inline

Referenced by G4GDMLParameterisation::ComputeDimensions(), and export_G4Para().

+ Here is the caller graph for this function:

std::ostream & G4Para::StreamInfo ( std::ostream &  os) const
virtual

Reimplemented from G4CSGSolid.

Definition at line 1212 of file G4Para.cc.

References degree, fDx, fDy, fDz, fTalpha, fTthetaCphi, fTthetaSphi, G4VSolid::GetName(), and mm.

+ Here is the call graph for this function:

G4ThreeVector G4Para::SurfaceNormal ( const G4ThreeVector p) const
virtual

Implements G4VSolid.

Definition at line 477 of file G4Para.cc.

References ApproxSurfaceNormal(), fDx, fDy, fDz, fTalpha, fTthetaCphi, fTthetaSphi, G4Exception(), JustWarning, and G4VSolid::kCarTolerance.

+ Here is the call graph for this function:

Member Data Documentation


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