|Message: Re: How does a step point see a replica?||Not Logged In (login)|
Click on the Forum title, e.g. on the "Forums by Category" page, to read a sequence of postings to the Forum and its threads all in one page. If you are only interested in one thread or the thread following a specific posting, click the thread or the posting, which takes you to a smaller page, which contains only the part you are interested in and may be easier to navigate.
Messages are "chained" if there are only replies at the first level, i.e. 1/1.html, 1/1/1.html etc. In case of "chained" messages the message number is replaced by the icon and there is no indentation.
Inline: Display the subject line only or also the text of the posting(s); for the choice "All" the "Outline" choices are switched off.
|1||0||1||no text / full text of posting|
|2||1||All||text for level 1 only / text for All postings|
Outline: Choose the depth of the posting thread, successive toggle controls provide increasing detail.
|1||2||1||2 levels / 1 level (original posting)|
|2||3||2||3 levels / 2 levels|
|3||3||All||3 levels / all levels (all postings)|
On Jul 3, 2014, at 6:03 PM, William Donahue <firstname.lastname@example.org> wrote: > I am working on a code that uses a stepping action to check if a hit should be stored in my detector. my detector is represented as a replica > inside my targetVolume > > If i ask the StepPoint for the physical volume pointer does it return the targetVolume pointer or a pointer to a particular replica? A replica slices its mother (logical/physical) volume fully - there is no part left over which belongs to the mother volume. So you should see a pointer to the (single) Replica volume. You need to use the ReplicaNumber to recognise which one of them it represents. ( The same 'thing' is also called Copy Number in case of other types of volumes. In case you see this term, in the case of Replicas read ReplicaNumber. ) I suggest to ask the TouchableHistory for the ReplicaNumber using its method. This method is guaranteed to work now, and is more correct in case you do it at a different point of the simulation - e.g. if you were to store the Touchable Handle and extract the information later. It also has the benefit of being more future proof in case of improvements, corrections etc. ( The alternative is to get the physical volume - which is a Replica - and ask that for its CopyNumber / Replica Number. This is more fragile. ) John
|Inline Depth:||Outline Depth:||Add message:|