Message: Re: Finding all particles involved in an interaction Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Finding all particles involved in an interaction 

Forum: Event and Track Management
Re: None Finding all particles involved in an interaction (Karen Pease)
Re: Feedback Re: Finding all particles involved in an interaction (Michael H. Kelsey)
Date: 13 Jul, 2015
From: michel maire <michel maire>

On Mon, 13 Jul 2015 05:32:19 GMT, Michael H. Kelsey wrote:

> 
> Unfortunately, that is the only way. The underlying "problem" is that
> the material does not consist of "particles" in the G4 sense. Each
> process knows what the tracked particle is, and it knows the material.
> For hadronic interactions [like (n,gamma) or (n,alpha)], the process
> uses the material composition and cross-sections to choose the specific
> isotope for the interaction. Then it creates a strictly internal object
> (a G4Nucleus, usually) as the target, and passes the track and target
> into the appropriate model (G4HadronicInteraction subclass).
> 
> That target object is internal to the hadronic interaction code, and is
> never visible outside. 
> 

  In example Hadr03, SteppingAction, I read :

  //initialisation of the nuclear channel identification
  //
  G4ParticleDefinition* particle = aStep->GetTrack()->GetDefinition();
  G4String partName = particle->GetParticleName();
  //
  G4HadronicProcess* hproc = (G4HadronicProcess*) process;
  const G4Isotope* target = hproc->GetTargetIsotope();
  if (target) targetName = target->GetName();

   It works !  (even with neutronHP ...)

    Michel

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

1 Ok: Re: Finding all particles involved in an interaction   (Michael H. Kelsey - 13 Jul, 2015)
 Add Message Add Message
to: "Re: Finding all particles involved in an interaction"

 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 ]