|Message: Re: G4Region||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)|
OK. First of all, please note that the default region is set to the world logical volume after your detector construction returns the world physical volume. Thus if you do > G4Region* deafultRegion = logicWorld->GetRegion(); in your detector construction, the world logical volume does not yet have the valid pointer. Instead, there is a practical solution, though it is not elegant. That is, the default region object is instantiated by G4RunManagerKernel by its constructor and registered to G4RegionStore by its unique name. Thus G4Region* deafultRegion = G4RegionStore::GetInstance() ->GetRegion("DefaultRegionForTheWorld"); should give you the valid pointer of the default region. Makoto On 9/3/12 10:19 PM, "Michael Douglass" <email@example.com> wrote: > >*** Discussion title: Geometry > >Hi Makoto, > >Thank you for your suggestion but I don't think that will work for my >current application. > >The reason I am trying to set up this region configuration is so I can >use the physics list from the Microdosimetry example. This physics list >enables physics processes to be allocated by region. > >I am using the DNA physics list for the water volumes and would like the >livermore physics processes to work in the inner box which is made of >gold. Since the DNA physics list does not support any material other >than water, I need the livermore physics list to function in the inner >gold region. > >The Microdosimetery physics list uses the livermore physics list in >"default region for the world" and DNA physics in the target region. I >therefore need the inner gold box to be included in the >"defaultRegionForTheWorld" and not be included as a daughter of the >outer water box region or any other user defined region. > >So what I really need is a way to get a pointer to the "Default Region >for the World" (as it appears in the geant4 verbose output) region so I >can add the inner water box root logical volume. > >Is this possible? > >Michael > >On Tue, 04 Sep 2012 04:58:55 GMT, Asai, Makoto wrote: > >> Hi, >> >> You may define yet another region for your inner box. >> If you do *not* specify any property to this inner region, >> it inherits by definition all the properties from the >> default region. >> >> Makoto >> > >------------------------------------------------------------- >Visit this GEANT4 at hypernews.slac.stanford.edu message (to reply or >unsubscribe) at: >http://hypernews.slac.stanford.edu/HyperNews/geant4/get/geometry/1220/1/1. >html [ MIME part of type application/ms-tnef stripped ]