Message: Re: could sensitive detector be assigned without material feature? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: could sensitive detector be assigned without material feature? 

Forum: Geometry
Re: Question could sensitive detector be assigned without material feature? (Julien Zhu)
Date: 18 Aug, 2015
From: Makoto Asai <Makoto Asai>

Hello,

I don't know your exact use-case, but you may want to define a parallel world and set a sensitive detector to a volume in this parallel world. Please refer to /examples/extended/runAndEvent/RE06 for the way to define a parallel world and set SD in it.

Please note that the G4Step you get in SD in a parallel world is for the parallel world and thus it has geometry information of the parallel world. To get the G4Step of tracking world for the material, you need the following.

  const G4Step* realWorldStep
   = parallelWorldStep -> GetTrack() -> GetStep();

Hope this helps,
Makoto

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

1 Question: Can parallel-world steps be accessed from mass-world step or process?   (Michael H. Kelsey - 08 Mar, 2017)
(_ None: Re: Can parallel-world steps be accessed from mass-world step or process?   (Makoto Asai - 08 Mar, 2017)
(_ 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: could sensitive detector be assigned without material feature&#65311;"

 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 ]