Geant4
10.02.p02
|
#include <DMXParticleSource.hh>
Additional Inherited Members | |
Static Public Member Functions inherited from G4VPrimaryGenerator | |
static G4bool | CheckVertexInsideWorld (const G4ThreeVector &pos) |
Protected Attributes inherited from G4VPrimaryGenerator | |
G4ThreeVector | particle_position |
G4double | particle_time |
Definition at line 58 of file DMXParticleSource.hh.
DMXParticleSource::DMXParticleSource | ( | ) |
Definition at line 68 of file DMXParticleSource.cc.
References AngDistType, CentreCoords, Confine, EnergyDisType, G4TransportationManager::GetNavigatorForTracking(), G4TransportationManager::GetTransportationManager(), gNavigator, halfz, MaxPhi, MaxTheta, MeV, MinPhi, MinTheta, MonoEnergy, NumberOfParticlesToBeGenerated, particle_charge, particle_definition, particle_energy, particle_momentum_direction, particle_polarization, particle_position, particle_time, pi, Radius, Shape, SourcePosType, theMessenger, twopi, verbosityLevel, and VolName.
DMXParticleSource::~DMXParticleSource | ( | ) |
Definition at line 104 of file DMXParticleSource.cc.
References theMessenger.
void DMXParticleSource::ConfineSourceToVolume | ( | G4String | Vname | ) |
Definition at line 134 of file DMXParticleSource.cc.
References Confine, G4cout, G4endl, G4PhysicalVolumeStore::GetInstance(), G4VPhysicalVolume::GetName(), verbosityLevel, and VolName.
void DMXParticleSource::GenerateIsotropicFlux | ( | ) |
Definition at line 273 of file DMXParticleSource.cc.
References G4cout, G4endl, G4UniformRand, MaxPhi, MaxTheta, MinPhi, MinTheta, particle_momentum_direction, Phi, and verbosityLevel.
Referenced by GeneratePrimaryVertex().
void DMXParticleSource::GenerateMonoEnergetic | ( | ) |
Definition at line 318 of file DMXParticleSource.cc.
References MonoEnergy, and particle_energy.
Referenced by GeneratePrimaryVertex().
void DMXParticleSource::GeneratePointsInVolume | ( | ) |
Definition at line 195 of file DMXParticleSource.cc.
References CentreCoords, G4cout, G4endl, G4UniformRand, halfz, particle_position, Radius, Shape, SourcePosType, verbosityLevel, x, and z.
Referenced by GeneratePrimaryVertex().
void DMXParticleSource::GeneratePointSource | ( | ) |
Definition at line 184 of file DMXParticleSource.cc.
References CentreCoords, G4cout, G4endl, particle_position, SourcePosType, and verbosityLevel.
Referenced by GeneratePrimaryVertex().
|
virtual |
Implements G4VPrimaryGenerator.
Definition at line 338 of file DMXParticleSource.cc.
References G4Event::AddPrimaryVertex(), AngDistType, Confine, G4INCL::KinematicsUtils::energy(), EnergyDisType, G4cout, G4endl, GenerateIsotropicFlux(), GenerateMonoEnergetic(), GeneratePointsInVolume(), GeneratePointSource(), G4ParticleDefinition::GetParticleName(), G4ParticleDefinition::GetPDGMass(), IsSourceConfined(), NumberOfParticlesToBeGenerated, particle_charge, particle_definition, particle_energy, particle_momentum_direction, particle_polarization, particle_position, particle_time, G4PrimaryParticle::SetCharge(), G4PrimaryParticle::SetMass(), SetParticleMomentumDirection(), G4PrimaryParticle::SetPolarization(), G4PrimaryVertex::SetPrimary(), SourcePosType, and verbosityLevel.
Referenced by DMXPrimaryGeneratorAction::GeneratePrimaries().
|
inline |
Definition at line 87 of file DMXParticleSource.hh.
References particle_energy.
Referenced by DMXPrimaryGeneratorAction::GeneratePrimaries().
G4bool DMXParticleSource::IsSourceConfined | ( | ) |
Definition at line 242 of file DMXParticleSource.cc.
References Confine, G4cout, G4endl, G4VPhysicalVolume::GetName(), gNavigator, G4Navigator::LocateGlobalPointAndSetup(), particle_position, verbosityLevel, and VolName.
Referenced by GeneratePrimaryVertex().
void DMXParticleSource::SetAngDistType | ( | G4String | atype | ) |
Definition at line 178 of file DMXParticleSource.cc.
References AngDistType.
void DMXParticleSource::SetCentreCoords | ( | G4ThreeVector | coordsOfCentre | ) |
Definition at line 119 of file DMXParticleSource.cc.
References CentreCoords.
void DMXParticleSource::SetEnergyDisType | ( | G4String | DisType | ) |
Definition at line 308 of file DMXParticleSource.cc.
References EnergyDisType.
void DMXParticleSource::SetHalfZ | ( | G4double | zhalf | ) |
Definition at line 124 of file DMXParticleSource.cc.
References halfz.
void DMXParticleSource::SetMonoEnergy | ( | G4double | menergy | ) |
Definition at line 313 of file DMXParticleSource.cc.
References MonoEnergy.
|
inline |
Definition at line 94 of file DMXParticleSource.hh.
References particle_charge.
void DMXParticleSource::SetParticleDefinition | ( | G4ParticleDefinition * | aParticleDefinition | ) |
Definition at line 331 of file DMXParticleSource.cc.
References G4ParticleDefinition::GetPDGCharge().
void DMXParticleSource::SetParticleMomentumDirection | ( | G4ParticleMomentum | aDirection | ) |
Definition at line 267 of file DMXParticleSource.cc.
Referenced by GeneratePrimaryVertex().
void DMXParticleSource::SetPosDisShape | ( | G4String | shapeType | ) |
Definition at line 114 of file DMXParticleSource.cc.
References Shape.
void DMXParticleSource::SetPosDisType | ( | G4String | PosType | ) |
Definition at line 109 of file DMXParticleSource.cc.
References SourcePosType.
void DMXParticleSource::SetRadius | ( | G4double | radius | ) |
Definition at line 129 of file DMXParticleSource.cc.
References Radius.
void DMXParticleSource::SetVerbosity | ( | G4int | vL | ) |
Definition at line 324 of file DMXParticleSource.cc.
References G4cout, G4endl, and verbosityLevel.
|
private |
Definition at line 107 of file DMXParticleSource.hh.
Referenced by DMXParticleSource(), GeneratePrimaryVertex(), and SetAngDistType().
|
private |
Definition at line 104 of file DMXParticleSource.hh.
Referenced by DMXParticleSource(), GeneratePointsInVolume(), GeneratePointSource(), and SetCentreCoords().
|
private |
Definition at line 105 of file DMXParticleSource.hh.
Referenced by ConfineSourceToVolume(), DMXParticleSource(), GeneratePrimaryVertex(), and IsSourceConfined().
|
private |
Definition at line 110 of file DMXParticleSource.hh.
Referenced by DMXParticleSource(), GeneratePrimaryVertex(), and SetEnergyDisType().
|
private |
Definition at line 129 of file DMXParticleSource.hh.
Referenced by DMXParticleSource(), and IsSourceConfined().
|
private |
Definition at line 102 of file DMXParticleSource.hh.
Referenced by DMXParticleSource(), GeneratePointsInVolume(), and SetHalfZ().
|
private |
Definition at line 108 of file DMXParticleSource.hh.
Referenced by DMXParticleSource(), and GenerateIsotropicFlux().
|
private |
Definition at line 108 of file DMXParticleSource.hh.
Referenced by DMXParticleSource(), and GenerateIsotropicFlux().
|
private |
Definition at line 108 of file DMXParticleSource.hh.
Referenced by DMXParticleSource(), and GenerateIsotropicFlux().
|
private |
Definition at line 108 of file DMXParticleSource.hh.
Referenced by DMXParticleSource(), and GenerateIsotropicFlux().
|
private |
Definition at line 111 of file DMXParticleSource.hh.
Referenced by DMXParticleSource(), GenerateMonoEnergetic(), and SetMonoEnergy().
|
private |
Definition at line 114 of file DMXParticleSource.hh.
Referenced by DMXParticleSource(), and GeneratePrimaryVertex().
|
private |
Definition at line 118 of file DMXParticleSource.hh.
Referenced by DMXParticleSource(), GeneratePrimaryVertex(), and SetParticleCharge().
|
private |
Definition at line 115 of file DMXParticleSource.hh.
Referenced by DMXParticleSource(), and GeneratePrimaryVertex().
|
private |
Definition at line 117 of file DMXParticleSource.hh.
Referenced by DMXParticleSource(), GenerateMonoEnergetic(), GeneratePrimaryVertex(), and GetParticleEnergy().
|
private |
Definition at line 116 of file DMXParticleSource.hh.
Referenced by DMXParticleSource(), GenerateIsotropicFlux(), and GeneratePrimaryVertex().
|
private |
Definition at line 121 of file DMXParticleSource.hh.
Referenced by DMXParticleSource(), and GeneratePrimaryVertex().
|
private |
Definition at line 119 of file DMXParticleSource.hh.
Referenced by DMXParticleSource(), GeneratePointsInVolume(), GeneratePointSource(), GeneratePrimaryVertex(), and IsSourceConfined().
|
private |
Definition at line 120 of file DMXParticleSource.hh.
Referenced by DMXParticleSource(), and GeneratePrimaryVertex().
|
private |
Definition at line 109 of file DMXParticleSource.hh.
Referenced by GenerateIsotropicFlux().
|
private |
Definition at line 103 of file DMXParticleSource.hh.
Referenced by DMXParticleSource(), GeneratePointsInVolume(), and SetRadius().
|
private |
Definition at line 101 of file DMXParticleSource.hh.
Referenced by DMXParticleSource(), GeneratePointsInVolume(), and SetPosDisShape().
|
private |
Definition at line 100 of file DMXParticleSource.hh.
Referenced by DMXParticleSource(), GeneratePointsInVolume(), GeneratePointSource(), GeneratePrimaryVertex(), and SetPosDisType().
|
private |
Definition at line 128 of file DMXParticleSource.hh.
Referenced by DMXParticleSource(), and ~DMXParticleSource().
|
private |
Definition at line 124 of file DMXParticleSource.hh.
Referenced by ConfineSourceToVolume(), DMXParticleSource(), GenerateIsotropicFlux(), GeneratePointsInVolume(), GeneratePointSource(), GeneratePrimaryVertex(), IsSourceConfined(), and SetVerbosity().
|
private |
Definition at line 106 of file DMXParticleSource.hh.
Referenced by ConfineSourceToVolume(), DMXParticleSource(), and IsSourceConfined().