Message: Re: Question about getcopyNo() and getcopyNumber() Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

More Re: Question about getcopyNo() and getcopyNumber() 

Forum: Event and Track Management
Re: Question Question about getcopyNo() and getcopyNumber() (Xiaosong Yan)
Re: More Re: Question about getcopyNo() and getcopyNumber() (Gabriele Cosmo)
Re: Question Re: Question about getcopyNo() and getcopyNumber() (Xiaosong Yan)
Date: 02 Dec, 2014
From: Gabriele Cosmo <Gabriele Cosmo>

Hi Xiaosong,

that should return you the copy-number of the mother volume at the current level.
As that call goes through the touchable, it should correspond to:
  theTouchable->GetReplicaNumber(1).
Remember that, apart for replica and parameterised volumes where copy-numbers
are generated by Geant4, for placements it is your responsibility to assign the
copy-numbers (Geant4 does not make use of them internally in any way) and to
interpret them in hierarchies of volumes which are placed multiple times!

Cheers, Gabriele

------------
On Sat, 29 Nov 2014 07:37:43 GMT, Xiaosong Yan wrote:
> Hi, Gabriele:
>     I forgot asking another question. I wrote the following:
>        theTouchable->GetVolume(1)->GetCopyNo();
>     and I got some numbers. I want to know what these obtained numbers mean?
> Thank you.
> 
> Xiaosong Yan.

 Add Message Add Message
to: "Re: Question about getcopyNo() and getcopyNumber()"

 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 ]