71 gun -> GeneratePrimaryVertex(anEvent);
74 if (
gun -> GetParticleDefinition()-> GetParticleName()==
"gamma")
78 analysis -> FillPrimaryParticleHistogram(energy/
keV);
static BrachyAnalysisManager * GetInstance()
G4GeneralParticleSource * gun
void GeneratePrimaries(G4Event *anEvent)
G4double energy(const ThreeVector &p, const G4double m)
BrachyPrimaryGeneratorAction()
~BrachyPrimaryGeneratorAction()