ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
#include <geant4/tree/geant4-10.6-release/source/geometry/solids/specific/include/G4GenericTrap.hh>
Protected Attributes | |
G4bool | fRebuildPolyhedron = false |
G4Polyhedron * | fpPolyhedron = nullptr |
Protected Attributes inherited from G4VSolid | |
G4double | kCarTolerance |
Private Types | |
enum | ESide { kUndef, kXY0, kXY1, kXY2, kXY3, kMZ, kPZ } |
Private Attributes | |
G4double | halfCarTolerance |
G4double | fDz |
std::vector< G4TwoVector > | fVertices |
G4bool | fIsTwisted = false |
G4double | fTwist [4] |
G4TessellatedSolid * | fTessellatedSolid = nullptr |
G4ThreeVector | fMinBBoxVector |
G4ThreeVector | fMaxBBoxVector |
G4int | fVisSubdivisions = 0 |
G4double | fSurfaceArea = 0.0 |
G4double | fCubicVolume = 0.0 |
Static Private Attributes | |
static const G4int | fgkNofVertices = 8 |
static const G4double | fgkTolerance = 1E-3 |
Additional Inherited Members | |
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 |
Definition at line 79 of file G4GenericTrap.hh.
View newest version in sPHENIX GitHub at line 79 of file G4GenericTrap.hh
|
private |
Definition at line 217 of file G4GenericTrap.hh.
View newest version in sPHENIX GitHub at line 217 of file G4GenericTrap.hh
G4GenericTrap::G4GenericTrap | ( | const G4String & | name, |
G4double | halfZ, | ||
const std::vector< G4TwoVector > & | vertices | ||
) |
Definition at line 65 of file G4GenericTrap.cc.
View newest version in sPHENIX GitHub at line 65 of file G4GenericTrap.cc
References CheckOrder(), ComputeBBox(), ComputeIsTwisted(), CreateTessellatedSolid(), FatalErrorInArgument, fgkNofVertices, fIsTwisted, fTessellatedSolid, fTwist, fVertices, G4endl, G4Exception(), halfCarTolerance, JustWarning, k, G4VSolid::kCarTolerance, BTOF::length, and message().
Referenced by Clone().
G4GenericTrap::~G4GenericTrap | ( | ) |
Definition at line 158 of file G4GenericTrap.cc.
View newest version in sPHENIX GitHub at line 158 of file G4GenericTrap.cc
References fTessellatedSolid.
G4GenericTrap::G4GenericTrap | ( | __void__ & | a | ) |
Definition at line 148 of file G4GenericTrap.cc.
View newest version in sPHENIX GitHub at line 148 of file G4GenericTrap.cc
G4GenericTrap::G4GenericTrap | ( | const G4GenericTrap & | rhs | ) |
Definition at line 165 of file G4GenericTrap.cc.
View newest version in sPHENIX GitHub at line 165 of file G4GenericTrap.cc
References CreateTessellatedSolid(), fIsTwisted, fTessellatedSolid, and fTwist.
|
virtual |
Reimplemented from G4VSolid.
Definition at line 1176 of file G4GenericTrap.cc.
View newest version in sPHENIX GitHub at line 1176 of file G4GenericTrap.cc
References G4VSolid::DumpInfo(), G4Exception(), GetMaximumBBox(), GetMinimumBBox(), G4VSolid::GetName(), JustWarning, message(), pMax, CLHEP::Hep3Vector::x(), CLHEP::Hep3Vector::y(), and CLHEP::Hep3Vector::z().
Referenced by CalculateExtent().
|
virtual |
Implements G4VSolid.
Definition at line 1200 of file G4GenericTrap.cc.
View newest version in sPHENIX GitHub at line 1200 of file G4GenericTrap.cc
References KF_timing::ax, G4BoundingEnvelope::BoundingBoxVsVoxelLimits(), BoundingLimits(), G4BoundingEnvelope::CalculateExtent(), dz, GetVertex(), GetZHalfLength(), k1, k2, pMax, CLHEP::Hep2Vector::x(), and CLHEP::Hep2Vector::y().
|
private |
Definition at line 1523 of file G4GenericTrap.cc.
View newest version in sPHENIX GitHub at line 1523 of file G4GenericTrap.cc
References FatalException, fgkTolerance, G4Exception(), G4VSolid::GetName(), IsSegCrossing(), IsSegCrossingZ(), JustWarning, and message().
Referenced by G4GenericTrap().
|
virtual |
Reimplemented from G4VSolid.
Definition at line 1266 of file G4GenericTrap.cc.
View newest version in sPHENIX GitHub at line 1266 of file G4GenericTrap.cc
References G4GenericTrap().
|
private |
Definition at line 1922 of file G4GenericTrap.cc.
View newest version in sPHENIX GitHub at line 1922 of file G4GenericTrap.cc
References fDz, fgkNofVertices, fMaxBBoxVector, fMinBBoxVector, fVertices, maxY, minY, x, and y.
Referenced by G4GenericTrap().
|
private |
Definition at line 1475 of file G4GenericTrap.cc.
View newest version in sPHENIX GitHub at line 1475 of file G4GenericTrap.cc
References fgkNofVertices, fgkTolerance, fVertices, G4endl, G4Exception(), G4VSolid::GetName(), JustWarning, G4VSolid::kCarTolerance, message(), pi, SetTwistAngle(), x, and y.
Referenced by G4GenericTrap().
|
virtual |
Reimplemented from G4VSolid.
Definition at line 2004 of file G4GenericTrap.cc.
View newest version in sPHENIX GitHub at line 2004 of file G4GenericTrap.cc
References G4PolyhedronArbitrary::AddFacet(), G4PolyhedronArbitrary::AddVertex(), G4TessellatedSolid::CreatePolyhedron(), Dx, Dy, fDz, fIsTwisted, fTessellatedSolid, fVertices, GetMaximumBBox(), GetMinimumBBox(), GetTwistAngle(), GetVisSubdivisions(), G4PolyhedronArbitrary::InvertFacets(), G4PolyhedronArbitrary::SetReferences(), Acts::UnitConstants::u, CLHEP::Hep2Vector::x(), CLHEP::Hep3Vector::x(), x, CLHEP::Hep2Vector::y(), CLHEP::Hep3Vector::y(), and y.
Referenced by GetPolyhedron().
|
private |
Definition at line 1861 of file G4GenericTrap.cc.
View newest version in sPHENIX GitHub at line 1861 of file G4GenericTrap.cc
References G4TessellatedSolid::AddFacet(), Acts::VectorHelpers::cross(), fDz, fgkNofVertices, fVertices, G4VSolid::GetName(), MakeDownFacet(), MakeSideFacet(), MakeUpFacet(), ReorderVertices(), G4TessellatedSolid::SetSolidClosed(), x, y, and CLHEP::Hep3Vector::z().
Referenced by G4GenericTrap(), and operator=().
|
virtual |
Implements G4VSolid.
Definition at line 1969 of file G4GenericTrap.cc.
View newest version in sPHENIX GitHub at line 1969 of file G4GenericTrap.cc
References G4VGraphicsScene::AddSolid(), G4TessellatedSolid::DescribeYourselfTo(), and fTessellatedSolid.
|
virtual |
Implements G4VSolid.
Definition at line 732 of file G4GenericTrap.cc.
View newest version in sPHENIX GitHub at line 732 of file G4GenericTrap.cc
References G4TessellatedSolid::DistanceToIn(), DistToPlane(), CLHEP::Hep3Vector::dot(), fDz, fTessellatedSolid, halfCarTolerance, Inside(), kInfinity, kOutside, n, pt, v, and CLHEP::Hep3Vector::z().
|
virtual |
Implements G4VSolid.
Definition at line 800 of file G4GenericTrap.cc.
View newest version in sPHENIX GitHub at line 800 of file G4GenericTrap.cc
References G4TessellatedSolid::DistanceToIn(), fDz, fTessellatedSolid, SafetyToFace(), and CLHEP::Hep3Vector::z().
|
virtual |
Implements G4VSolid.
Definition at line 904 of file G4GenericTrap.cc.
View newest version in sPHENIX GitHub at line 904 of file G4GenericTrap.cc
References a, b, c, d, G4TessellatedSolid::DistanceToOut(), DistToTriangle(), CLHEP::Hep3Vector::dot(), G4VSolid::DumpInfo(), dz2, fDz, fTessellatedSolid, fVertices, G4endl, G4Exception(), halfCarTolerance, InsidePolygone(), JustWarning, G4VSolid::kCarTolerance, kInfinity, kMZ, kOutside, kPZ, kUndef, kXY0, kXY1, kXY2, kXY3, message(), mm, NormalToPlane(), pt, v, CLHEP::Hep3Vector::x(), CLHEP::Hep3Vector::y(), and CLHEP::Hep3Vector::z().
|
virtual |
Implements G4VSolid.
Definition at line 1149 of file G4GenericTrap.cc.
View newest version in sPHENIX GitHub at line 1149 of file G4GenericTrap.cc
References G4TessellatedSolid::DistanceToOut(), fDz, fTessellatedSolid, SafetyToFace(), and CLHEP::Hep3Vector::z().
|
private |
Definition at line 574 of file G4GenericTrap.cc.
View newest version in sPHENIX GitHub at line 574 of file G4GenericTrap.cc
References a, b, c, d, CLHEP::Hep3Vector::dot(), dz2, fDz, fVertices, halfCarTolerance, Inside(), G4VSolid::kCarTolerance, kInfinity, kOutside, NormalToPlane(), CLHEP::Hep3Vector::x(), x1, x2, CLHEP::Hep3Vector::y(), y1, y2, and CLHEP::Hep3Vector::z().
Referenced by DistanceToIn().
|
private |
Definition at line 849 of file G4GenericTrap.cc.
View newest version in sPHENIX GitHub at line 849 of file G4GenericTrap.cc
References a, b, c, d, CLHEP::Hep3Vector::dot(), fDz, fVertices, halfCarTolerance, Inside(), G4VSolid::kCarTolerance, kInfinity, kSurface, NormalToPlane(), t, CLHEP::Hep3Vector::x(), CLHEP::Hep3Vector::y(), and CLHEP::Hep3Vector::z().
Referenced by DistanceToOut().
|
virtual |
Reimplemented from G4VSolid.
Definition at line 1418 of file G4GenericTrap.cc.
View newest version in sPHENIX GitHub at line 1418 of file G4GenericTrap.cc
References fCubicVolume, fDz, fIsTwisted, fVertices, G4VSolid::GetCubicVolume(), GetFaceCubicVolume(), x, and y.
|
virtual |
Implements G4VSolid.
Definition at line 1259 of file G4GenericTrap.cc.
View newest version in sPHENIX GitHub at line 1259 of file G4GenericTrap.cc
Referenced by StreamInfo().
|
virtual |
Reimplemented from G4VSolid.
Definition at line 1984 of file G4GenericTrap.cc.
View newest version in sPHENIX GitHub at line 1984 of file G4GenericTrap.cc
References fTessellatedSolid, G4TessellatedSolid::GetExtent(), GetMaximumBBox(), GetMinimumBBox(), CLHEP::Hep3Vector::x(), CLHEP::Hep3Vector::y(), and CLHEP::Hep3Vector::z().
|
private |
Definition at line 1463 of file G4GenericTrap.cc.
View newest version in sPHENIX GitHub at line 1463 of file G4GenericTrap.cc
References Acts::VectorHelpers::cross().
Referenced by GetCubicVolume().
|
private |
Definition at line 1452 of file G4GenericTrap.cc.
View newest version in sPHENIX GitHub at line 1452 of file G4GenericTrap.cc
References Acts::VectorHelpers::cross().
Referenced by GetPointOnSurface(), and GetSurfaceArea().
|
inlineprivate |
Referenced by BoundingLimits(), CreatePolyhedron(), and GetExtent().
|
inlineprivate |
Referenced by BoundingLimits(), CreatePolyhedron(), and GetExtent().
|
inline |
|
virtual |
Reimplemented from G4VSolid.
Definition at line 1296 of file G4GenericTrap.cc.
View newest version in sPHENIX GitHub at line 1296 of file G4GenericTrap.cc
References fDz, fTessellatedSolid, fVertices, G4UniformRand, GetFaceSurfaceArea(), G4TessellatedSolid::GetPointOnSurface(), Acts::UnitConstants::u, v, w, CLHEP::Hep2Vector::x(), x, CLHEP::Hep2Vector::y(), and y.
|
virtual |
Reimplemented from G4VSolid.
Definition at line 1943 of file G4GenericTrap.cc.
View newest version in sPHENIX GitHub at line 1943 of file G4GenericTrap.cc
References CreatePolyhedron(), fpPolyhedron, fRebuildPolyhedron, fTessellatedSolid, HepPolyhedron::GetNumberOfRotationSteps(), G4Polyhedron::GetNumberOfRotationStepsAtTimeOfCreation(), G4TessellatedSolid::GetPolyhedron(), and G4TemplateAutoLock< _Mutex_t >::unlock().
|
virtual |
Reimplemented from G4VSolid.
Definition at line 1384 of file G4GenericTrap.cc.
View newest version in sPHENIX GitHub at line 1384 of file G4GenericTrap.cc
References fDz, fIsTwisted, fSurfaceArea, fVertices, GetFaceSurfaceArea(), G4VSolid::GetSurfaceArea(), x, and y.
Referenced by CreatePolyhedron(), NormalToPlane(), and SurfaceNormal().
|
inline |
|
inline |
Referenced by PHG4GDMLWriteSolids::GenTrapWrite(), and G4GDMLWriteSolids::GenTrapWrite().
|
inline |
|
inline |
Referenced by CalculateExtent(), PHG4GDMLWriteSolids::GenTrapWrite(), and G4GDMLWriteSolids::GenTrapWrite().
|
virtual |
Implements G4VSolid.
Definition at line 318 of file G4GenericTrap.cc.
View newest version in sPHENIX GitHub at line 318 of file G4GenericTrap.cc
References fDz, fTessellatedSolid, fVertices, halfCarTolerance, G4TessellatedSolid::Inside(), InsidePolygone(), kInside, kOutside, kSurface, and CLHEP::Hep3Vector::z().
Referenced by DistanceToIn(), DistToPlane(), and DistToTriangle().
|
private |
Definition at line 216 of file G4GenericTrap.cc.
View newest version in sPHENIX GitHub at line 216 of file G4GenericTrap.cc
References Acts::VectorHelpers::cross(), halfCarTolerance, in, G4VSolid::kCarTolerance, kInside, kOutside, kSurface, test(), CLHEP::Hep3Vector::x(), x, CLHEP::Hep3Vector::y(), and y.
Referenced by DistanceToOut(), and Inside().
|
private |
Definition at line 1619 of file G4GenericTrap.cc.
View newest version in sPHENIX GitHub at line 1619 of file G4GenericTrap.cc
References a, c, fgkTolerance, CLHEP::Hep2Vector::x(), x, CLHEP::Hep2Vector::y(), and y.
Referenced by CheckOrder().
|
private |
Definition at line 1709 of file G4GenericTrap.cc.
View newest version in sPHENIX GitHub at line 1709 of file G4GenericTrap.cc
References CLHEP::Hep3Vector::cross(), Acts::VectorHelpers::cross(), CLHEP::Hep3Vector::dot(), fDz, G4VSolid::kCarTolerance, CLHEP::Hep3Vector::mag(), temp1, temp2, v1, v2, CLHEP::Hep2Vector::x(), CLHEP::Hep3Vector::x(), CLHEP::Hep2Vector::y(), CLHEP::Hep3Vector::y(), y, and CLHEP::Hep3Vector::z().
Referenced by CheckOrder().
|
inline |
|
private |
Definition at line 1759 of file G4GenericTrap.cc.
View newest version in sPHENIX GitHub at line 1759 of file G4GenericTrap.cc
References ABSOLUTE, Acts::VectorHelpers::cross(), FatalException, G4Exception(), G4VSolid::GetName(), message(), and CLHEP::Hep3Vector::z().
Referenced by CreateTessellatedSolid().
|
private |
Definition at line 1832 of file G4GenericTrap.cc.
View newest version in sPHENIX GitHub at line 1832 of file G4GenericTrap.cc
References ABSOLUTE.
Referenced by CreateTessellatedSolid().
|
private |
Definition at line 1795 of file G4GenericTrap.cc.
View newest version in sPHENIX GitHub at line 1795 of file G4GenericTrap.cc
References ABSOLUTE, Acts::VectorHelpers::cross(), FatalException, G4Exception(), G4VSolid::GetName(), message(), and CLHEP::Hep3Vector::z().
Referenced by CreateTessellatedSolid().
|
private |
Definition at line 489 of file G4GenericTrap.cc.
View newest version in sPHENIX GitHub at line 489 of file G4GenericTrap.cc
References CLHEP::Hep3Vector::cross(), Acts::VectorHelpers::cross(), fDz, fIsTwisted, fTessellatedSolid, fVertices, GetTwistAngle(), halfCarTolerance, G4VSolid::kCarTolerance, norm, proj, r1, r2, G4TessellatedSolid::SurfaceNormal(), Acts::UnitConstants::u, CLHEP::Hep3Vector::unit(), v, CLHEP::Hep2Vector::x(), x, CLHEP::Hep2Vector::y(), y, and CLHEP::Hep3Vector::z().
Referenced by DistanceToOut(), DistToPlane(), DistToTriangle(), and SafetyToFace().
G4GenericTrap & G4GenericTrap::operator= | ( | const G4GenericTrap & | rhs | ) |
Definition at line 183 of file G4GenericTrap.cc.
View newest version in sPHENIX GitHub at line 183 of file G4GenericTrap.cc
References CreateTessellatedSolid(), fCubicVolume, fDz, fIsTwisted, fMaxBBoxVector, fMinBBoxVector, fpPolyhedron, fRebuildPolyhedron, fSurfaceArea, fTessellatedSolid, fTwist, fVertices, fVisSubdivisions, halfCarTolerance, and G4VSolid::operator=().
|
private |
Definition at line 1604 of file G4GenericTrap.cc.
View newest version in sPHENIX GitHub at line 1604 of file G4GenericTrap.cc
Referenced by CreateTessellatedSolid().
|
private |
Definition at line 830 of file G4GenericTrap.cc.
View newest version in sPHENIX GitHub at line 830 of file G4GenericTrap.cc
References fDz, fVertices, norm, NormalToPlane(), x, and y.
Referenced by DistanceToIn(), and DistanceToOut().
|
virtual |
Implements G4VSolid.
Definition at line 1273 of file G4GenericTrap.cc.
View newest version in sPHENIX GitHub at line 1273 of file G4GenericTrap.cc
References fDz, fgkNofVertices, fVertices, G4endl, GetEntityType(), G4VSolid::GetName(), and mm.
|
virtual |
Implements G4VSolid.
Definition at line 354 of file G4GenericTrap.cc.
View newest version in sPHENIX GitHub at line 354 of file G4GenericTrap.cc
References CLHEP::Hep3Vector::cross(), Acts::VectorHelpers::cross(), fDz, fIsTwisted, fTessellatedSolid, fVertices, G4Exception(), GetTwistAngle(), halfCarTolerance, JustWarning, G4VSolid::kCarTolerance, proj, r1, r2, G4TessellatedSolid::SurfaceNormal(), CLHEP::Hep3Vector::unit(), x, y, and CLHEP::Hep3Vector::z().
|
private |
Definition at line 221 of file G4GenericTrap.hh.
View newest version in sPHENIX GitHub at line 221 of file G4GenericTrap.hh
Referenced by GetCubicVolume(), and operator=().
|
private |
Definition at line 208 of file G4GenericTrap.hh.
View newest version in sPHENIX GitHub at line 208 of file G4GenericTrap.hh
Referenced by ComputeBBox(), CreatePolyhedron(), CreateTessellatedSolid(), DistanceToIn(), DistanceToOut(), DistToPlane(), DistToTriangle(), GetCubicVolume(), GetPointOnSurface(), GetSurfaceArea(), Inside(), IsSegCrossingZ(), NormalToPlane(), operator=(), SafetyToFace(), StreamInfo(), and SurfaceNormal().
|
staticprivate |
Definition at line 201 of file G4GenericTrap.hh.
View newest version in sPHENIX GitHub at line 201 of file G4GenericTrap.hh
Referenced by ComputeBBox(), ComputeIsTwisted(), CreateTessellatedSolid(), G4GenericTrap(), and StreamInfo().
|
staticprivate |
Definition at line 202 of file G4GenericTrap.hh.
View newest version in sPHENIX GitHub at line 202 of file G4GenericTrap.hh
Referenced by CheckOrder(), ComputeIsTwisted(), and IsSegCrossing().
Definition at line 210 of file G4GenericTrap.hh.
View newest version in sPHENIX GitHub at line 210 of file G4GenericTrap.hh
Referenced by CreatePolyhedron(), G4GenericTrap(), GetCubicVolume(), GetSurfaceArea(), NormalToPlane(), operator=(), and SurfaceNormal().
|
private |
Definition at line 214 of file G4GenericTrap.hh.
View newest version in sPHENIX GitHub at line 214 of file G4GenericTrap.hh
Referenced by ComputeBBox(), and operator=().
|
private |
Definition at line 213 of file G4GenericTrap.hh.
View newest version in sPHENIX GitHub at line 213 of file G4GenericTrap.hh
Referenced by ComputeBBox(), and operator=().
|
mutableprotected |
Definition at line 195 of file G4GenericTrap.hh.
View newest version in sPHENIX GitHub at line 195 of file G4GenericTrap.hh
Referenced by GetPolyhedron(), and operator=().
Definition at line 194 of file G4GenericTrap.hh.
View newest version in sPHENIX GitHub at line 194 of file G4GenericTrap.hh
Referenced by GetPolyhedron(), and operator=().
|
private |
Definition at line 220 of file G4GenericTrap.hh.
View newest version in sPHENIX GitHub at line 220 of file G4GenericTrap.hh
Referenced by GetSurfaceArea(), and operator=().
|
private |
Definition at line 212 of file G4GenericTrap.hh.
View newest version in sPHENIX GitHub at line 212 of file G4GenericTrap.hh
Referenced by CreatePolyhedron(), DescribeYourselfTo(), DistanceToIn(), DistanceToOut(), G4GenericTrap(), GetExtent(), GetPointOnSurface(), GetPolyhedron(), Inside(), NormalToPlane(), operator=(), SurfaceNormal(), and ~G4GenericTrap().
|
private |
Definition at line 211 of file G4GenericTrap.hh.
View newest version in sPHENIX GitHub at line 211 of file G4GenericTrap.hh
Referenced by G4GenericTrap(), and operator=().
|
private |
Definition at line 209 of file G4GenericTrap.hh.
View newest version in sPHENIX GitHub at line 209 of file G4GenericTrap.hh
Referenced by ComputeBBox(), ComputeIsTwisted(), CreatePolyhedron(), CreateTessellatedSolid(), DistanceToOut(), DistToPlane(), DistToTriangle(), G4GenericTrap(), GetCubicVolume(), GetPointOnSurface(), GetSurfaceArea(), Inside(), NormalToPlane(), operator=(), SafetyToFace(), StreamInfo(), and SurfaceNormal().
|
private |
Definition at line 215 of file G4GenericTrap.hh.
View newest version in sPHENIX GitHub at line 215 of file G4GenericTrap.hh
Referenced by operator=().
|
private |
Definition at line 204 of file G4GenericTrap.hh.
View newest version in sPHENIX GitHub at line 204 of file G4GenericTrap.hh
Referenced by DistanceToIn(), DistanceToOut(), DistToPlane(), DistToTriangle(), G4GenericTrap(), Inside(), InsidePolygone(), NormalToPlane(), operator=(), and SurfaceNormal().