54 G4int numberParticles = 1;
60 energySpectrum.push_back(0.783913);
61 energySpectrum.push_back(0.170416);
62 energySpectrum.push_back(0.045671);
78 particleGun -> SetParticleDefinition(particle);
88 }
while(((x*x+y*y )> (radiuMax*radiuMax))||((x*x+y*
y)<(radiusMin*radiusMin)));
93 particleGun -> SetParticlePosition(position);
103 }
while(n > 1 || n == 0.0);
110 particleGun -> SetParticleMomentumDirection(direction);
116 while(sum<random){sum+=energySpectrum[i];
120 if(i==1){primaryParticleEnergy = 27.4*
keV;}
122 if(i==2){primaryParticleEnergy = 31.4*
keV;}
123 else {primaryParticleEnergy = 35.5*
keV;}}
125 particleGun -> SetParticleEnergy(primaryParticleEnergy);
133 return primaryParticleEnergy;