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
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
static constexpr double mm
CLHEP::Hep3Vector G4ThreeVector
G4double GetPlaneSizeXY() const
G4double GetWorldSizeZ() const
static constexpr double rad
void SetParticleMomentumDirection(G4ParticleMomentum aMomentumDirection)
virtual void GeneratePrimaryVertex(G4Event *evt)
const G4String & GetParticleName() const
XrayFluoPlanePrimaryGeneratorAction(const XrayFluoPlaneDetectorConstruction *)
const XML_Char const XML_Char * data
void analysePrimaryGenerator(G4double energy)
void SetParticlePosition(G4ThreeVector aPosition)
G4DataVector * GetEnergies() const
G4GLOB_DLL std::ostream G4cout
static constexpr double m
static XrayFluoAnalysisManager * getInstance()
static constexpr double cm
const XrayFluoDataSet * GetGammaSet() const
~XrayFluoPlanePrimaryGeneratorAction()
G4DataVector * GetData() const
void SetParticleEnergy(G4double aKineticEnergy)
static G4ParticleTable * GetParticleTable()
void GeneratePrimaries(G4Event *)
G4double FindValue(G4double e, G4int) const
G4ParticleDefinition * GetParticleDefinition() const
G4double GetDataSum() const
static constexpr double pi
static constexpr double keV
void SetParticleDefinition(G4ParticleDefinition *aParticleDefinition)
G4double GetParticleEnergy() const
G4double GetWorldSizeXY() const