Message: Changing name of processes. Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Changing name of processes. 

Forum: Physics List
Date: 21 Nov, 2012
From: C Mos <C Mos>

Hello! I am creating my physics list in the following manner:

  runManager->SetUserInitialization(new QGSP_BIC_HP);

I run some old code I had looking at some nifty stuff about hadronicElastic reactions, elastic scattering more precisely. Ok, so my code was not working precisely because the name of the process I was using was not the proper one. My question is, how could I redefine the name of processes in my simulation? I am only interested in neutrons at the moment. Should I get an instance of the particle table and retrieve neutrons and "fish"/retrieve the process of interest and rename it?

I recall if I want to check if a track is a neutron, I could do something like:

  if(aTrack->GetDefinition() == G4Neutron::Definition() )
  { //blah blah blah}

Is it possible to do something similar with a G4VProcess of interest so I don't have to worry about the actual name of the process?

Thank yoU! Chris

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

1 Idea: Re: Changing name of processes.   (Vladimir Ivanchenko - 30 Nov, 2012)
(_ None: Re: Changing name of processes.   (michel maire - 30 Nov, 2012)
(_ Ok: Re: Changing name of processes.   (C Mos - 30 Nov, 2012)
 Add Message Add Message
to: "Changing name of processes."

 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 ]