Message: Re: Altering Example TestEm1 to use GPS to simulate positron source emission Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Altering Example TestEm1 to use GPS to simulate positron source emission  

Keywords: F-18 GPS positron source through TestEm1
Forum: Particles
Re: Question Altering Example TestEm1 to use GPS to simulate positron source emission (Matthew Middione)
Date: 27 Jun, 2007
From: michel maire <michel maire>

 
 something like :

 #include "PrimaryGeneratorAction.hh"

 #include "G4Event.hh"
 #include "G4GeneralParticleSource.hh"
 #include "G4ParticleTable.hh"
 #include "G4ParticleDefinition.hh"
 #include "globals.hh"

 PrimaryGeneratorAction::PrimaryGeneratorAction()
 {
    particleGun = new G4GeneralParticleSource();
 }

 PrimaryGeneratorAction::~PrimaryGeneratorAction()
 {
   delete particleGun;
 }

 void PrimaryGeneratorAction::GeneratePrimaries(G4Event* anEvent)
 {
   particleGun->GeneratePrimaryVertex(anEvent) ;
 }

 and drive your source from GPS IU commands

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

 Add Message Add Message
to: "Re: Altering Example TestEm1 to use GPS to simulate positron source emission "

 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 ]