Message: Re: Can parallel-world steps be accessed from mass-world step or process? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Can parallel-world steps be accessed from mass-world step or process? 

Forum: Geometry
Re: Question could sensitive detector be assigned without material feature? (Julien Zhu)
Re: None Re: could sensitive detector be assigned without material feature? (Makoto Asai)
Re: Question Can parallel-world steps be accessed from mass-world step or process? (Michael H. Kelsey)
Date: 08 Mar, 2017
From: Makoto Asai <Makoto Asai>

Hi Mike,

So-called "Hyper-step" might do it.
http://www-geant4.kek.jp/lxr/source/processes/scoring/include/G4ParallelWorldProcess.hh#L173
This static method returns a thread-local G4Step object that contains two G4StepPoing objects that potentially belong to different worlds. If a step is limited by a boundary of world-A, post-step-point of this hyper-step is identical to the post-step-point of G4Step of world-A. You can also get the Navigation ID (index of the world, mass world is zero) that limits the step by this static method.
http://www-geant4.kek.jp/lxr/source/processes/scoring/include/G4ParallelWorldProcess.hh#L173
Please note that these methods work only for PostStepDoIt. You may want to consult to G4OpBoundaryProcess to see how optical boundary process handles a volume surface that is made of two different worlds.
http://www-geant4.kek.jp/lxr/source/processes/optical/src/G4OpBoundaryProcess.cc#L181

Hope this helps,
Makoto

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

1 Ok: Re: Can parallel-world steps be accessed from mass-world step or process?   (Michael H. Kelsey - 09 Mar, 2017)
 Add Message Add Message
to: "Re: Can parallel-world steps be accessed from mass-world step or process?"

 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 ]