67 NumberOfParticlesToBeGenerated = 1;
71 particle_energy = 1.0 *
MeV;
72 particle_position = zero;
74 particle_polarization = zero;
75 particle_charge = 0.0;
76 particle_weight = 1.0;
104 G4cout <<
"Verbosity Set to: " << verbosityLevel <<
G4endl;
109 particle_definition = aParticleDefinition;
114 if (particle_definition == NULL)
117 if (verbosityLevel > 1)
118 G4cout <<
" NumberOfParticlesToBeGenerated: "
119 << NumberOfParticlesToBeGenerated <<
G4endl;
128 for (
G4int i = 0; i < NumberOfParticlesToBeGenerated; i++) {
130 particle_momentum_direction = angGenerator->
GenerateOne();
132 particle_energy = eneGenerator->
GenerateOne(particle_definition);
134 if (verbosityLevel >= 2)
135 G4cout <<
"Creating primaries and assigning to vertex" <<
G4endl;
145 particle_polarization.
y(),
146 particle_polarization.
z());
147 if (verbosityLevel > 1) {
148 G4cout <<
"Particle name: "
152 G4cout <<
" Direction: " << particle_momentum_direction
166 if (verbosityLevel > 1)