Message: Re: Daughter Physical Volume is entirely outside mother logical Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Daughter Physical Volume is entirely outside mother logical 

Forum: Geometry
Re: Question Daughter Physical Volume is entirely outside mother logical (Amanda Leung)
Date: 09 Feb, 2010
From: Marc Verderi <Marc Verderi>

Hello Amanda,

Please see below.

Amanda Leung a écrit :
> *** Discussion title: Geometry
> I am trying to create two box and put them right next to each other. (No
> gaps in between the two box.
> G4Box* box = new G4Box("outBox", 1, 13, 13); G4LogicalVolume* outLog =
> new G4LogicalVolume(box, Si, outLog, 0, 0, 0);
> G4Box* inBox = new G4Box(inBox", 1, 13, 13); G4LogicalVolume* inLog =
> new G4LogicalVolume(inBox, Si, inLog", 0, 0, 0);
> G4LogicalVolume* phys = new G4PVPlacement(0, G4ThreeVector(1,0,0),
> inLog, "Sensor",outLog,false,0);
> But it is giving an error saying "Daughter Physical Volume Sensor is
> entirely outside mother logical outLog".
Which is a "correct" error message, as you guessed. (One comment : are 
the above lines truly a snapshot of your code ? If so, please enter 
numerical values multiplied by their units : eg G4Box* box = new 
G4Box("outBox", 1*cm, 13*cm, 13*cm); This is the only way to garantee 
the correctness of the values you enter. Without specifying the units, 
you use the "internal" Geant4 units, that are not garanteed to stay the 
same, release, after release.)
> My question is, Can you put the daughter entirely outside the mother
> volume? If not, In this case, if I want to put both box right next to
> each other. I will have to create a third box, and place these two boxes
> inside it, so they become next to each other?
So, you can not (and must not) place the volume outside its mother, even 
partly (but surface sharing is allowed). This may result in 
non-predictible behaviour at tracking time. To put the boxes right next 
to each other, yes, you have to place them into a third volume. 
Depending on your needs, you can create a third box (or any other solid) 
in which you place the two boxes, or you can place these two boxes 
directly inside your world volume.

> -------------------------------------------------------------
> Visit this GEANT4 at message (to reply or unsubscribe) at: 

 Add Message Add Message
to: "Re: Daughter Physical Volume is entirely outside mother logical"

 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 ]