Geant4  10.02.p03
G4VPrimaryGenerator Class Referenceabstract

#include <G4VPrimaryGenerator.hh>

Inheritance diagram for G4VPrimaryGenerator:
Collaboration 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
 

Detailed Description

Definition at line 45 of file G4VPrimaryGenerator.hh.

Constructor & Destructor Documentation

◆ G4VPrimaryGenerator()

G4VPrimaryGenerator::G4VPrimaryGenerator ( )

Definition at line 33 of file G4VPrimaryGenerator.cc.

33  : particle_time(0.)
34 {;}

◆ ~G4VPrimaryGenerator()

G4VPrimaryGenerator::~G4VPrimaryGenerator ( )
virtual

Definition at line 36 of file G4VPrimaryGenerator.cc.

37 {;}
Here is the call graph for this function:

Member Function Documentation

◆ CheckVertexInsideWorld()

G4bool G4VPrimaryGenerator::CheckVertexInsideWorld ( const G4ThreeVector pos)
static

Definition at line 45 of file G4VPrimaryGenerator.cc.

46 {
48  -> GetNavigatorForTracking();
49 
50  G4VPhysicalVolume* world= navigator-> GetWorldVolume();
51  G4VSolid* solid= world-> GetLogicalVolume()-> GetSolid();
52  EInside qinside= solid-> Inside(pos);
53 
54  if( qinside != kInside) return false;
55  else return true;
56 }
static G4TransportationManager * GetTransportationManager()
EInside
Definition: geomdefs.hh:58
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GeneratePrimaryVertex()

virtual void G4VPrimaryGenerator::GeneratePrimaryVertex ( G4Event evt)
pure virtual

Implemented in G4GeneralParticleSource, G4SingleParticleSource, G4HEPEvtInterface, G4ParticleGun, HepMCG4Interface, HepMCG4Interface, DMXParticleSource, and PrimaryGenerator.

Here is the caller graph for this function:

◆ GetParticlePosition()

G4ThreeVector G4VPrimaryGenerator::GetParticlePosition ( )
inline

Definition at line 65 of file G4VPrimaryGenerator.hh.

66  { return particle_position; }
G4ThreeVector particle_position
Here is the caller graph for this function:

◆ GetParticleTime()

G4double G4VPrimaryGenerator::GetParticleTime ( )
inline

Definition at line 67 of file G4VPrimaryGenerator.hh.

68  { return particle_time; }
Here is the caller graph for this function:

◆ SetParticlePosition()

void G4VPrimaryGenerator::SetParticlePosition ( G4ThreeVector  aPosition)
inline

Definition at line 69 of file G4VPrimaryGenerator.hh.

70  { particle_position = aPosition; }
G4ThreeVector particle_position

◆ SetParticleTime()

void G4VPrimaryGenerator::SetParticleTime ( G4double  aTime)
inline

Definition at line 71 of file G4VPrimaryGenerator.hh.

72  { particle_time = aTime; }
Here is the caller graph for this function:

Member Data Documentation

◆ particle_position

G4ThreeVector G4VPrimaryGenerator::particle_position
protected

Definition at line 61 of file G4VPrimaryGenerator.hh.

◆ particle_time

G4double G4VPrimaryGenerator::particle_time
protected

Definition at line 62 of file G4VPrimaryGenerator.hh.


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