Geant4  10.02.p02
DMXParticleSource Class Reference

#include <DMXParticleSource.hh>

+ Inheritance diagram for DMXParticleSource:
+ Collaboration diagram for DMXParticleSource:

Public Member Functions

 DMXParticleSource ()
 
 ~DMXParticleSource ()
 
void GeneratePrimaryVertex (G4Event *evt)
 
void SetPosDisType (G4String)
 
void SetPosDisShape (G4String)
 
void SetCentreCoords (G4ThreeVector)
 
void SetHalfZ (G4double)
 
void SetRadius (G4double)
 
void GeneratePointSource ()
 
void GeneratePointsInVolume ()
 
G4bool IsSourceConfined ()
 
void ConfineSourceToVolume (G4String)
 
void SetAngDistType (G4String)
 
void SetParticleMomentumDirection (G4ParticleMomentum)
 
void GenerateIsotropicFlux ()
 
void SetEnergyDisType (G4String)
 
void SetMonoEnergy (G4double)
 
void GenerateMonoEnergetic ()
 
G4double GetParticleEnergy ()
 
void SetVerbosity (G4int)
 
void SetParticleDefinition (G4ParticleDefinition *aParticleDefinition)
 
void SetParticleCharge (G4double aCharge)
 
- Public Member Functions inherited from G4VPrimaryGenerator
 G4VPrimaryGenerator ()
 
virtual ~G4VPrimaryGenerator ()
 
G4ThreeVector GetParticlePosition ()
 
G4double GetParticleTime ()
 
void SetParticlePosition (G4ThreeVector aPosition)
 
void SetParticleTime (G4double aTime)
 

Private Attributes

G4String SourcePosType
 
G4String Shape
 
G4double halfz
 
G4double Radius
 
G4ThreeVector CentreCoords
 
G4bool Confine
 
G4String VolName
 
G4String AngDistType
 
G4double MinTheta
 
G4double MaxTheta
 
G4double MinPhi
 
G4double MaxPhi
 
G4double Phi
 
G4String EnergyDisType
 
G4double MonoEnergy
 
G4int NumberOfParticlesToBeGenerated
 
G4ParticleDefinitionparticle_definition
 
G4ParticleMomentum particle_momentum_direction
 
G4double particle_energy
 
G4double particle_charge
 
G4ThreeVector particle_position
 
G4double particle_time
 
G4ThreeVector particle_polarization
 
G4int verbosityLevel
 
DMXParticleSourceMessengertheMessenger
 
G4NavigatorgNavigator
 

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
 

Detailed Description

Definition at line 58 of file DMXParticleSource.hh.

Constructor & Destructor Documentation

DMXParticleSource::~DMXParticleSource ( )

Definition at line 104 of file DMXParticleSource.cc.

References theMessenger.

Member Function Documentation

void DMXParticleSource::ConfineSourceToVolume ( G4String  Vname)

Definition at line 134 of file DMXParticleSource.cc.

References Confine, G4cout, G4endl, G4PhysicalVolumeStore::GetInstance(), G4VPhysicalVolume::GetName(), verbosityLevel, and VolName.

+ Here is the call graph for this function:

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().

+ Here is the caller graph for this function:

void DMXParticleSource::GenerateMonoEnergetic ( )

Definition at line 318 of file DMXParticleSource.cc.

References MonoEnergy, and particle_energy.

Referenced by GeneratePrimaryVertex().

+ Here is the caller graph for this function:

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().

+ Here is the caller graph for this function:

void DMXParticleSource::GeneratePointSource ( )

Definition at line 184 of file DMXParticleSource.cc.

References CentreCoords, G4cout, G4endl, particle_position, SourcePosType, and verbosityLevel.

Referenced by GeneratePrimaryVertex().

+ Here is the caller graph for this function:

void DMXParticleSource::GeneratePrimaryVertex ( G4Event evt)
virtual
G4double DMXParticleSource::GetParticleEnergy ( )
inline

Definition at line 87 of file DMXParticleSource.hh.

References particle_energy.

Referenced by DMXPrimaryGeneratorAction::GeneratePrimaries().

