Message: Re: How to get previous volume name Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Ok Re: How to get previous volume name 

Forum: Event and Track Management
Re: Question How to get previous volume name (Poer)
Re: None Re: How to get previous volume name (michel maire)
Date: 08 Sep, 2013
From: Poer <Poer>

I found it's impossible to touch previous step in the loop of UserSteppingAction(),
so I tried to achieve my judgement only using information of current step. For example,
if ( fStep->GetPreStepPoint()->GetPhysicalVolume()->GetName() == "pBalloon"
 && fStep->GetPostStepPoint()->GetStepStatus() == fGeomBoundary )

Thanks for Michel's advice!

On Sat, 07 Sep 2013 17:05:15 GMT, michel maire wrote:

> On Sat, 07 Sep 2013 10:06:06 GMT, Poer wrote:
> 
> > Hi, every experts,
> > 
> > For example, volume A is beside with volume B, a particle flies from A
> > to B. Now I have a step which is the first step in volume B, so how can
> > I get the pointer of its previous volume-volume A?
> > 
> > I guess there should be some functions to get previous step or step
> > point of current step, so that I can get the previous volume by the
> > previous step. Is that right?
> > 
> > Thanks for any help and suggestions!
> > 
> 
>    Attachment:
>       http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2013/09/07/10.04-25252-StepAction2.faq.txt
> 

 Add Message Add Message
to: "Re: How to get previous volume name"

 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 ]