Geant4
10.00.p01
|
#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 43 of file OpNovicePrimaryGeneratorAction.hh.
OpNovicePrimaryGeneratorAction::OpNovicePrimaryGeneratorAction | ( | ) |
Definition at line 44 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 68 of file OpNovicePrimaryGeneratorAction.cc.
References fGunMessenger, and fParticleGun.
|
virtual |
Implements G4VUserPrimaryGeneratorAction.
Definition at line 76 of file OpNovicePrimaryGeneratorAction.cc.
References fParticleGun, and G4ParticleGun::GeneratePrimaryVertex().
void OpNovicePrimaryGeneratorAction::SetOptPhotonPolar | ( | ) |
Definition at line 83 of file OpNovicePrimaryGeneratorAction.cc.
References deg, and G4UniformRand.
Referenced by OpNovicePrimaryGeneratorMessenger::SetNewValue().
void OpNovicePrimaryGeneratorAction::SetOptPhotonPolar | ( | G4double | angle | ) |
Definition at line 91 of file OpNovicePrimaryGeneratorAction.cc.
References fParticleGun, G4cout, G4endl, G4ParticleGun::GetParticleDefinition(), G4ParticleGun::GetParticleMomentumDirection(), G4ParticleDefinition::GetParticleName(), CLHEP::normal(), and G4ParticleGun::SetParticlePolarization().
|
private |
Definition at line 57 of file OpNovicePrimaryGeneratorAction.hh.
Referenced by OpNovicePrimaryGeneratorAction(), and ~OpNovicePrimaryGeneratorAction().
|
private |
Definition at line 56 of file OpNovicePrimaryGeneratorAction.hh.
Referenced by GeneratePrimaries(), OpNovicePrimaryGeneratorAction(), SetOptPhotonPolar(), and ~OpNovicePrimaryGeneratorAction().