Message: Re: obtaining name of parent volume Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: obtaining name of parent volume 

Forum: Event and Track Management
Re: Question obtaining name of parent volume (Trey Garson)
Date: 29 Jan, 2004
From: Makoto Asai <Makoto Asai>

Refer to sensitive detector classes or user stepping action
classes in some novice examples, which demonstrate the way of
accessing to the volume information. For example in ExN02TrackerSD,
  G4StepPoint* preStepPoint = aStep->GetPreStepPoint();
  G4TouchableHandle theTouchable = preStepPoint->GetTouchableHandle();
you can determine the pointer to the mother volume at that precise
location, with:
  G4VPhysicalVolume* theMotherPtr = theTouchable->GetVolume(1);
Here "1" means "one level up" in geometrical hierarchy counted
from the bottom (top is the world volume).

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

 Add Message Add Message
to: "Re: obtaining name of parent volume"

 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 ]