Geant4  10.01.p02
G4Trd Class Reference

#include <G4Trd.hh>

+ Inheritance diagram for G4Trd:
+ Collaboration diagram for G4Trd:

Public Types

enum  ESide {
  kUndefined, kPX, kMX, kPY,
  kMY, kPZ, kMZ
}
 

Public Member Functions

 G4Trd (const G4String &pName, G4double pdx1, G4double pdx2, G4double pdy1, G4double pdy2, G4double pdz)
 
 ~G4Trd ()
 
G4double GetXHalfLength1 () const
 
G4double GetXHalfLength2 () const
 
G4double GetYHalfLength1 () const
 
G4double GetYHalfLength2 () const
 
G4double GetZHalfLength () const
 
void SetXHalfLength1 (G4double val)
 
void SetXHalfLength2 (G4double val)
 
void SetYHalfLength1 (G4double val)
 
void SetYHalfLength2 (G4double val)
 
void SetZHalfLength (G4double val)
 
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=false, G4bool *validNorm=0, G4ThreeVector *n=0) const
 
G4double DistanceToOut (const G4ThreeVector &p) const
 
void CheckAndSetAllParameters (G4double pdx1, G4double pdx2, G4double pdy1, G4double pdy2, G4double pdz)
 
void SetAllParameters (G4double pdx1, G4double pdx2, G4double pdy1, G4double pdy2, G4double pdz)
 
G4GeometryType GetEntityType () const
 
G4ThreeVector GetPointOnSurface () const
 
G4VSolidClone () const
 
std::ostream & StreamInfo (std::ostream &os) const
 
void DescribeYourselfTo (G4VGraphicsScene &scene) const
 
G4PolyhedronCreatePolyhedron () const
 
 G4Trd (__void__ &)
 
 G4Trd (const G4Trd &rhs)
 
G4Trdoperator= (const G4Trd &rhs)
 
G4ThreeVectorListCreateRotatedVertices (const G4AffineTransform &pTransform) const
 
G4ThreeVector ApproxSurfaceNormal (const G4ThreeVector &p) const
 
- 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)
 

Private Attributes

G4double fDx1
 
G4double fDx2
 
G4double fDy1
 
G4double fDy2
 
G4double fDz
 

Additional Inherited Members

- 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
 
- Protected Attributes inherited from G4CSGSolid
G4double fCubicVolume
 
G4double fSurfaceArea
 
G4bool fRebuildPolyhedron
 
G4PolyhedronfpPolyhedron
 
- Protected Attributes inherited from G4VSolid
G4double kCarTolerance
 

Detailed Description

Definition at line 72 of file G4Trd.hh.

Member Enumeration Documentation

Enumerator
kUndefined 
kPX 
kMX 
kPY 
kMY 
kPZ 
kMZ 

Definition at line 157 of file G4Trd.hh.

Constructor & Destructor Documentation

G4Trd::G4Trd ( const G4String pName,
G4double  pdx1,
G4double  pdx2,
G4double  pdy1,
G4double  pdy2,
G4double  pdz 
)

Definition at line 59 of file G4Trd.cc.

References CheckAndSetAllParameters().

Referenced by Clone().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4Trd::~G4Trd ( )

Definition at line 127 of file G4Trd.cc.

G4Trd::G4Trd ( __void__ &  a)

Definition at line 118 of file G4Trd.cc.

G4Trd::G4Trd ( const G4Trd rhs)

Definition at line 135 of file G4Trd.cc.

Member Function Documentation

G4ThreeVector G4Trd::ApproxSurfaceNormal ( const G4ThreeVector p) const

Definition at line 502 of file G4Trd.cc.

References fcos(), fDx1, fDx2, fDy1, fDy2, fDz, and z.

Referenced by SurfaceNormal().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4Trd::CheckAndSetAllParameters ( G4double  pdx1,
G4double  pdx2,
G4double  pdy1,
G4double  pdy2,
G4double  pdz 
)

Definition at line 72 of file G4Trd.cc.

References FatalException, G4CSGSolid::fCubicVolume, fDx1, fDx2, fDy1, fDy2, fDz, G4CSGSolid::fRebuildPolyhedron, G4CSGSolid::fSurfaceArea, G4endl, G4Exception(), G4VSolid::GetName(), G4VSolid::kCarTolerance, and G4INCL::Math::max().

Referenced by G4Trd(), and SetAllParameters().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4VSolid * G4Trd::Clone ( ) const
virtual

Reimplemented from G4VSolid.

Definition at line 1366 of file G4Trd.cc.

References G4Trd().

+ Here is the call graph for this function:

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

Reimplemented from G4VSolid.

Definition at line 180 of file G4Trd.cc.

References G4VPVParameterisation::ComputeDimensions().

