Message: G4ParticleGun substituted for G4GeneralParticleSource Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None G4ParticleGun substituted for G4GeneralParticleSource 

Forum: Event and Track Management
Date: 09 Oct, 2015
From: Bruce Pierson <Bruce Pierson>

I recently tried measuring the efficiency of a germanium array using GEANT4. The simulated results using G4GeneralParticleSource agreed well with the measured results; however, when substituting in G4ParticleGun and running, what I believe, is the exact same simulation, the efficiency estimates using GEANT4 are much lower. I've attached a zip drive containing my project. It should be relatively straight forward what needs to be uncommented or commented to switch between the two in B1PrimaryGenerator.cc/hh.

I tried posting a zip drive with the contained project with no luck. Attached are the PrimaryGenerator, Run, and RunAction classes from the project.

   Attachment:
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2015/10/09/16.34-43575-PrimaryGeneratorAction.cc
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2015/10/09/16.34-26671-B1Run.cc
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2015/10/09/16.34-34792-B1RunAction.cc
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2015/10/09/16.34-36850-PrimaryGeneratorAction.hh
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2015/10/09/16.34-80392-B1Run.hh
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2015/10/09/16.34-65265-B1RunAction.hh

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

1 None: Re: G4ParticleGun substituted for G4GeneralParticleSource   (Makoto Asai - 09 Oct, 2015)
(_ Agree: Re: G4ParticleGun substituted for G4GeneralParticleSource   (Bruce Pierson - 12 Oct, 2015)
 Add Message Add Message
to: "G4ParticleGun substituted for G4GeneralParticleSource"

 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 ]