#include <G4VPrimaryGenerator.hh>
Definition at line 44 of file G4VPrimaryGenerator.hh.
◆ G4VPrimaryGenerator()
G4VPrimaryGenerator::G4VPrimaryGenerator |
( |
| ) |
|
|
default |
◆ ~G4VPrimaryGenerator()
virtual G4VPrimaryGenerator::~G4VPrimaryGenerator |
( |
| ) |
|
|
virtualdefault |
◆ CheckInside()
void G4VPrimaryGenerator::CheckInside |
( |
G4bool | val = true | ) |
|
|
inline |
◆ CheckVertexInsideWorld()
Definition at line 38 of file G4VPrimaryGenerator.cc.
39{
40
41
43 {
44 return true;
45 }
46
48 -> GetNavigatorForTracking();
49 G4VPhysicalVolume* world= navigator-> GetWorldVolume();
50 G4VSolid* solid = world-> GetLogicalVolume()-> GetSolid();
51 EInside qinside = solid-> Inside(pos);
52
54}
static G4StateManager * GetStateManager()
static G4TransportationManager * GetTransportationManager()
Referenced by SetParticlePosition().
◆ GeneratePrimaryVertex()
virtual void G4VPrimaryGenerator::GeneratePrimaryVertex |
( |
G4Event * | evt | ) |
|
|
pure virtual |
◆ GetParticlePosition()
◆ GetParticleTime()
G4double G4VPrimaryGenerator::GetParticleTime |
( |
| ) |
|
|
inline |
◆ IfCheckInside()
G4bool G4VPrimaryGenerator::IfCheckInside |
( |
| ) |
|
|
inline |
◆ SetParticlePosition()
void G4VPrimaryGenerator::SetParticlePosition |
( |
G4ThreeVector | aPosition | ) |
|
Definition at line 56 of file G4VPrimaryGenerator.cc.
57{
59 {
61 ed << "Invalid vertex position (" << aPosition << "). "
62 <<
"Position MUST be located -inside- the world volume." <<
G4endl
63 << "Gun position has NOT been changed!";
64 G4Exception(
"G4VPrimaryGenerator::SetParticlePosition",
66 return;
67 }
69}
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::ostringstream G4ExceptionDescription
static G4bool CheckVertexInsideWorld(const G4ThreeVector &pos)
◆ SetParticleTime()
void G4VPrimaryGenerator::SetParticleTime |
( |
G4double | aTime | ) |
|
|
inline |
◆ ifCheckInside
G4bool G4VPrimaryGenerator::ifCheckInside = true |
|
protected |
◆ particle_position
◆ particle_time
G4double G4VPrimaryGenerator::particle_time = 0.0 |
|
protected |
The documentation for this class was generated from the following files: