Message: Re: G4AssemblyVolumes with G4Regions Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

More Re: G4AssemblyVolumes with G4Regions 

Forum: Geometry
Re: Question G4AssemblyVolumes with G4Regions (Ben Krikler)
Date: 23 Oct, 2015
From: Gabriele Cosmo <Gabriele Cosmo>

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:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: G4AssemblyVolumes with G4Regions   (Ben Krikler - 23 Oct, 2015)
 Add Message Add Message
to: "Re: G4AssemblyVolumes with G4Regions"

 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 ]