Message: Question About Mother Volume Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Question About Mother Volume 

Forum: Geometry
Date: 24 Sep, 2014
From: Leonardo Ghizoni <Leonardo Ghizoni>

Hello experts,

I'm building a space application simulation to calculate dose on a given solid.

First, I'm building a simple geometry to validate my simulation and then I'll create more complicated geometries.

This is a very basic question, but as I understand, if I have solid sphere and a target inside it, the target's mother volume is the sphere, and not the world volume, because the target is inside the sphere's material. But what if I have a spherical shell, and the target is inside, but not touching the shell's material?

This is what I'm doing:

// Sphere
    G4Sphere* Sphere = new G4Sphere("Sphere",rmin,rmax,startAngle,spanningAngle,startAngle,spanningAngle);
    G4LogicalVolume* logicSphere = new G4LogicalVolume(Sphere,Al,"Sphere");
    new G4PVPlacement(0,G4ThreeVector(),logicSphere,"Sphere",logicWorld,false,0);
    logicSphere->SetVisAttributes(G4Colour::Blue());

    // Target
    G4Sphere* Target = new G4Sphere("Sphere",0.*cm,rmin,startAngle,spanningAngle,startAngle,spanningAngle);
    G4LogicalVolume* logicTarget = new G4LogicalVolume(Target,Si,"Target");
    new G4PVPlacement(0,G4ThreeVector(),logicTarget,"Target",logicSphere,false,0);
    logicTarget->SetVisAttributes(G4Colour::Red());

My doubt appeared because when the Target is a daughter volume of the world and I start to put the spherical shell as invisible, I don't see the target. But I can see the target when I put the spherical shell as the mother volume.

Thank you.

Best Regards Leonardo

 Add Message Add Message
to: "Question About Mother Volume"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]