94 CheckCopyNo( copyNo );
100 ComputeVoxelIndices( copyNo, nx, ny, nz );
121 CheckCopyNo( copyNo );
132 CheckCopyNo( copyNo );
164void G4PhantomParameterisation::
165ComputeVoxelIndices(
const G4int copyNo, std::size_t& nx,
166 std::size_t& ny, std::size_t& nz )
const
168 CheckCopyNo( copyNo );
194 std::ostringstream message;
195 message <<
"Voxels do not fully fill the container: "
200 <<
" Maximum difference is: " << toleranceForError;
201 G4Exception(
"G4PhantomParameterisation::CheckVoxelsFillContainer()",
209 std::ostringstream message;
210 message <<
"Voxels do not fully fill the container: "
215 <<
" Maximum difference is: " << toleranceForWarning;
216 G4Exception(
"G4PhantomParameterisation::CheckVoxelsFillContainer()",
235 std::ostringstream message;
236 message <<
"Point outside voxels!" <<
G4endl
237 <<
" localPoint - " << localPoint
238 <<
" - is outside container solid: "
240 <<
"DIFFERENCE WITH PHANTOM WALLS X: "
244 G4Exception(
"G4PhantomParameterisation::GetReplicaNo()",
"GeomNav0003",
279 if( localDir.
x() < 0 )
296 if( localDir.
y() < 0 )
313 if( localDir.
z() < 0 )
369 std::ostringstream message;
370 message <<
"Corrected the copy number! It was negative or too big" <<
G4endl
371 <<
" LocalPoint: " << localPoint <<
G4endl
372 <<
" LocalDir: " << localDir <<
G4endl
375 <<
" LocalPoint - wall: "
379 G4Exception(
"G4PhantomParameterisation::GetReplicaNo()",
391void G4PhantomParameterisation::CheckCopyNo(
const G4long copyNo )
const
395 std::ostringstream message;
396 message <<
"Copy number is negative or too big!" <<
G4endl
397 <<
" Copy number: " << copyNo <<
G4endl
398 <<
" Total number of voxels: " <<
fNoVoxels;
399 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)
G4VSolid * ComputeSolid(const G4int, G4VPhysicalVolume *) override
void CheckVoxelsFillContainer(G4double contX, G4double contY, G4double contZ) const
G4Material * ComputeMaterial(const G4int repNo, G4VPhysicalVolume *currentVol, const G4VTouchable *parentTouch=nullptr) override
G4Material * GetMaterial(std::size_t nx, std::size_t ny, std::size_t nz) const
std::size_t GetMaterialIndex(std::size_t nx, std::size_t ny, std::size_t nz) const
G4ThreeVector GetTranslation(const G4int copyNo) const
void ComputeTransformation(const G4int, G4VPhysicalVolume *) const override
std::size_t * fMaterialIndices
std::vector< G4Material * > fMaterials
~G4PhantomParameterisation() override
G4PhantomParameterisation()
G4VSolid * fContainerSolid
G4LogicalVolume * GetLogicalVolume() const
void SetTranslation(const G4ThreeVector &v)
virtual EInside Inside(const G4ThreeVector &p) const =0