95 CheckCopyNo( copyNo );
101 ComputeVoxelIndices( copyNo, nx, ny, nz );
122 CheckCopyNo( copyNo );
133 CheckCopyNo( copyNo );
165void G4PhantomParameterisation::
166ComputeVoxelIndices(
const G4int copyNo, std::size_t& nx,
167 std::size_t& ny, std::size_t& nz )
const
169 CheckCopyNo( copyNo );
195 std::ostringstream message;
196 message <<
"Voxels do not fully fill the container: "
201 <<
" Maximum difference is: " << toleranceForError;
202 G4Exception(
"G4PhantomParameterisation::CheckVoxelsFillContainer()",
210 std::ostringstream message;
211 message <<
"Voxels do not fully fill the container: "
216 <<
" Maximum difference is: " << toleranceForWarning;
217 G4Exception(
"G4PhantomParameterisation::CheckVoxelsFillContainer()",
236 std::ostringstream message;
237 message <<
"Point outside voxels!" <<
G4endl
238 <<
" localPoint - " << localPoint
239 <<
" - is outside container solid: "
241 <<
"DIFFERENCE WITH PHANTOM WALLS X: "
245 G4Exception(
"G4PhantomParameterisation::GetReplicaNo()",
"GeomNav0003",
280 if( localDir.
x() < 0 )
297 if( localDir.
y() < 0 )
314 if( localDir.
z() < 0 )
370 std::ostringstream message;
371 message <<
"Corrected the copy number! It was negative or too big" <<
G4endl
372 <<
" LocalPoint: " << localPoint <<
G4endl
373 <<
" LocalDir: " << localDir <<
G4endl
376 <<
" LocalPoint - wall: "
380 G4Exception(
"G4PhantomParameterisation::GetReplicaNo()",
392void G4PhantomParameterisation::CheckCopyNo(
const G4long copyNo )
const
396 std::ostringstream message;
397 message <<
"Copy number is negative or too big!" <<
G4endl
398 <<
" Copy number: " << copyNo <<
G4endl
399 <<
" Total number of voxels: " <<
fNoVoxels;
400 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
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(std::size_t nx, std::size_t ny, std::size_t nz) const
virtual G4VSolid * ComputeSolid(const G4int, G4VPhysicalVolume *)
std::size_t GetMaterialIndex(std::size_t nx, std::size_t ny, std::size_t nz) const
G4ThreeVector GetTranslation(const G4int copyNo) const
std::size_t * fMaterialIndices
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