Message: Re: gamma Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Idea Re: gamma 

Forum: Hadronic Processes
Re: None gamma (elnaz yazd)
Re: Idea Re: gamma (Vladimir Ivanchenko)
Re: None Re: gamma (elnaz yazd)
Date: 10 May, 2011
From: Vladimir Ivanchenko <Vladimir Ivanchenko>


For any step you have PreStepPoint and PostStepPoint. For any G4StepPoint you can get a pointer to a process defined the step:

G4VProcess* proc = G4StepPoint::GetProcessDefinedStep();

from that one can have:

G4int subtype = proc->GetProcessSubType(); G4ParticleDefinition* type = proc->GetProcessManager()->GetParticleType();

I would suggest to use first method as the most simple if you can. Subtypes per process are well defined and are available in Geant4 web or via LXR code browse.

We usually do not recommend to use string names to identify particles and processes in run time at each step, because it is not CPU effective.


 Add Message Add Message
to: "Re: gamma"

 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 ]