ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
#include <geant4/tree/geant4-10.6-release/source/geometry/solids/CSG/include/G4Trap.hh>
Protected Member Functions | |
void | MakePlanes () |
void | MakePlanes (const G4ThreeVector pt[8]) |
G4bool | MakePlane (const G4ThreeVector &p1, const G4ThreeVector &p2, const G4ThreeVector &p3, const G4ThreeVector &p4, TrapSidePlane &plane) |
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 |
Private Member Functions | |
void | CheckParameters () |
void | GetVertices (G4ThreeVector pt[8]) const |
G4ThreeVector | ApproxSurfaceNormal (const G4ThreeVector &p) const |
Additional Inherited Members | |
Protected Attributes inherited from G4CSGSolid | |
G4double | fCubicVolume = 0.0 |
G4double | fSurfaceArea = 0.0 |
G4bool | fRebuildPolyhedron = false |
G4Polyhedron * | fpPolyhedron = nullptr |
Definition at line 109 of file G4Trap.hh.
View newest version in sPHENIX GitHub at line 109 of file G4Trap.hh
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 60 of file G4Trap.cc.
View newest version in sPHENIX GitHub at line 60 of file G4Trap.cc
References CheckParameters(), fDx1, fDx2, fDx3, fDx4, fDy1, fDy2, fDz, fTalpha1, fTalpha2, fTthetaCphi, fTthetaSphi, and MakePlanes().
Referenced by Clone().
G4Trap::G4Trap | ( | const G4String & | pName, |
const G4ThreeVector | pt[8] | ||
) |
Definition at line 86 of file G4Trap.cc.
View newest version in sPHENIX GitHub at line 86 of file G4Trap.cc
References CheckParameters(), FatalException, fDx1, fDx2, fDx3, fDx4, fDy1, fDy2, fDz, fTalpha1, fTalpha2, fTthetaCphi, fTthetaSphi, G4Exception(), G4VSolid::GetName(), G4VSolid::kCarTolerance, MakePlanes(), message(), x, y, and z.
Definition at line 145 of file G4Trap.cc.
View newest version in sPHENIX GitHub at line 145 of file G4Trap.cc
References CheckParameters(), fDx1, fDx2, fDx3, fDx4, fDy1, fDy2, fDz, fTalpha1, fTalpha2, fTthetaCphi, fTthetaSphi, and MakePlanes().
G4Trap::G4Trap | ( | const G4String & | pName, |
G4double | pDx1, | ||
G4double | pDx2, | ||
G4double | pDy1, | ||
G4double | pDy2, | ||
G4double | pDz | ||
) |
Definition at line 163 of file G4Trap.cc.
View newest version in sPHENIX GitHub at line 163 of file G4Trap.cc
References CheckParameters(), fDx1, fDx2, fDx3, fDx4, fDy1, fDy2, fDz, fTalpha1, fTalpha2, fTthetaCphi, fTthetaSphi, and MakePlanes().
G4Trap::G4Trap | ( | const G4String & | pName, |
G4double | pDx, | ||
G4double | pDy, | ||
G4double | pDz, | ||
G4double | pAlpha, | ||
G4double | pTheta, | ||
G4double | pPhi | ||
) |
Definition at line 181 of file G4Trap.cc.
View newest version in sPHENIX GitHub at line 181 of file G4Trap.cc
References CheckParameters(), fDx1, fDx2, fDx3, fDx4, fDy1, fDy2, fDz, fTalpha1, fTalpha2, fTthetaCphi, fTthetaSphi, and MakePlanes().
G4Trap::G4Trap | ( | const G4String & | pName | ) |
Definition at line 205 of file G4Trap.cc.
View newest version in sPHENIX GitHub at line 205 of file G4Trap.cc
References MakePlanes().
|
virtual |
G4Trap::G4Trap | ( | __void__ & | a | ) |
Definition at line 219 of file G4Trap.cc.
View newest version in sPHENIX GitHub at line 219 of file G4Trap.cc
References MakePlanes().
G4Trap::G4Trap | ( | const G4Trap & | rhs | ) |
|
private |
Definition at line 785 of file G4Trap.cc.
View newest version in sPHENIX GitHub at line 785 of file G4Trap.cc
References a, TrapSidePlane::a, kdfinder::abs(), b, TrapSidePlane::b, TrapSidePlane::c, c, TrapSidePlane::d, d, DBL_MAX, fDz, fPlanes, CLHEP::Hep3Vector::x(), CLHEP::Hep3Vector::y(), and CLHEP::Hep3Vector::z().
Referenced by SurfaceNormal().
|
virtual |
Reimplemented from G4VSolid.
Definition at line 519 of file G4Trap.cc.
View newest version in sPHENIX GitHub at line 519 of file G4Trap.cc
References G4VSolid::DumpInfo(), dz, G4Exception(), G4VSolid::GetName(), GetVertices(), GetZHalfLength(), JustWarning, kInfinity, message(), pMax, pt, CLHEP::Hep3Vector::set(), CLHEP::Hep3Vector::x(), x, xmax, xmin, CLHEP::Hep3Vector::y(), y, ymax, ymin, and CLHEP::Hep3Vector::z().
Referenced by CalculateExtent().
|
virtual |
Implements G4VSolid.
Definition at line 559 of file G4Trap.cc.
View newest version in sPHENIX GitHub at line 559 of file G4Trap.cc
References G4BoundingEnvelope::BoundingBoxVsVoxelLimits(), BoundingLimits(), G4BoundingEnvelope::CalculateExtent(), GetVertices(), pMax, and pt.
|
private |
Definition at line 313 of file G4Trap.cc.
View newest version in sPHENIX GitHub at line 313 of file G4Trap.cc
References FatalException, fDx1, fDx2, fDx3, fDx4, fDy1, fDy2, fDz, G4Exception(), G4VSolid::GetName(), and message().
Referenced by G4Trap(), and SetAllParameters().
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Implements G4VSolid.
Definition at line 809 of file G4Trap.cc.
View newest version in sPHENIX GitHub at line 809 of file G4Trap.cc
References TrapSidePlane::a, kdfinder::abs(), TrapSidePlane::b, TrapSidePlane::c, TrapSidePlane::d, DBL_MAX, dz, fDz, fPlanes, halfCarTolerance, kInfinity, max, min, tmp, CLHEP::Hep3Vector::x(), CLHEP::Hep3Vector::y(), and CLHEP::Hep3Vector::z().
|
virtual |
Implements G4VSolid.
Definition at line 878 of file G4Trap.cc.
View newest version in sPHENIX GitHub at line 878 of file G4Trap.cc
References TrapSidePlane::a, kdfinder::abs(), b, TrapSidePlane::b, TrapSidePlane::c, c, TrapSidePlane::d, d, dx, dy, dz, fDz, fPlanes, fTrapType, max, CLHEP::Hep3Vector::x(), CLHEP::Hep3Vector::y(), and CLHEP::Hep3Vector::z().
|
virtual |
Implements G4VSolid.
Definition at line 935 of file G4Trap.cc.
View newest version in sPHENIX GitHub at line 935 of file G4Trap.cc
References a, TrapSidePlane::a, kdfinder::abs(), b, TrapSidePlane::b, TrapSidePlane::c, c, TrapSidePlane::d, DBL_MAX, fDz, fPlanes, halfCarTolerance, CLHEP::Hep3Vector::set(), tmp, CLHEP::Hep3Vector::x(), CLHEP::Hep3Vector::y(), and CLHEP::Hep3Vector::z().
|
virtual |
Implements G4VSolid.
Definition at line 1018 of file G4Trap.cc.
View newest version in sPHENIX GitHub at line 1018 of file G4Trap.cc
References TrapSidePlane::a, kdfinder::abs(), b, TrapSidePlane::b, TrapSidePlane::c, c, TrapSidePlane::d, d, G4VSolid::DumpInfo(), dx, dy, dz, fDz, fPlanes, fTrapType, G4cout, G4endl, G4Exception(), G4VSolid::GetName(), Inside(), JustWarning, kOutside, max, message(), mm, CLHEP::Hep3Vector::x(), CLHEP::Hep3Vector::y(), and CLHEP::Hep3Vector::z().
|
virtual |
Reimplemented from G4VSolid.
Definition at line 458 of file G4Trap.cc.
View newest version in sPHENIX GitHub at line 458 of file G4Trap.cc
References dz, G4CSGSolid::fCubicVolume, GetVertices(), pt, CLHEP::Hep3Vector::x(), CLHEP::Hep3Vector::y(), and CLHEP::Hep3Vector::z().
|
virtual |
|
virtual |
Reimplemented from G4VSolid.
Definition at line 1161 of file G4Trap.cc.
View newest version in sPHENIX GitHub at line 1161 of file G4Trap.cc
References G4UniformRand, GetVertices(), k, CLHEP::Hep3Vector::mag(), pt, G4GeomTools::QuadAreaNormal(), s1, G4GeomTools::TriangleAreaNormal(), Acts::UnitConstants::u, and v.
|
inline |
|
virtual |
Reimplemented from G4VSolid.
Definition at line 483 of file G4Trap.cc.
View newest version in sPHENIX GitHub at line 483 of file G4Trap.cc
References G4CSGSolid::fSurfaceArea, GetVertices(), CLHEP::Hep3Vector::mag(), pt, and G4GeomTools::QuadAreaNormal().
|
inline |
Referenced by export_G4Trap(), G4tgbGeometryDumper::GetSolidParams(), G4GDMLWriteParamvol::Trap_dimensionsWrite(), PHG4GDMLWriteParamvol::Trap_dimensionsWrite(), PHG4GDMLWriteSolids::TrapWrite(), and G4GDMLWriteSolids::TrapWrite().
|
inline |
Referenced by export_G4Trap(), G4tgbGeometryDumper::GetSolidParams(), G4GDMLWriteParamvol::Trap_dimensionsWrite(), PHG4GDMLWriteParamvol::Trap_dimensionsWrite(), PHG4GDMLWriteSolids::TrapWrite(), and G4GDMLWriteSolids::TrapWrite().
|
inline |
Referenced by export_G4Trap(), G4tgbGeometryDumper::GetSolidParams(), G4GDMLWriteParamvol::Trap_dimensionsWrite(), PHG4GDMLWriteParamvol::Trap_dimensionsWrite(), PHG4GDMLWriteSolids::TrapWrite(), and G4GDMLWriteSolids::TrapWrite().
|
private |
Definition at line 1143 of file G4Trap.cc.
View newest version in sPHENIX GitHub at line 1143 of file G4Trap.cc
References a, b, TrapSidePlane::b, TrapSidePlane::c, TrapSidePlane::d, fDz, fPlanes, CLHEP::Hep3Vector::set(), x, y, and z.
Referenced by BoundingLimits(), CalculateExtent(), GetCubicVolume(), GetPointOnSurface(), and GetSurfaceArea().
|
inline |
Referenced by export_G4Trap(), G4tgbGeometryDumper::GetSolidParams(), G4GDMLWriteParamvol::Trap_dimensionsWrite(), PHG4GDMLWriteParamvol::Trap_dimensionsWrite(), PHG4GDMLWriteSolids::TrapWrite(), and G4GDMLWriteSolids::TrapWrite().
|
inline |
Referenced by export_G4Trap(), G4tgbGeometryDumper::GetSolidParams(), G4GDMLWriteParamvol::Trap_dimensionsWrite(), PHG4GDMLWriteParamvol::Trap_dimensionsWrite(), PHG4GDMLWriteSolids::TrapWrite(), and G4GDMLWriteSolids::TrapWrite().
|
inline |
Referenced by export_G4Trap(), G4tgbGeometryDumper::GetSolidParams(), G4GDMLWriteParamvol::Trap_dimensionsWrite(), PHG4GDMLWriteParamvol::Trap_dimensionsWrite(), PHG4GDMLWriteSolids::TrapWrite(), and G4GDMLWriteSolids::TrapWrite().
|
inline |
Referenced by export_G4Trap(), G4tgbGeometryDumper::GetSolidParams(), G4GDMLWriteParamvol::Trap_dimensionsWrite(), PHG4GDMLWriteParamvol::Trap_dimensionsWrite(), PHG4GDMLWriteSolids::TrapWrite(), and G4GDMLWriteSolids::TrapWrite().
|
inline |
Referenced by export_G4Trap(), G4tgbGeometryDumper::GetSolidParams(), G4GDMLWriteParamvol::Trap_dimensionsWrite(), PHG4GDMLWriteParamvol::Trap_dimensionsWrite(), PHG4GDMLWriteSolids::TrapWrite(), and G4GDMLWriteSolids::TrapWrite().
|
inline |
Referenced by export_G4Trap(), G4tgbGeometryDumper::GetSolidParams(), G4GDMLWriteParamvol::Trap_dimensionsWrite(), PHG4GDMLWriteParamvol::Trap_dimensionsWrite(), PHG4GDMLWriteSolids::TrapWrite(), and G4GDMLWriteSolids::TrapWrite().
|
inline |
Referenced by BoundingLimits(), export_G4Trap(), G4tgbGeometryDumper::GetSolidParams(), G4GDMLWriteParamvol::Trap_dimensionsWrite(), PHG4GDMLWriteParamvol::Trap_dimensionsWrite(), PHG4GDMLWriteSolids::TrapWrite(), and G4GDMLWriteSolids::TrapWrite().
|
virtual |
Implements G4VSolid.
Definition at line 608 of file G4Trap.cc.
View newest version in sPHENIX GitHub at line 608 of file G4Trap.cc
References TrapSidePlane::a, kdfinder::abs(), b, TrapSidePlane::b, TrapSidePlane::c, c, TrapSidePlane::d, d, dx, dy, dz, fDz, fPlanes, fTrapType, halfCarTolerance, kInside, kOutside, kSurface, max, CLHEP::Hep3Vector::x(), CLHEP::Hep3Vector::y(), and CLHEP::Hep3Vector::z().
Referenced by DistanceToOut().
|
protected |
Definition at line 426 of file G4Trap.cc.
View newest version in sPHENIX GitHub at line 426 of file G4Trap.cc
References TrapSidePlane::a, kdfinder::abs(), TrapSidePlane::b, TrapSidePlane::c, Acts::VectorHelpers::cross(), TrapSidePlane::d, d1, d2, DBL_EPSILON, CLHEP::Hep3Vector::dot(), G4VSolid::kCarTolerance, max, CLHEP::normal(), CLHEP::Hep3Vector::setX(), CLHEP::Hep3Vector::setY(), CLHEP::Hep3Vector::setZ(), CLHEP::Hep3Vector::unit(), CLHEP::Hep3Vector::x(), CLHEP::Hep3Vector::y(), and CLHEP::Hep3Vector::z().
Referenced by MakePlanes().
|
protected |
Definition at line 333 of file G4Trap.cc.
View newest version in sPHENIX GitHub at line 333 of file G4Trap.cc
References fDx1, fDx2, fDx3, fDx4, fDy1, fDy2, fDz, fTalpha1, fTalpha2, fTthetaCphi, fTthetaSphi, and pt.
Referenced by G4Trap(), and SetAllParameters().
|
protected |
Definition at line 359 of file G4Trap.cc.
View newest version in sPHENIX GitHub at line 359 of file G4Trap.cc
References a, TrapSidePlane::a, kdfinder::abs(), b, TrapSidePlane::b, TrapSidePlane::c, c, TrapSidePlane::d, DBL_EPSILON, CLHEP::Hep3Vector::dot(), FatalException, fPlanes, fTrapType, G4Exception(), G4VSolid::GetName(), k, MakePlane(), message(), mm, CLHEP::normal(), and StreamInfo().
Definition at line 254 of file G4Trap.cc.
View newest version in sPHENIX GitHub at line 254 of file G4Trap.cc
References fDx1, fDx2, fDx3, fDx4, fDy1, fDy2, fDz, fPlanes, fTalpha1, fTalpha2, fTrapType, fTthetaCphi, fTthetaSphi, halfCarTolerance, 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 280 of file G4Trap.cc.
View newest version in sPHENIX GitHub at line 280 of file G4Trap.cc
References CheckParameters(), G4CSGSolid::fCubicVolume, fDx1, fDx2, fDx3, fDx4, fDy1, fDy2, fDz, G4CSGSolid::fRebuildPolyhedron, G4CSGSolid::fSurfaceArea, fTalpha1, fTalpha2, fTthetaCphi, fTthetaSphi, and MakePlanes().
Referenced by G4GDMLParameterisation::ComputeDimensions(), G4ParameterisationTrdX::ComputeDimensions(), and export_G4Trap().
|
virtual |
Reimplemented from G4CSGSolid.
Definition at line 1107 of file G4Trap.cc.
View newest version in sPHENIX GitHub at line 1107 of file G4Trap.cc
References degree, fDx1, fDx2, fDx3, fDx4, fDy1, fDy2, fDz, fTalpha1, fTalpha2, fTthetaCphi, fTthetaSphi, G4VSolid::GetName(), mm, phi, and theta().
Referenced by MakePlanes().
|
virtual |
Implements G4VSolid.
Definition at line 670 of file G4Trap.cc.
View newest version in sPHENIX GitHub at line 670 of file G4Trap.cc
References a, TrapSidePlane::a, kdfinder::abs(), ApproxSurfaceNormal(), b, TrapSidePlane::b, TrapSidePlane::c, c, TrapSidePlane::d, d, G4VSolid::DumpInfo(), dx, dy, dz, fDz, fPlanes, fTrapType, G4cout, G4endl, G4Exception(), G4VSolid::GetName(), halfCarTolerance, JustWarning, message(), mm, CLHEP::Hep3Vector::unit(), CLHEP::Hep3Vector::x(), CLHEP::Hep3Vector::y(), and CLHEP::Hep3Vector::z().
|
private |
Definition at line 272 of file G4Trap.hh.
View newest version in sPHENIX GitHub at line 272 of file G4Trap.hh
Referenced by CheckParameters(), CreatePolyhedron(), G4Trap(), MakePlanes(), operator=(), SetAllParameters(), and StreamInfo().
|
private |
Definition at line 272 of file G4Trap.hh.
View newest version in sPHENIX GitHub at line 272 of file G4Trap.hh
Referenced by CheckParameters(), CreatePolyhedron(), G4Trap(), MakePlanes(), operator=(), SetAllParameters(), and StreamInfo().
|
private |
Definition at line 273 of file G4Trap.hh.
View newest version in sPHENIX GitHub at line 273 of file G4Trap.hh
Referenced by CheckParameters(), CreatePolyhedron(), G4Trap(), MakePlanes(), operator=(), SetAllParameters(), and StreamInfo().
|
private |
Definition at line 273 of file G4Trap.hh.
View newest version in sPHENIX GitHub at line 273 of file G4Trap.hh
Referenced by CheckParameters(), CreatePolyhedron(), G4Trap(), MakePlanes(), operator=(), SetAllParameters(), and StreamInfo().
|
private |
Definition at line 272 of file G4Trap.hh.
View newest version in sPHENIX GitHub at line 272 of file G4Trap.hh
Referenced by CheckParameters(), CreatePolyhedron(), G4Trap(), MakePlanes(), operator=(), SetAllParameters(), and StreamInfo().
|
private |
Definition at line 273 of file G4Trap.hh.
View newest version in sPHENIX GitHub at line 273 of file G4Trap.hh
Referenced by CheckParameters(), CreatePolyhedron(), G4Trap(), MakePlanes(), operator=(), SetAllParameters(), and StreamInfo().
|
private |
Definition at line 271 of file G4Trap.hh.
View newest version in sPHENIX GitHub at line 271 of file G4Trap.hh
Referenced by ApproxSurfaceNormal(), CheckParameters(), CreatePolyhedron(), DistanceToIn(), DistanceToOut(), G4Trap(), GetVertices(), Inside(), MakePlanes(), operator=(), SetAllParameters(), StreamInfo(), and SurfaceNormal().
|
private |
Definition at line 274 of file G4Trap.hh.
View newest version in sPHENIX GitHub at line 274 of file G4Trap.hh
Referenced by ApproxSurfaceNormal(), DistanceToIn(), DistanceToOut(), G4Trap(), GetVertices(), Inside(), MakePlanes(), operator=(), and SurfaceNormal().
|
private |
Definition at line 272 of file G4Trap.hh.
View newest version in sPHENIX GitHub at line 272 of file G4Trap.hh
Referenced by CreatePolyhedron(), G4Trap(), MakePlanes(), operator=(), SetAllParameters(), and StreamInfo().
|
private |
Definition at line 273 of file G4Trap.hh.
View newest version in sPHENIX GitHub at line 273 of file G4Trap.hh
Referenced by CreatePolyhedron(), G4Trap(), MakePlanes(), operator=(), SetAllParameters(), and StreamInfo().
|
private |
Definition at line 275 of file G4Trap.hh.
View newest version in sPHENIX GitHub at line 275 of file G4Trap.hh
Referenced by DistanceToIn(), DistanceToOut(), G4Trap(), Inside(), MakePlanes(), operator=(), and SurfaceNormal().
|
private |
Definition at line 271 of file G4Trap.hh.
View newest version in sPHENIX GitHub at line 271 of file G4Trap.hh
Referenced by CreatePolyhedron(), G4Trap(), MakePlanes(), operator=(), SetAllParameters(), and StreamInfo().
|
private |
Definition at line 271 of file G4Trap.hh.
View newest version in sPHENIX GitHub at line 271 of file G4Trap.hh
Referenced by CreatePolyhedron(), G4Trap(), MakePlanes(), operator=(), SetAllParameters(), and StreamInfo().
|
private |
Definition at line 270 of file G4Trap.hh.
View newest version in sPHENIX GitHub at line 270 of file G4Trap.hh
Referenced by DistanceToIn(), DistanceToOut(), Inside(), operator=(), and SurfaceNormal().