56 std::vector<G4Material*>& mat):
58 fdX(voxelSize.x()),fdY(voxelSize.y()),fdZ(voxelSize.z()),
67 for (
G4int iz = 0; iz < fNz; iz++){
68 zp = (-fNz+1+2*iz)*fdZ;
87 if(parentTouch==0)
return fMat[0];
97 if ( ix%2 == 0 && iy%2 == 0 && iz%2 == 0 ) mat = fMat[0];
void SetZHalfLength(G4double dz)
CLHEP::Hep3Vector G4ThreeVector
void ComputeTransformation(const G4int no, G4VPhysicalVolume *currentPV) const
G4Material * GetMaterial(G4int idx) const
RE02NestedPhantomParameterisation(const G4ThreeVector &voxelSize, G4int nz, std::vector< G4Material * > &mat)
G4Material * ComputeMaterial(G4VPhysicalVolume *currentVol, const G4int repNo, const G4VTouchable *parentTouch=0)
void ComputeDimensions(G4Box &, const G4int, const G4VPhysicalVolume *) const
std::vector< G4double > fpZ
Definition of the RE02NestedPhantomParameterisation class.
void SetTranslation(const G4ThreeVector &v)
G4int GetNumberOfMaterials() const
virtual G4int GetReplicaNumber(G4int depth=0) const
void SetYHalfLength(G4double dy)
void SetXHalfLength(G4double dx)
std::vector< G4Material * > fMat
~RE02NestedPhantomParameterisation()