|
Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
|
G4GeomTestVolume allows to check for inconsistencies in the geometric boundaries of a physical volume and the boundaries of all its immediate daughters. More...
#include <G4GeomTestVolume.hh>
Public Member Functions | |
| G4GeomTestVolume (G4VPhysicalVolume *theTarget, G4double theTolerance=0.0, G4int numberOfPoints=10000, G4bool theVerbosity=true) | |
| ~G4GeomTestVolume () | |
| G4double | GetTolerance () const |
| void | SetTolerance (G4double tolerance) |
| G4int | GetResolution () const |
| void | SetResolution (G4int points) |
| G4bool | GetVerbosity () const |
| void | SetVerbosity (G4bool verbosity) |
| G4int | GetErrorsThreshold () const |
| void | SetErrorsThreshold (G4int max) |
| void | TestOverlapInTree () const |
| void | TestRecursiveOverlap (G4int sLevel=0, G4int depth=-1) |
G4GeomTestVolume allows to check for inconsistencies in the geometric boundaries of a physical volume and the boundaries of all its immediate daughters.
Definition at line 49 of file G4GeomTestVolume.hh.
| G4GeomTestVolume::G4GeomTestVolume | ( | G4VPhysicalVolume * | theTarget, |
| G4double | theTolerance = 0.0, | ||
| G4int | numberOfPoints = 10000, | ||
| G4bool | theVerbosity = true ) |
Constructor and Destructor.
Definition at line 43 of file G4GeomTestVolume.cc.
Referenced by TestRecursiveOverlap().
| G4GeomTestVolume::~G4GeomTestVolume | ( | ) |
Definition at line 54 of file G4GeomTestVolume.cc.
| G4int G4GeomTestVolume::GetErrorsThreshold | ( | ) | const |
Get/Set maximum number of errors to report (default set to 1).
Definition at line 107 of file G4GeomTestVolume.cc.
| G4int G4GeomTestVolume::GetResolution | ( | ) | const |
Gets/Sets number of points to check (default set to 10000).
Definition at line 75 of file G4GeomTestVolume.cc.
| G4double G4GeomTestVolume::GetTolerance | ( | ) | const |
Gets/Sets error tolerance (default set to 0*mm).
Definition at line 59 of file G4GeomTestVolume.cc.
| G4bool G4GeomTestVolume::GetVerbosity | ( | ) | const |
Gets/Sets verbosity mode (default set to true).
Definition at line 91 of file G4GeomTestVolume.cc.
| void G4GeomTestVolume::SetErrorsThreshold | ( | G4int | max | ) |
Definition at line 115 of file G4GeomTestVolume.cc.
Referenced by TestRecursiveOverlap().
| void G4GeomTestVolume::SetResolution | ( | G4int | points | ) |
Definition at line 83 of file G4GeomTestVolume.cc.
| void G4GeomTestVolume::SetTolerance | ( | G4double | tolerance | ) |
Definition at line 67 of file G4GeomTestVolume.cc.
| void G4GeomTestVolume::SetVerbosity | ( | G4bool | verbosity | ) |
Definition at line 99 of file G4GeomTestVolume.cc.
| void G4GeomTestVolume::TestOverlapInTree | ( | ) | const |
Checks for overlaps in the volume tree without duplication in identical logical volumes.
Definition at line 123 of file G4GeomTestVolume.cc.
Activates overlaps check, propagating recursively to the daughters, with possibility of specifying the initial level in the volume tree and the depth (default is the whole tree).
Definition at line 174 of file G4GeomTestVolume.cc.
Referenced by TestRecursiveOverlap().