#include <G4VPrimaryGenerator.hh>
Inheritance diagram for G4VPrimaryGenerator:
Public Member Functions | |
G4VPrimaryGenerator () | |
virtual | ~G4VPrimaryGenerator () |
virtual void | GeneratePrimaryVertex (G4Event *evt)=0 |
G4ThreeVector | GetParticlePosition () |
G4double | GetParticleTime () |
void | SetParticlePosition (G4ThreeVector aPosition) |
void | SetParticleTime (G4double aTime) |
Static Public Member Functions | |
static G4bool | CheckVertexInsideWorld (const G4ThreeVector &pos) |
Protected Attributes | |
G4ThreeVector | particle_position |
G4double | particle_time |
Definition at line 45 of file G4VPrimaryGenerator.hh.
G4VPrimaryGenerator::G4VPrimaryGenerator | ( | ) |
G4VPrimaryGenerator::~G4VPrimaryGenerator | ( | ) | [virtual] |
G4bool G4VPrimaryGenerator::CheckVertexInsideWorld | ( | const G4ThreeVector & | pos | ) | [static] |
Definition at line 45 of file G4VPrimaryGenerator.cc.
References G4TransportationManager::GetTransportationManager(), and kInside.
00046 { 00047 G4Navigator* navigator= G4TransportationManager::GetTransportationManager() 00048 -> GetNavigatorForTracking(); 00049 00050 G4VPhysicalVolume* world= navigator-> GetWorldVolume(); 00051 G4VSolid* solid= world-> GetLogicalVolume()-> GetSolid(); 00052 EInside qinside= solid-> Inside(pos); 00053 00054 if( qinside != kInside) return false; 00055 else return true; 00056 }
virtual void G4VPrimaryGenerator::GeneratePrimaryVertex | ( | G4Event * | evt | ) | [pure virtual] |
Implemented in G4GeneralParticleSource, G4HEPEvtInterface, G4ParticleGun, and G4SingleParticleSource.
G4ThreeVector G4VPrimaryGenerator::GetParticlePosition | ( | ) | [inline] |
Reimplemented in G4GeneralParticleSource, and G4SingleParticleSource.
Definition at line 65 of file G4VPrimaryGenerator.hh.
References particle_position.
Referenced by G4ParticleGunMessenger::GetCurrentValue().
00066 { return particle_position; }
G4double G4VPrimaryGenerator::GetParticleTime | ( | ) | [inline] |
Reimplemented in G4GeneralParticleSource, and G4SingleParticleSource.
Definition at line 67 of file G4VPrimaryGenerator.hh.
References particle_time.
Referenced by G4ParticleGunMessenger::GetCurrentValue().
00068 { return particle_time; }
void G4VPrimaryGenerator::SetParticlePosition | ( | G4ThreeVector | aPosition | ) | [inline] |
Definition at line 69 of file G4VPrimaryGenerator.hh.
References particle_position.
Referenced by G4ParticleGunMessenger::G4ParticleGunMessenger(), and G4ParticleGunMessenger::SetNewValue().
00070 { particle_position = aPosition; }
void G4VPrimaryGenerator::SetParticleTime | ( | G4double | aTime | ) | [inline] |
Reimplemented in G4GeneralParticleSource, and G4SingleParticleSource.
Definition at line 71 of file G4VPrimaryGenerator.hh.
References particle_time.
Referenced by G4ParticleGunMessenger::G4ParticleGunMessenger(), and G4ParticleGunMessenger::SetNewValue().
00072 { particle_time = aTime; }
G4ThreeVector G4VPrimaryGenerator::particle_position [protected] |
Definition at line 61 of file G4VPrimaryGenerator.hh.
Referenced by G4HEPEvtInterface::G4HEPEvtInterface(), G4ParticleGun::GeneratePrimaryVertex(), G4HEPEvtInterface::GeneratePrimaryVertex(), GetParticlePosition(), G4ParticleGun::SetInitialValues(), and SetParticlePosition().
G4double G4VPrimaryGenerator::particle_time [protected] |
Definition at line 62 of file G4VPrimaryGenerator.hh.
Referenced by G4HEPEvtInterface::G4HEPEvtInterface(), G4ParticleGun::GeneratePrimaryVertex(), G4HEPEvtInterface::GeneratePrimaryVertex(), GetParticleTime(), G4ParticleGun::SetInitialValues(), and SetParticleTime().