+ Here is the caller graph for this function:

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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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.

void DMXParticleSource::SetParticleCharge ( G4double  aCharge)
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().

+ Here is the call graph for this function:

void DMXParticleSource::SetParticleMomentumDirection ( G4ParticleMomentum  aDirection)

Definition at line 267 of file DMXParticleSource.cc.

Referenced by GeneratePrimaryVertex().

+ Here is the caller graph for this function:

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.

Member Data Documentation

G4String DMXParticleSource::AngDistType
private

Definition at line 107 of file DMXParticleSource.hh.

Referenced by DMXParticleSource(), GeneratePrimaryVertex(), and SetAngDistType().

G4ThreeVector DMXParticleSource::CentreCoords
private
G4bool DMXParticleSource::Confine
private
G4String DMXParticleSource::EnergyDisType
private
G4Navigator* DMXParticleSource::gNavigator
private

Definition at line 129 of file DMXParticleSource.hh.

Referenced by DMXParticleSource(), and IsSourceConfined().

G4double DMXParticleSource::halfz
private

Definition at line 102 of file DMXParticleSource.hh.

Referenced by DMXParticleSource(), GeneratePointsInVolume(), and SetHalfZ().

G4double DMXParticleSource::MaxPhi
private

Definition at line 108 of file DMXParticleSource.hh.

Referenced by DMXParticleSource(), and GenerateIsotropicFlux().

G4double DMXParticleSource::MaxTheta
private

Definition at line 108 of file DMXParticleSource.hh.

Referenced by DMXParticleSource(), and GenerateIsotropicFlux().

G4double DMXParticleSource::MinPhi
private

Definition at line 108 of file DMXParticleSource.hh.

Referenced by DMXParticleSource(), and GenerateIsotropicFlux().

G4double DMXParticleSource::MinTheta
private

Definition at line 108 of file DMXParticleSource.hh.

Referenced by DMXParticleSource(), and GenerateIsotropicFlux().

G4double DMXParticleSource::MonoEnergy
private

Definition at line 111 of file DMXParticleSource.hh.

Referenced by DMXParticleSource(), GenerateMonoEnergetic(), and SetMonoEnergy().

G4int DMXParticleSource::NumberOfParticlesToBeGenerated
private

Definition at line 114 of file DMXParticleSource.hh.

Referenced by DMXParticleSource(), and GeneratePrimaryVertex().

G4double DMXParticleSource::particle_charge
private
G4ParticleDefinition* DMXParticleSource::particle_definition
private

Definition at line 115 of file DMXParticleSource.hh.

Referenced by DMXParticleSource(), and GeneratePrimaryVertex().

G4double DMXParticleSource::particle_energy
private
G4ParticleMomentum DMXParticleSource::particle_momentum_direction
private
G4ThreeVector DMXParticleSource::particle_polarization
private

Definition at line 121 of file DMXParticleSource.hh.

Referenced by DMXParticleSource(), and GeneratePrimaryVertex().

G4ThreeVector DMXParticleSource::particle_position
private
G4double DMXParticleSource::particle_time
private

Definition at line 120 of file DMXParticleSource.hh.

Referenced by DMXParticleSource(), and GeneratePrimaryVertex().

G4double DMXParticleSource::Phi
private

Definition at line 109 of file DMXParticleSource.hh.

Referenced by GenerateIsotropicFlux().

G4double DMXParticleSource::Radius
private

Definition at line 103 of file DMXParticleSource.hh.

Referenced by DMXParticleSource(), GeneratePointsInVolume(), and SetRadius().

G4String DMXParticleSource::Shape
private

Definition at line 101 of file DMXParticleSource.hh.

Referenced by DMXParticleSource(), GeneratePointsInVolume(), and SetPosDisShape().

G4String DMXParticleSource::SourcePosType
private
DMXParticleSourceMessenger* DMXParticleSource::theMessenger
private

Definition at line 128 of file DMXParticleSource.hh.

Referenced by DMXParticleSource(), and ~DMXParticleSource().

G4String DMXParticleSource::VolName
private

The documentation for this class was generated from the following files: