Geant4
10.00.p03
|
#include <G4Trap.hh>
Protected Member Functions | |
G4bool | MakePlanes () |
G4bool | MakePlane (const G4ThreeVector &p1, const G4ThreeVector &p2, const G4ThreeVector &p3, const G4ThreeVector &p4, TrapSidePlane &plane) |
G4ThreeVectorList * | CreateRotatedVertices (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 |
G4double | GetFaceArea (const G4ThreeVector &p1, const G4ThreeVector &p2, const G4ThreeVector &p3, const G4ThreeVector &p4) |
G4ThreeVector | GetPointOnPlane (G4ThreeVector p0, G4ThreeVector p1, G4ThreeVector p2, G4ThreeVector p3, G4double &area) const |
Private Attributes | |
G4double | fDz |
G4double | fTthetaCphi |
G4double | fTthetaSphi |
G4double | fDy1 |
G4double | fDx1 |
G4double | fDx2 |
G4double | fTalpha1 |
G4double | fDy2 |
G4double | fDx3 |
G4double | fDx4 |
G4double | fTalpha2 |
TrapSidePlane | fPlanes [4] |
Additional Inherited Members | |
Protected Attributes inherited from G4CSGSolid | |
G4double | fCubicVolume |
G4double | fSurfaceArea |
G4bool | fRebuildPolyhedron |
G4Polyhedron * | fpPolyhedron |
Protected Attributes inherited from G4VSolid | |
G4double | kCarTolerance |
G4Trap::G4Trap | ( | const G4String & | pName, |
G4double | pDz, | ||
G4double | pTheta, | ||
G4double | pPhi, | ||
G4double | pDy1, | ||
G4double | pDx1, | ||
G4double | pDx2, | ||
G4double | pAlp1, | ||
G4double | pDy2, | ||
G4double | pDx3, | ||
G4double | pDx4, | ||
G4double | pAlp2 | ||
) |
Definition at line 83 of file G4Trap.cc.
References FatalException, fDx1, fDx2, fDx3, fDx4, fDy1, fDy2, fDz, fTalpha1, fTalpha2, fTthetaCphi, fTthetaSphi, G4endl, G4Exception(), G4VSolid::GetName(), and MakePlanes().
Referenced by Clone().
G4Trap::G4Trap | ( | const G4String & | pName, |
const G4ThreeVector | pt[8] | ||
) |
Definition at line 128 of file G4Trap.cc.
References G4VSolid::DumpInfo(), FatalException, fDx1, fDx2, fDx3, fDx4, fDy1, fDy2, fDz, fPlanes, fTalpha1, fTalpha2, fTthetaCphi, fTthetaSphi, G4Exception(), G4VSolid::GetName(), G4VSolid::kCarTolerance, MakePlane(), and z.
Definition at line 221 of file G4Trap.cc.
References FatalException, fDx1, fDx2, fDx3, fDx4, fDy1, fDy2, fDz, fPlanes, fTalpha1, fTalpha2, fTthetaCphi, fTthetaSphi, G4Exception(), G4VSolid::GetName(), and MakePlane().
G4Trap::G4Trap | ( | const G4String & | pName, |
G4double | pDx1, | ||
G4double | pDx2, | ||
G4double | pDy1, | ||
G4double | pDy2, | ||
G4double | pDz | ||
) |
Definition at line 319 of file G4Trap.cc.
References FatalException, fDx1, fDx2, fDx3, fDx4, fDy1, fDy2, fDz, fPlanes, fTalpha1, fTalpha2, fTthetaCphi, fTthetaSphi, G4Exception(), G4VSolid::GetName(), and MakePlane().
G4Trap::G4Trap | ( | const G4String & | pName, |
G4double | pDx, | ||
G4double | pDy, | ||
G4double | pDz, | ||
G4double | pAlpha, | ||
G4double | pTheta, | ||
G4double | pPhi | ||
) |
Definition at line 417 of file G4Trap.cc.
References FatalException, fDx1, fDx2, fDx3, fDx4, fDy1, fDy2, fDz, fPlanes, fTalpha1, fTalpha2, fTthetaCphi, fTthetaSphi, G4Exception(), G4VSolid::GetName(), and MakePlane().
G4Trap::G4Trap | ( | const G4String & | pName | ) |
Definition at line 518 of file G4Trap.cc.
References MakePlanes().
G4Trap::G4Trap | ( | __void__ & | a | ) |
Definition at line 531 of file G4Trap.cc.
References MakePlanes().
G4Trap::G4Trap | ( | const G4Trap & | rhs | ) |
Definition at line 551 of file G4Trap.cc.
References TrapSidePlane::a, TrapSidePlane::b, TrapSidePlane::c, TrapSidePlane::d, and fPlanes.
|
private |
Definition at line 1228 of file G4Trap.cc.
References a, TrapSidePlane::b, TrapSidePlane::c, TrapSidePlane::d, fDz, fPlanes, and kInfinity.
Referenced by SurfaceNormal().
|
virtual |
Implements G4VSolid.
Definition at line 815 of file G4Trap.cc.
References CreateRotatedVertices(), fDx1, fDx2, fDx3, fDx4, fDy1, fDy2, fDz, fTalpha1, fTalpha2, fTthetaCphi, fTthetaSphi, G4VoxelLimits::GetMaxXExtent(), G4VoxelLimits::GetMaxYExtent(), G4VoxelLimits::GetMaxZExtent(), G4VoxelLimits::GetMinXExtent(), G4VoxelLimits::GetMinYExtent(), G4VoxelLimits::GetMinZExtent(), G4AffineTransform::IsRotated(), G4VoxelLimits::IsXLimited(), G4VoxelLimits::IsYLimited(), G4VoxelLimits::IsZLimited(), G4VSolid::kCarTolerance, kInfinity, kXAxis, kYAxis, kZAxis, G4AffineTransform::NetTranslation(), and z.
|
virtual |
|
virtual |
Reimplemented from G4VSolid.
Definition at line 803 of file G4Trap.cc.
References G4VPVParameterisation::ComputeDimensions().
|
virtual |
|
protected |
Definition at line 1751 of file G4Trap.cc.
References G4VSolid::DumpInfo(), FatalException, fDx1, fDx2, fDx3, fDx4, fDy1, fDy2, fDz, fTalpha1, fTalpha2, fTthetaCphi, fTthetaSphi, G4Exception(), and G4AffineTransform::TransformPoint().
Referenced by CalculateExtent().
|
virtual |
Implements G4VSolid.
Definition at line 1954 of file G4Trap.cc.
References G4VGraphicsScene::AddSolid().
|
virtual |
Implements G4VSolid.
Definition at line 1269 of file G4Trap.cc.
References TrapSidePlane::a, TrapSidePlane::b, TrapSidePlane::c, TrapSidePlane::d, fDz, fPlanes, G4VSolid::kCarTolerance, kInfinity, G4INCL::Math::max(), and smax.
|
virtual |
Implements G4VSolid.
Definition at line 1391 of file G4Trap.cc.
References TrapSidePlane::a, TrapSidePlane::b, TrapSidePlane::c, TrapSidePlane::d, fDz, and fPlanes.
|
virtual |
Implements G4VSolid.
Definition at line 1411 of file G4Trap.cc.
References a, TrapSidePlane::a, TrapSidePlane::b, TrapSidePlane::c, TrapSidePlane::d, G4VSolid::DumpInfo(), fDz, fPlanes, G4cout, G4endl, G4Exception(), JustWarning, G4VSolid::kCarTolerance, kInfinity, kMZ, kPZ, ks0, ks1, ks2, ks3, kUndef, G4INCL::Math::max(), and mm.
|
virtual |
Implements G4VSolid.
Definition at line 1705 of file G4Trap.cc.
References TrapSidePlane::a, TrapSidePlane::b, TrapSidePlane::c, TrapSidePlane::d, G4VSolid::DumpInfo(), fDz, fPlanes, G4cout, G4endl, G4Exception(), Inside(), JustWarning, kOutside, and mm.
|
virtual |
|
inlineprivate |
|
private |
Definition at line 1856 of file G4Trap.cc.
References CLHEP::normal(), and G4INCL::DeJongSpin::shoot().
Referenced by GetPointOnSurface().
|
virtual |
Reimplemented from G4VSolid.
Definition at line 1903 of file G4Trap.cc.
References fDx1, fDx2, fDx3, fDx4, fDy1, fDy2, fDz, fTalpha1, fTalpha2, fTthetaCphi, fTthetaSphi, GetPointOnPlane(), and G4INCL::DeJongSpin::shoot().
|
inline |
|
inline |
Referenced by export_G4Trap(), G4tgbGeometryDumper::GetSolidParams(), G4GDMLWriteParamvol::Trap_dimensionsWrite(), and G4GDMLWriteSolids::TrapWrite().
|
inline |
Referenced by export_G4Trap(), G4tgbGeometryDumper::GetSolidParams(), G4GDMLWriteParamvol::Trap_dimensionsWrite(), and G4GDMLWriteSolids::TrapWrite().
|
inline |
Referenced by export_G4Trap(), G4tgbGeometryDumper::GetSolidParams(), G4GDMLWriteParamvol::Trap_dimensionsWrite(), and G4GDMLWriteSolids::TrapWrite().
|
inline |
Referenced by export_G4Trap(), G4tgbGeometryDumper::GetSolidParams(), G4GDMLWriteParamvol::Trap_dimensionsWrite(), and G4GDMLWriteSolids::TrapWrite().
|
inline |
Referenced by export_G4Trap(), G4tgbGeometryDumper::GetSolidParams(), G4GDMLWriteParamvol::Trap_dimensionsWrite(), and G4GDMLWriteSolids::TrapWrite().
|
inline |
Referenced by export_G4Trap(), G4tgbGeometryDumper::GetSolidParams(), G4GDMLWriteParamvol::Trap_dimensionsWrite(), and G4GDMLWriteSolids::TrapWrite().
|
inline |
Referenced by export_G4Trap(), G4tgbGeometryDumper::GetSolidParams(), G4GDMLWriteParamvol::Trap_dimensionsWrite(), and G4GDMLWriteSolids::TrapWrite().
|
inline |
Referenced by export_G4Trap(), G4tgbGeometryDumper::GetSolidParams(), G4GDMLWriteParamvol::Trap_dimensionsWrite(), and G4GDMLWriteSolids::TrapWrite().
|
inline |
Referenced by export_G4Trap(), G4tgbGeometryDumper::GetSolidParams(), G4GDMLWriteParamvol::Trap_dimensionsWrite(), and G4GDMLWriteSolids::TrapWrite().
|
inline |
Referenced by export_G4Trap(), G4tgbGeometryDumper::GetSolidParams(), G4GDMLWriteParamvol::Trap_dimensionsWrite(), and G4GDMLWriteSolids::TrapWrite().
|
virtual |
Implements G4VSolid.
Definition at line 1107 of file G4Trap.cc.
References TrapSidePlane::a, TrapSidePlane::b, TrapSidePlane::c, TrapSidePlane::d, fDz, fPlanes, G4VSolid::kCarTolerance, kInside, kOutside, and kSurface.
Referenced by DistanceToOut().
|
protected |
Definition at line 728 of file G4Trap.cc.
References a, TrapSidePlane::a, TrapSidePlane::b, TrapSidePlane::c, TrapSidePlane::d, FatalException, G4Exception(), G4VSolid::GetName(), and kCoplanar_Tolerance.
Referenced by G4Trap(), and MakePlanes().
|
protected |
Definition at line 649 of file G4Trap.cc.
References FatalException, fDx1, fDx2, fDx3, fDx4, fDy1, fDy2, fDz, fPlanes, fTalpha1, fTalpha2, fTthetaCphi, fTthetaSphi, G4Exception(), G4VSolid::GetName(), and MakePlane().
Referenced by G4Trap(), and SetAllParameters().
Definition at line 570 of file G4Trap.cc.
References TrapSidePlane::a, TrapSidePlane::b, TrapSidePlane::c, TrapSidePlane::d, fDx1, fDx2, fDx3, fDx4, fDy1, fDy2, fDz, fPlanes, fTalpha1, fTalpha2, fTthetaCphi, fTthetaSphi, and G4CSGSolid::operator=().
void G4Trap::SetAllParameters | ( | G4double | pDz, |
G4double | pTheta, | ||
G4double | pPhi, | ||
G4double | pDy1, | ||
G4double | pDx1, | ||
G4double | pDx2, | ||
G4double | pAlp1, | ||
G4double | pDy2, | ||
G4double | pDx3, | ||
G4double | pDx4, | ||
G4double | pAlp2 | ||
) |
Definition at line 602 of file G4Trap.cc.
References FatalException, G4CSGSolid::fCubicVolume, fDx1, fDx2, fDx3, fDx4, fDy1, fDy2, fDz, G4CSGSolid::fRebuildPolyhedron, G4CSGSolid::fSurfaceArea, fTalpha1, fTalpha2, fTthetaCphi, fTthetaSphi, G4endl, G4Exception(), G4VSolid::GetName(), and MakePlanes().
Referenced by G4GDMLParameterisation::ComputeDimensions(), G4ParameterisationTrdX::ComputeDimensions(), and export_G4Trap().
|
virtual |
Reimplemented from G4CSGSolid.
Definition at line 1816 of file G4Trap.cc.
References TrapSidePlane::a, TrapSidePlane::b, TrapSidePlane::c, TrapSidePlane::d, degree, fDx1, fDx2, fDx3, fDx4, fDy1, fDy2, fDz, fPlanes, fTalpha1, fTalpha2, fTthetaCphi, fTthetaSphi, G4VSolid::GetName(), and mm.
|
virtual |
Implements G4VSolid.
Definition at line 1148 of file G4Trap.cc.
References a, ApproxSurfaceNormal(), TrapSidePlane::b, TrapSidePlane::c, TrapSidePlane::d, fDz, fPlanes, G4Exception(), JustWarning, G4VSolid::kCarTolerance, and kInfinity.
|
private |
Definition at line 279 of file G4Trap.hh.
Referenced by CalculateExtent(), CreatePolyhedron(), CreateRotatedVertices(), G4Trap(), GetPointOnSurface(), MakePlanes(), operator=(), SetAllParameters(), and StreamInfo().
|
private |
Definition at line 279 of file G4Trap.hh.
Referenced by CalculateExtent(), CreatePolyhedron(), CreateRotatedVertices(), G4Trap(), GetPointOnSurface(), MakePlanes(), operator=(), SetAllParameters(), and StreamInfo().
|
private |
Definition at line 280 of file G4Trap.hh.
Referenced by CalculateExtent(), CreatePolyhedron(), CreateRotatedVertices(), G4Trap(), GetPointOnSurface(), MakePlanes(), operator=(), SetAllParameters(), and StreamInfo().
|
private |
Definition at line 280 of file G4Trap.hh.
Referenced by CalculateExtent(), CreatePolyhedron(), CreateRotatedVertices(), G4Trap(), GetPointOnSurface(), MakePlanes(), operator=(), SetAllParameters(), and StreamInfo().
|
private |
Definition at line 279 of file G4Trap.hh.
Referenced by CalculateExtent(), CreatePolyhedron(), CreateRotatedVertices(), G4Trap(), GetPointOnSurface(), MakePlanes(), operator=(), SetAllParameters(), and StreamInfo().
|
private |
Definition at line 280 of file G4Trap.hh.
Referenced by CalculateExtent(), CreatePolyhedron(), CreateRotatedVertices(), G4Trap(), GetPointOnSurface(), MakePlanes(), operator=(), SetAllParameters(), and StreamInfo().
|
private |
Definition at line 278 of file G4Trap.hh.
Referenced by ApproxSurfaceNormal(), CalculateExtent(), CreatePolyhedron(), CreateRotatedVertices(), DistanceToIn(), DistanceToOut(), G4Trap(), GetPointOnSurface(), Inside(), MakePlanes(), operator=(), SetAllParameters(), StreamInfo(), and SurfaceNormal().
|
private |
Definition at line 281 of file G4Trap.hh.
Referenced by ApproxSurfaceNormal(), DistanceToIn(), DistanceToOut(), G4Trap(), Inside(), MakePlanes(), operator=(), StreamInfo(), and SurfaceNormal().
|
private |
Definition at line 279 of file G4Trap.hh.
Referenced by CalculateExtent(), CreatePolyhedron(), CreateRotatedVertices(), G4Trap(), GetPointOnSurface(), MakePlanes(), operator=(), SetAllParameters(), and StreamInfo().
|
private |
Definition at line 280 of file G4Trap.hh.
Referenced by CalculateExtent(), CreatePolyhedron(), CreateRotatedVertices(), G4Trap(), GetPointOnSurface(), MakePlanes(), operator=(), SetAllParameters(), and StreamInfo().
|
private |
Definition at line 278 of file G4Trap.hh.
Referenced by CalculateExtent(), CreatePolyhedron(), CreateRotatedVertices(), G4Trap(), GetPointOnSurface(), MakePlanes(), operator=(), SetAllParameters(), and StreamInfo().
|
private |
Definition at line 278 of file G4Trap.hh.
Referenced by CalculateExtent(), CreatePolyhedron(), CreateRotatedVertices(), G4Trap(), GetPointOnSurface(), MakePlanes(), operator=(), SetAllParameters(), and StreamInfo().