|Message: Re: Daughter Physical Volume is entirely outside mother logical||Not Logged In (login)|
Click on the Forum title, e.g. on the "Forums by Category" page, to read a sequence of postings to the Forum and its threads all in one page. If you are only interested in one thread or the thread following a specific posting, click the thread or the posting, which takes you to a smaller page, which contains only the part you are interested in and may be easier to navigate.
Messages are "chained" if there are only replies at the first level, i.e. 1/1.html, 1/1/1.html etc. In case of "chained" messages the message number is replaced by the icon and there is no indentation.
Inline: Display the subject line only or also the text of the posting(s); for the choice "All" the "Outline" choices are switched off.
|1||0||1||no text / full text of posting|
|2||1||All||text for level 1 only / text for All postings|
Outline: Choose the depth of the posting thread, successive toggle controls provide increasing detail.
|1||2||1||2 levels / 1 level (original posting)|
|2||3||2||3 levels / 2 levels|
|3||3||All||3 levels / all levels (all postings)|
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. Cheers, Marc > ------------------------------------------------------------- > Visit this GEANT4 at hypernews.slac.stanford.edu message (to reply or unsubscribe) at: > http://hypernews.slac.stanford.edu/HyperNews/geant4/get/geometry/1016.html >