Message: Re: Absolute replica number Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: Absolute replica number 

Forum: Geometry
Re: Question Absolute replica number (Nicola Mori)
Re: None Re: Absolute replica number (John Allison)
Re: Feedback Re: Absolute replica number (Nicola Mori)
Re: None Re: Absolute replica number (John Allison)
Date: 02 Aug, 2013
From: Nicola Mori <Nicola Mori>

Yes, that would work. But since I'm building a sort of general G4 framework which in principle works with any geometry (that is provided as an external library and linked at runtime like a plugin) I have to make minimal assumptions about how the geometry is written. Assuming that my end users will all be so diligent to provide a copy number for the G4PVPlacements containing a G4PVReplica is something I would like to avoid.

To this end, I've been able to uniquely identify the G4PVReplica by looking at its "absolute name", which I define as the concatenation of all the volume names in the touchable history. Keeping a log of these absolute names allow me to assign a number id to each of them and use it to compute the absolute replica number. It's a sort of bad hack and I'm still not 100% sure it will always work as desired, but it only requires the end user to provide different names for different volumes which is an easy-to-understand requirement.

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

1 None: Re: Absolute replica number   (John Allison - 02 Aug, 2013)
(_ Feedback: Re: Absolute replica number   (Nicola Mori - 02 Aug, 2013)
(_ None: Re: Absolute replica number   (John Allison - 02 Aug, 2013)
(_ Agree: Re: Absolute replica number   (Nicola Mori - 02 Aug, 2013)
 Add Message Add Message
to: "Re: Absolute replica number"

 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 ]