Message: G4Region Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question G4Region 

Forum: Geometry
Date: 03 Sep, 2012
From: Michael Douglass <Michael Douglass>

Hi,

I was wondering if it is possible to add a root logical volume to the Default world region.

In my geant simulation I have the world volume. The world volume contains a box. This box contains a daughter volume which is also a box. When I create a region for the outer box it includes the inner box as part of that region. I do not want the inner box to be part of my new region. I would like it to be part of the default world region.

Is there a way to access the default world region and add the inner water box as part of that region?

I have tried

G4Region* deafultRegion = logicWorld->GetRegion();

deafultRegion->AddRootLogicalVolume(logicInnerBox)

logicWorld->GetRegion() returned a value of 0 which resulted in a segmentation fault when the second line got executed.

Any suggestions would be greatly appreciated.

Thank you

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: G4Region   (Asai, Makoto - 03 Sep, 2012)
(_ More: Re: G4Region   (Michael Douglass - 03 Sep, 2012)
(_ None: Re: G4Region   (Asai, Makoto - 03 Sep, 2012)
 Add Message Add Message
to: "G4Region"

 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 ]