|
Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
|
G4EnclosingCylinder is a utility class defining an envelope for quickly deciding if a point is clearly outside a polyhedra or polycone or deciding if a trajectory is clearly going to miss those shapes. More...
#include <G4EnclosingCylinder.hh>
Public Member Functions | |
| G4EnclosingCylinder (const G4ReduciblePolygon *rz, G4bool phiIsOpen, G4double startPhi, G4double totalPhi) | |
| ~G4EnclosingCylinder ()=default | |
| G4bool | MustBeOutside (const G4ThreeVector &p) const |
| G4bool | ShouldMiss (const G4ThreeVector &p, const G4ThreeVector &v) const |
| G4EnclosingCylinder (__void__ &) | |
G4EnclosingCylinder is a utility class defining an envelope for quickly deciding if a point is clearly outside a polyhedra or polycone or deciding if a trajectory is clearly going to miss those shapes.
Definition at line 51 of file G4EnclosingCylinder.hh.
| G4EnclosingCylinder::G4EnclosingCylinder | ( | const G4ReduciblePolygon * | rz, |
| G4bool | phiIsOpen, | ||
| G4double | startPhi, | ||
| G4double | totalPhi ) |
Constructs the envelope, given its parameters.
| [in] | rz | Pointer to the polygon structure. |
| [in] | phiIsOpen | Boolean flag to indicate if it is a section in Phi. |
| [in] | startPhi | Starting Phi angle. |
| [in] | totalPhi | Total Phi angle of the section. |
Definition at line 39 of file G4EnclosingCylinder.cc.
|
default |
Default Destructor.
| G4EnclosingCylinder::G4EnclosingCylinder | ( | __void__ & | ) |
Fake default constructor for usage restricted to direct object persistency for clients requiring preallocation of memory for persistifiable objects.
Definition at line 83 of file G4EnclosingCylinder.cc.
| G4bool G4EnclosingCylinder::MustBeOutside | ( | const G4ThreeVector & | p | ) | const |
Decides very rapidly if the point 'p' is outside the cylinder.
Definition at line 95 of file G4EnclosingCylinder.cc.
Referenced by ShouldMiss().
| G4bool G4EnclosingCylinder::ShouldMiss | ( | const G4ThreeVector & | p, |
| const G4ThreeVector & | v ) const |
Decides very rapidly if the trajectory is going to miss the cylinder.
Definition at line 124 of file G4EnclosingCylinder.cc.