Message: Re: Resource for Developing new Processes Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Resource for Developing new Processes 

Forum: Physics List
Re: Question Resource for Developing new Processes (Sam)
Re: Idea Re: Resource for Developing new Processes (Andrea Dotti)
Date: 13 Jun, 2012
From: Sam <Sam>

I have taken a look at the monopole example and found some helpful insight. My over all goal is to create an at rest process with pi- on deuterium. I have been trying to create a simple process to start, which just kills the particle and adds a secondary but I am getting memory access errors. I have a process inheriting from G4VRestProcess and a particle change from G4VParticleChange. The rest procedure gets called and In my AtRestDoIt I have:

  G4double theTime = Step.GetTrack()->GetGlobalTime ();
  G4ThreeVector aPos = Step.GetTrack()->GetPosition();
  G4DynamicParticle aDynamicParticle(G4Gamma::Gamma(), G4ThreeVector(0,1,0), 129 * MeV );
  G4Track * aSec  = new G4Track(&aDynamicParticle,theTime,aPos);
 fParticleChange.AddSecondary(aSec);  
 fParticleChange.ProposeTrackStatus( fStopAndKill )  ;

I am unsure of what to do in the UpdateStepForAtRest method in particle change.

I think a good place to look would be the Decay process but there are many classes and I am unsure where to look.

Thank you for your help,

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

1 Idea: Re: Resource for Developing new Processes   (Andrea Dotti - 13 Jun, 2012)
(_ None: Re: Resource for Developing new Processes   (Michael H. Kelsey - 13 Jun, 2012)
 Add Message Add Message
to: "Re: Resource for Developing new 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 ]