|Message: Re: G4AssemblyVolumes with G4Regions||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)|
Hi Ben, G4AssemblyVolume is actually not intended to act as a logical-volume, but is rather a drop-in set of daughters to an existing mother logical-volume. In order to define a region, the only possibility is to apply it to the mother logical volume containing the assembly, or alternatively, define a logical-volume envelope for the assembly, or loop over its constituent volumes... We may consider adding a facility to do this from G4AssemblyVolume as you suggest, but it cannot be defined as a RootLogicalVolume. Cheers, Gabriele -------------- On Thu, 22 Oct 2015 10:25:47 GMT, Ben Krikler wrote: > It seems that there is no easy way to add a G4Region to a > G4AssemblyVolume. This class seems to be intended to act in the same was > as G4LogicalVolume during the geometry building process but not exist or > define any physical boundary during the tracking stage. > > Whilst adding a G4LogicalVolume to a G4Region is simple, to add all > sub-volumes that make up a G4AssemblyVolume to a region I'm either > required to loop over all the added logical volumes after they're placed > (I think that would work) or else each volume needs to add itself to the > region. > > Is there a better, more correct way to do this? If not, could I suggest > a feature request that the G4AssemblyVolume class be given similar > status as G4LogicalVolume with respect to G4Region? Namely, could we add > a SetRegion method to G4AssemblyVolume and could G4Region receive a > method equivalent to AddRootLogicalVolume (AddRootAssemblyVolume for > example)? > > Thanks in advance, > > Ben
|Inline Depth:||Outline Depth:||Add message:|