57 :rndmFlag(
"on"),beam(
"off"),spectrum(
"off"),isoVert(
"off")
83 G4cout <<
"XrayFluoPlanePrimaryGeneratorAction created UUUUUUUUUUAAAAAAAAAAAAAAAAAAAAAAAaa" <<
G4endl;
96 G4cout <<
"XrayFluoPlanePrimaryGeneratorAction deleted" <<
G4endl;
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
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
XrayFluoPlanePrimaryGeneratorAction(const XrayFluoPlaneDetectorConstruction *)
CLHEP::Hep3Vector G4ThreeVector
static XrayFluoAnalysisManager * getInstance()
static G4ParticleTable * GetParticleTable()
static constexpr double keV
static constexpr double mm
XrayFluoPlanePrimaryGeneratorMessenger * gunMessenger
const G4String & GetParticleName() const
const XrayFluoDataSet * GetGammaSet() const
G4double GetDataSum() const
void SetParticlePosition(G4ThreeVector aPosition)
G4double GetPlaneSizeXY() const
const XML_Char const XML_Char * data
static constexpr double m
void SetParticleDefinition(G4ParticleDefinition *aParticleDefinition)
G4double GetWorldSizeZ() const
static constexpr double rad
G4double FindValue(G4double e, G4int) const
void GeneratePrimaries(G4Event *)
G4double GetParticleEnergy() const
void analysePrimaryGenerator(G4double energy)
virtual void GeneratePrimaryVertex(G4Event *evt)
G4GLOB_DLL std::ostream G4cout
static constexpr double cm
void SetParticleEnergy(G4double aKineticEnergy)
G4double GetWorldSizeXY() const
G4ParticleGun * particleGun
const XrayFluoPlaneDetectorConstruction * XrayFluoDetector
static constexpr double pi
G4DataVector * GetData() const
G4DataVector * GetEnergies() const
G4ParticleDefinition * GetParticleDefinition() const
XrayFluoRunAction * runManager
void SetParticleMomentumDirection(G4ParticleMomentum aMomentumDirection)
~XrayFluoPlanePrimaryGeneratorAction()