Geant4
10.03
|
#include <OpNovicePrimaryGeneratorAction.hh>
Public Member Functions | |
OpNovicePrimaryGeneratorAction () | |
virtual | ~OpNovicePrimaryGeneratorAction () |
virtual void | GeneratePrimaries (G4Event *) |
void | SetOptPhotonPolar () |
void | SetOptPhotonPolar (G4double) |
Public Member Functions inherited from G4VUserPrimaryGeneratorAction | |
G4VUserPrimaryGeneratorAction () | |
virtual | ~G4VUserPrimaryGeneratorAction () |
Private Attributes | |
G4ParticleGun * | fParticleGun |
OpNovicePrimaryGeneratorMessenger * | fGunMessenger |
Definition at line 46 of file OpNovicePrimaryGeneratorAction.hh.
OpNovicePrimaryGeneratorAction::OpNovicePrimaryGeneratorAction | ( | ) |
Definition at line 47 of file OpNovicePrimaryGeneratorAction.cc.
References cm, fGunMessenger, G4ParticleTable::FindParticle(), fParticleGun, G4ParticleTable::GetParticleTable(), keV, ns, G4ParticleGun::SetParticleDefinition(), G4ParticleGun::SetParticleEnergy(), G4ParticleGun::SetParticleMomentumDirection(), G4VPrimaryGenerator::SetParticlePosition(), and G4VPrimaryGenerator::SetParticleTime().
|
virtual |
Definition at line 71 of file OpNovicePrimaryGeneratorAction.cc.
References fGunMessenger, and fParticleGun.
|
virtual |
Implements G4VUserPrimaryGeneratorAction.
Definition at line 79 of file OpNovicePrimaryGeneratorAction.cc.
References fParticleGun, and G4ParticleGun::GeneratePrimaryVertex().
void OpNovicePrimaryGeneratorAction::SetOptPhotonPolar | ( | ) |
Definition at line 86 of file OpNovicePrimaryGeneratorAction.cc.
References angle, deg, and G4UniformRand.
Referenced by OpNovicePrimaryGeneratorMessenger::SetNewValue().
void OpNovicePrimaryGeneratorAction::SetOptPhotonPolar | ( | G4double | angle | ) |
Definition at line 94 of file OpNovicePrimaryGeneratorAction.cc.
References fParticleGun, G4cout, G4endl, G4ParticleGun::GetParticleDefinition(), G4ParticleGun::GetParticleMomentumDirection(), G4ParticleDefinition::GetParticleName(), CLHEP::normal(), and G4ParticleGun::SetParticlePolarization().
|
private |
Definition at line 60 of file OpNovicePrimaryGeneratorAction.hh.
Referenced by OpNovicePrimaryGeneratorAction(), and ~OpNovicePrimaryGeneratorAction().
|
private |
Definition at line 59 of file OpNovicePrimaryGeneratorAction.hh.
Referenced by GeneratePrimaries(), OpNovicePrimaryGeneratorAction(), SetOptPhotonPolar(), and ~OpNovicePrimaryGeneratorAction().