95 CheckCopyNo( copyNo );
101 ComputeVoxelIndices( copyNo, nx, ny, nz );
122 CheckCopyNo( copyNo );
133 CheckCopyNo( copyNo );
163void G4PhantomParameterisation::
164ComputeVoxelIndices(
const G4int copyNo,
size_t& nx,
165 size_t& ny,
size_t& nz )
const
167 CheckCopyNo( copyNo );
193 std::ostringstream message;
194 message <<
"Voxels do not fully fill the container: "
199 <<
" Maximum difference is: " << toleranceForError;
200 G4Exception(
"G4PhantomParameterisation::CheckVoxelsFillContainer()",
208 std::ostringstream message;
209 message <<
"Voxels do not fully fill the container: "
214 <<
" Maximum difference is: " << toleranceForWarning;
215 G4Exception(
"G4PhantomParameterisation::CheckVoxelsFillContainer()",
230 std::ostringstream message;
231 message <<
"Point outside voxels!" <<
G4endl
232 <<
" localPoint - " << localPoint
233 <<
" - is outside container solid: "
235 <<
"DIFFERENCE WITH PHANTOM WALLS X: "
239 G4Exception(
"G4PhantomParameterisation::GetReplicaNo()",
"GeomNav0003",
273 if( localDir.
x() < 0 )
290 if( localDir.
y() < 0 )
307 if( localDir.
z() < 0 )
360 std::ostringstream message;
361 message <<
"Corrected the copy number! It was negative or too big" <<
G4endl
362 <<
" LocalPoint: " << localPoint <<
G4endl
363 <<
" LocalDir: " << localDir <<
G4endl
366 <<
" LocalPoint - wall: "
370 G4Exception(
"G4PhantomParameterisation::GetReplicaNo()",
380void G4PhantomParameterisation::CheckCopyNo(
const G4int copyNo )
const
384 std::ostringstream message;
385 message <<
"Copy number is negative or too big!" <<
G4endl
386 <<
" Copy number: " << copyNo <<
G4endl
387 <<
" Total number of voxels: " <<
fNoVoxel;
388 G4Exception(
"G4PhantomParameterisation::CheckCopyNo()",
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
G4double GetSurfaceTolerance() const
static G4GeometryTolerance * GetInstance()
G4VSolid * GetSolid() const
size_t * fMaterialIndices
virtual G4int GetReplicaNo(const G4ThreeVector &localPoint, const G4ThreeVector &localDir)
void BuildContainerSolid(G4VPhysicalVolume *pPhysicalVol)
void CheckVoxelsFillContainer(G4double contX, G4double contY, G4double contZ) const
~G4PhantomParameterisation()
virtual G4Material * ComputeMaterial(const G4int repNo, G4VPhysicalVolume *currentVol, const G4VTouchable *parentTouch=nullptr)
G4Material * GetMaterial(size_t nx, size_t ny, size_t nz) const
virtual G4VSolid * ComputeSolid(const G4int, G4VPhysicalVolume *)
G4ThreeVector GetTranslation(const G4int copyNo) const
size_t GetMaterialIndex(size_t nx, size_t ny, size_t nz) const
virtual void ComputeTransformation(const G4int, G4VPhysicalVolume *) const
std::vector< G4Material * > fMaterials
G4PhantomParameterisation()
G4VSolid * fContainerSolid
G4LogicalVolume * GetLogicalVolume() const
void SetTranslation(const G4ThreeVector &v)
virtual EInside Inside(const G4ThreeVector &p) const =0