57 :rndmFlag(
"on"),beam(
"off"),spectrum(
"off"),isoVert(
"off")
60 XrayFluoDetector = XrayFluoDC;
83 G4cout <<
"XrayFluoPlanePrimaryGeneratorAction created UUUUUUUUUUAAAAAAAAAAAAAAAAAAAAAAAaa" <<
G4endl;
96 G4cout <<
"XrayFluoPlanePrimaryGeneratorAction deleted" <<
G4endl;
109 if (rndmFlag ==
"on")
139 if(particle ==
"proton"|| particle ==
"alpha")
148 while (partSum<random)
150 partSum += (*data)[j];
157 else if (particle ==
"gamma")
166 G4double energyRange = maxEnergy - minEnergy;
174 particleEnergy = (random*energyRange) + minEnergy;
176 if ((dataSet->
FindValue(particleEnergy,
id)) > randomNum)
193 G4double x = rho*std::sin(theta)*std::sin(phi);
194 G4double y = rho*std::sin(theta)*std::cos(phi);
208 #ifdef G4ANALYSIS_USE
211 XrayFluoAnalysisManager* analysis = XrayFluoAnalysisManager::getInstance();
212 analysis->analysePrimaryGenerator(partEnergy/
keV);
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
CLHEP::Hep3Vector G4ThreeVector
const XrayFluoDataSet * GetGammaSet()
void SetParticleMomentumDirection(G4ParticleMomentum aMomentumDirection)
virtual void GeneratePrimaryVertex(G4Event *evt)
const G4String & GetParticleName() const
void SetParticlePosition(G4ThreeVector aPosition)
G4GLOB_DLL std::ostream G4cout
G4double GetPlaneSizeXY()
~XrayFluoPlanePrimaryGeneratorAction()
void SetParticleEnergy(G4double aKineticEnergy)
static G4ParticleTable * GetParticleTable()
void GeneratePrimaries(G4Event *)
G4double FindValue(G4double e, G4int) const
G4ParticleDefinition * GetParticleDefinition() const
G4DataVector * GetEnergies()
G4double GetWorldSizeXY()
const XML_Char const XML_Char * data
void SetParticleDefinition(G4ParticleDefinition *aParticleDefinition)
G4double GetParticleEnergy() const
XrayFluoPlanePrimaryGeneratorAction(XrayFluoPlaneDetectorConstruction *)