Message: identifying physical volumes in a parallel world Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question identifying physical volumes in a parallel world 

Forum: Geometry
Date: 20 Jul, 2008
From: Tom Roberts <Tom Roberts>

In my UserSteppingAction() I can easily obtain pointers to the Pre- and Post-step G4VPhysicalVolume-s. These are obviously in the mass world.

How can I find the corresponding pointers for a specified parallel world?

Examples N05 and N07 show me how to setup the parallel world, as does the User's Guide for Application Developers. But none of them show me how to identify the current physical volumes in my UserSteppingAction(). It seems to me that some navigator must have this information, somewhere. No replicas (etc.) will be used in the parallel world, and each G4VPhysicalVolume will be placed exactly once into it.

Background: I want to force tracking to stop at each of several planes specified via coordinates; my UserSteppingAction() will detect this and perform the appropriate computations. These planes need not be parallel, and can transect multiple physical volumes in the mass world. Each coordinate plane has an active region (circle or rectangle), and those never intersect. I plan to implement this by placing physical volumes into a parallel world, such that the active region of each coordinate plane corresponds to one surface of a physical volume. Initially I'll just make the volumes 1 mm thick, and live with the fact that stepping will also stop at the unneeded surface; eventually I might try to implement a "solid" that has only one surface.

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

1 Ok: Re: identifying physical volumes in a parallel world   (Tom Roberts - 22 Jul, 2008)
 Add Message Add Message
to: "identifying physical volumes in a parallel world"

 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 ]