Geant4
10.00.p01
|
#include <PrimaryGeneratorAction2.hh>
Public Member Functions | |
PrimaryGeneratorAction2 (G4ParticleGun *) | |
~PrimaryGeneratorAction2 () | |
void | GeneratePrimaries (G4Event *) |
G4double | RejectAccept () |
G4double | InverseCumul () |
Private Member Functions | |
void | InitFunction () |
Private Attributes | |
G4ParticleGun * | particleGun |
G4int | nPoints |
std::vector< G4double > | x |
std::vector< G4double > | f |
std::vector< G4double > | a |
std::vector< G4double > | Fc |
G4double | fMax |
Definition at line 47 of file PrimaryGeneratorAction2.hh.
PrimaryGeneratorAction2::PrimaryGeneratorAction2 | ( | G4ParticleGun * | gun | ) |
Definition at line 48 of file PrimaryGeneratorAction2.cc.
References InitFunction().
PrimaryGeneratorAction2::~PrimaryGeneratorAction2 | ( | ) |
Definition at line 58 of file PrimaryGeneratorAction2.cc.
void PrimaryGeneratorAction2::GeneratePrimaries | ( | G4Event * | anEvent | ) |
Definition at line 63 of file PrimaryGeneratorAction2.cc.
References G4INCL::KinematicsUtils::energy(), G4UniformRand, G4ParticleGun::GeneratePrimaryVertex(), InverseCumul(), particleGun, G4ParticleGun::SetParticleEnergy(), and G4ParticleGun::SetParticleMomentumDirection().
|
private |
Definition at line 85 of file PrimaryGeneratorAction2.cc.
References a, f, Fc, fMax, keV, nPoints, and x.
Referenced by PrimaryGeneratorAction2().
G4double PrimaryGeneratorAction2::InverseCumul | ( | ) |
Definition at line 148 of file PrimaryGeneratorAction2.cc.
References a, f, Fc, G4UniformRand, nPoints, G4INCL::Math::sign(), and x.
Referenced by GeneratePrimaries().
G4double PrimaryGeneratorAction2::RejectAccept | ( | ) |
Definition at line 126 of file PrimaryGeneratorAction2.cc.
|
private |
Definition at line 66 of file PrimaryGeneratorAction2.hh.
Referenced by InitFunction(), InverseCumul(), and RejectAccept().
|
private |
Definition at line 65 of file PrimaryGeneratorAction2.hh.
Referenced by InitFunction(), InverseCumul(), and RejectAccept().
|
private |
Definition at line 67 of file PrimaryGeneratorAction2.hh.
Referenced by InitFunction(), and InverseCumul().
|
private |
Definition at line 68 of file PrimaryGeneratorAction2.hh.
Referenced by InitFunction(), and RejectAccept().
|
private |
Definition at line 63 of file PrimaryGeneratorAction2.hh.
Referenced by InitFunction(), InverseCumul(), and RejectAccept().
|
private |
Definition at line 61 of file PrimaryGeneratorAction2.hh.
Referenced by GeneratePrimaries().
|
private |
Definition at line 64 of file PrimaryGeneratorAction2.hh.
Referenced by InitFunction(), InverseCumul(), and RejectAccept().