54 :globalFlag(
false),spectrum(
"off")
80 G4cout <<
"XrayFluoMercuryPrimaryGeneratorAction created" <<
G4endl;
93 G4cout <<
"XrayFluoMercuryPrimaryGeneratorAction deleted" <<
G4endl;
128 G4double sunPosX = x0 + rho * std::sin(theta) * std::cos(phi);
129 G4double sunPosY = y0 + rho * std::sin(theta) * std::sin(phi);
130 G4double sunPosZ = z0 + rho * std::cos(theta);
149 G4double mercuryPosX = rho * std::sin(theta) * std::cos(phi);
150 G4double mercuryPosY = rho * std::sin(theta) * std::sin(phi);
151 G4double mercuryPosZ = rho * std::cos(theta);
154 G4ThreeVector(mercuryPosX-sunPosX ,mercuryPosY-sunPosY,mercuryPosZ-sunPosZ));
196 if(particle ==
"proton"|| particle ==
"alpha")
205 while (partSum<random)
207 partSum += (*data)[j];
214 else if (particle ==
"gamma")
223 G4double energyRange = maxEnergy - minEnergy;
231 particleEnergy = (random*energyRange) + minEnergy;
233 if ((dataSet->
FindValue(particleEnergy,
id)) > randomNum)
244 #ifdef G4ANALYSIS_USE