Message: Re: G4Track::GetVolume() in StackingAction Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Warning Re: G4Track::GetVolume() in StackingAction 

Keywords: GetVolume StackingAction
Forum: Event and Track Management
Re: Question G4Track::GetVolume() in StackingAction (Carter Hall)
Re: None Re: G4Track::GetVolume() in StackingAction (Makoto Asai)
Date: 14 Oct, 2005
From: Gumplinger Peter <Gumplinger Peter>

Makoto,

I am not sure, it is true what you are saying. The GetVolume method in

inline G4VPhysicalVolume* G4Track::GetVolume() const { return fpTouchable->GetVolume(); }

uses fpTouchable, but some DoIts, like G4Cerenkov set:

aSecondaryTrack->SetTouchableHandle((G4VTouchable*)0);

on purpose.

There is also a comment in

void G4ParticleChange::AddSecondary(G4DynamicParticle* aParticle, 
                                    G4ThreeVector      newPosition,
                                    G4bool   IsGoodForTracking    )

method:

//   Touchable is a temporary object, so you cannot keep the pointer
   aTrack->SetTouchableHandle((G4VTouchable*)0);

It seems to me, the "policy" is that before tracking of a track has started, i.e. in StackingAction, the secondary track is not fully initialized yet - just like a primary.

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

1 More: Re: G4Track::GetVolume() in StackingAction   (Carter Hall - 14 Oct, 2005)
(_ Feedback: Re: G4Track::GetVolume() in StackingAction   (Peter Gumplinger - 14 Oct, 2005)
(_ None: Re: G4Track::GetVolume() in StackingAction   (vnivanch@mail.cern.ch - 15 Oct, 2005)
(_ Disagree: Re: G4Track::GetVolume() in StackingAction   (Peter Gumplinger - 16 Oct, 2005)
 Add Message Add Message
to: "Re: G4Track::GetVolume() in StackingAction"

 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 ]