I am modeling 3 spheres inside a cuboidal world volume.
Geometry is as follows:
Cuboidal world volume with sides 4 cm x 4 cm x 8 cm.
Sphere with radius 4 cm positioned at (0, 0, 4. cm).
Two concentric spheres named as Source (radius = 4. mm) and Target (radius 2. cm). The center of source is dislocated by 4. mm from the center of Target volume The code for this part is a below
// Spherical shell for Target
sTarget = new G4Sphere(“sTarget”,
fLogicalTarget = new G4LogicalVolume(sTarget,
fTarget = new G4PVPlacement(nullptr,
G4ThreeVector(0., 0., -2.0*cm),
// Spherical shell for Source
sSource = new G4Sphere(“sSource”,
fLogicalSource = new G4LogicalVolume(sTumor,
fSource = new G4PVPlacement(nullptr,
G4ThreeVector(0., 0.4*cm, 0.),
I am also attaching the image from the viewer. Please find the attachment. Blue is the largest sphere. Green is the Target volume and red is the Source volume.
Now, my question is:
- Is this geometry fine if I want to calculate the dose deposited inside the Source and Target region separately?
- Since Source volume is not positioned at (0,0,0) and I am interested to uniformly sample the 1 MeV electron sources inside the source volume. How can I get it done with GeneralParticleGun? Currently I am using GPS to get this distribution. But I am interested to use GeneralParticleGun.