+ Here is the call graph for this function:

G4Polyhedron * G4Trd::CreatePolyhedron ( ) const
virtual

Reimplemented from G4VSolid.

Definition at line 1470 of file G4Trd.cc.

References fDx1, fDx2, fDy1, fDy2, and fDz.

G4ThreeVectorList * G4Trd::CreateRotatedVertices ( const G4AffineTransform pTransform) const

Definition at line 1318 of file G4Trd.cc.

References G4VSolid::DumpInfo(), FatalException, fDx1, fDx2, fDy1, fDy2, fDz, G4Exception(), and G4AffineTransform::TransformPoint().

Referenced by CalculateExtent().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4Trd::DescribeYourselfTo ( G4VGraphicsScene scene) const
virtual

Implements G4VSolid.

Definition at line 1465 of file G4Trd.cc.

References G4VGraphicsScene::AddSolid().

+ Here is the call graph for this function:

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

Implements G4VSolid.

Definition at line 595 of file G4Trd.cc.

References fDx1, fDx2, fDy1, fDy2, fDz, G4VSolid::kCarTolerance, kInfinity, and smax.

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

Implements G4VSolid.

Definition at line 821 of file G4Trd.cc.

References fDx1, fDx2, fDy1, fDy2, and fDz.

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

Implements G4VSolid.

Definition at line 868 of file G4Trd.cc.

References G4VSolid::DumpInfo(), fDx1, fDx2, fDy1, fDy2, fDz, G4Exception(), JustWarning, G4VSolid::kCarTolerance, kInfinity, kMX, kMY, kMZ, kPX, kPY, kPZ, and kUndefined.

+ Here is the call graph for this function:

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

Implements G4VSolid.

Definition at line 1260 of file G4Trd.cc.

References G4VSolid::DumpInfo(), fDx1, fDx2, fDy1, fDy2, fDz, G4cout, G4endl, G4Exception(), Inside(), JustWarning, kOutside, and mm.

+ Here is the call graph for this function:

G4double G4Trd::GetCubicVolume ( )
inlinevirtual

Reimplemented from G4VSolid.

G4GeometryType G4Trd::GetEntityType ( ) const
virtual

Implements G4VSolid.

Definition at line 1357 of file G4Trd.cc.

G4ThreeVector G4Trd::GetPointOnSurface ( ) const
virtual

Reimplemented from G4VSolid.

Definition at line 1402 of file G4Trd.cc.

References fDx1, fDx2, fDy1, fDy2, fDz, and G4UniformRand.

G4double G4Trd::GetSurfaceArea ( )
inlinevirtual

Reimplemented from G4VSolid.

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

Implements G4VSolid.

Definition at line 370 of file G4Trd.cc.

References fDx1, fDx2, fDy1, fDy2, fDz, G4VSolid::kCarTolerance, kInside, kOutside, and kSurface.

Referenced by CalculateExtent(), and DistanceToOut().

+ Here is the caller graph for this function:

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

Definition at line 145 of file G4Trd.cc.

References fDx1, fDx2, fDy1, fDy2, fDz, and G4CSGSolid::operator=().

+ Here is the call graph for this function:

void G4Trd::SetAllParameters ( G4double  pdx1,
G4double  pdx2,
G4double  pdy1,
G4double  pdy2,
G4double  pdz 
)

Definition at line 168 of file G4Trd.cc.

References CheckAndSetAllParameters().

Referenced by G4ParameterisationTrdX::ComputeDimensions(), G4ParameterisationTrdY::ComputeDimensions(), and G4ParameterisationTrdZ::ComputeDimensions().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4Trd::SetXHalfLength1 ( G4double  val)
inline

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

+ Here is the caller graph for this function:

void G4Trd::SetXHalfLength2 ( G4double  val)
inline

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

+ Here is the caller graph for this function:

void G4Trd::SetYHalfLength1 ( G4double  val)
inline

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

+ Here is the caller graph for this function:

void G4Trd::SetYHalfLength2 ( G4double  val)
inline

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

+ Here is the caller graph for this function:

void G4Trd::SetZHalfLength ( G4double  val)
inline

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

+ Here is the caller graph for this function:

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

Reimplemented from G4CSGSolid.

Definition at line 1375 of file G4Trd.cc.

References fDx1, fDx2, fDy1, fDy2, fDz, G4VSolid::GetName(), and mm.

+ Here is the call graph for this function:

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

Implements G4VSolid.

Definition at line 433 of file G4Trd.cc.

References ApproxSurfaceNormal(), fcos(), fDx1, fDx2, fDy1, fDy2, fDz, G4Exception(), JustWarning, G4VSolid::kCarTolerance, and z.

+ Here is the call graph for this function:

Member Data Documentation


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