Message: Re: Meaning of G4Track::GetTouchable / GetOriginTouchable Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: Meaning of G4Track::GetTouchable / GetOriginTouchable 

Forum: Event and Track Management
Re: Question Meaning of G4Track::GetTouchable / GetOriginTouchable (Doris)
Date: 06 Feb, 2013
From: Gumplinger Peter <Gumplinger Peter>

Hello Doris,

> 1) Why did they difine both GetTouchable() and GetTouchableHandle()? To me, they are pointing to the same internal variable and look somewhat redundant.

You are asking a not so 'newbie' question. Sure, the returned signatures are different. As for the rational and the 'why' of this design, I don't have the answer.

> 2) What are the differences between GetTouchable(), GetNextTouchable(), and GetOriginTouchable()?

The G4Track object is 'transient' and the Touchables change during tracking. The 'current' one - the location of the PreStepPoint - is obtained with GetTouchable(). When the track reaches a volume boundary the Touchable of the next volume returns with GetNextTouchable(). All along, the original Touchable of the track's origin is returned by GetOriginTouchable().


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

1 Ok: Re: Meaning of G4Track::GetTouchable / GetOriginTouchable   (CuriousDoris - 06 Feb, 2013)
 Add Message Add Message
to: "Re: Meaning of G4Track::GetTouchable / GetOriginTouchable"

 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 ]