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

Question Absolute replica number 

Forum: Geometry
Date: 01 Aug, 2013
From: Nicola Mori <Nicola Mori>

Hello, I would need to compute the absolute replica number of the touchable in which my currently tracked particle is (inside a G4VSensitiveDetector::ProcessHits implementation). For example, suppose that I have a G4PVReplica describing 10 replicated volumes; its logical mother is then placed as a physical in N different locations, with N possibly varying in different geometry versions. With the touchable history I can get the replica number from 0 to 9, but how can I know how many physical mothers are there at runtime? I don't really care about their exact order, so for me it is sufficient to know that my touchable is the i-th replica of the j-th G4PVReplica, so that I can compute the "absolute replica number" as i+j*10. I tried browsing the G4PhysicalVolumeStore but it seems that only one G4PVReplica is there (as far as I understand, the store contains N copies of the physical mother but only one replicated volume). I could browse the mothers to solve this specific case, but I would need a more general and robust solution to possibly account for "more nested" cases. Is it feasible? Can anyone give me some hint? Thanks.

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 - 01 Aug, 2013)
(_ Feedback: Re: Absolute replica number   (Nicola Mori - 01 Aug, 2013)
(_ None: Re: Absolute replica number   (John Allison - 01 Aug, 2013)
(_ Feedback: Re: Absolute replica number   (Nicola Mori - 02 Aug, 2013)
(_ 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: "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 ]