165 size_t& ny,
size_t& nz )
const
169 ny = size_t( (copyNo/fNoVoxelX)%
fNoVoxelY );
194 message <<
"Voxels do not fully fill the container: "
199 <<
" Maximum difference is: " << toleranceForError;
200 G4Exception(
"G4PhantomParameterisation::CheckVoxelsFillContainer()",
204 else if( std::fabs(contX-
fNoVoxelX*fVoxelHalfX) >= toleranceForWarning
205 || std::fabs(contY-
fNoVoxelY*fVoxelHalfY) >= toleranceForWarning
206 || std::fabs(contZ-
fNoVoxelZ*fVoxelHalfZ) >= toleranceForWarning )
209 message <<
"Voxels do not fully fill the container: "
214 <<
" Maximum difference is: " << toleranceForWarning;
215 G4Exception(
"G4PhantomParameterisation::CheckVoxelsFillContainer()",
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 )
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()",
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()",