Geant4  10.02.p03
HadrontherapyPrimaryGeneratorAction Class Reference

#include <HadrontherapyPrimaryGeneratorAction.hh>

Inheritance diagram for HadrontherapyPrimaryGeneratorAction:
Collaboration diagram for HadrontherapyPrimaryGeneratorAction:

Public Member Functions

 HadrontherapyPrimaryGeneratorAction ()
 
 ~HadrontherapyPrimaryGeneratorAction ()
 
void SetsigmaEnergy (G4double)
 
void SetmeanKineticEnergy (G4double)
 
void GeneratePrimaries (G4Event *)
 
void SetXposition (G4double)
 
void SetYposition (G4double)
 
void SetZposition (G4double)
 
void SetsigmaY (G4double)
 
void SetsigmaZ (G4double)
 
void SetsigmaMomentumY (G4double)
 
void SetsigmaMomentumZ (G4double)
 
G4double GetmeanKineticEnergy (void)
 
G4double GetSigmaEnergy (void)
 
- Public Member Functions inherited from G4VUserPrimaryGeneratorAction
 G4VUserPrimaryGeneratorAction ()
 
virtual ~G4VUserPrimaryGeneratorAction ()
 

Private Member Functions

void SetDefaultPrimaryParticle ()
 

Private Attributes

G4double meanKineticEnergy
 
G4double sigmaEnergy
 
G4double X0
 
G4double Y0
 
G4double Z0
 
G4double sigmaY
 
G4double sigmaZ
 
G4double sigmaMomentumY
 
G4double sigmaMomentumZ
 
G4GeneralParticleSourceparticleGun
 
G4double sigmaX
 

Detailed Description

Definition at line 39 of file HadrontherapyPrimaryGeneratorAction.hh.

Constructor & Destructor Documentation

◆ HadrontherapyPrimaryGeneratorAction()

HadrontherapyPrimaryGeneratorAction::HadrontherapyPrimaryGeneratorAction ( )

Definition at line 41 of file HadrontherapyPrimaryGeneratorAction.cc.

42 {
43 
45 
46  // Definition of the General particle Source
48 }
Here is the call graph for this function:

◆ ~HadrontherapyPrimaryGeneratorAction()

HadrontherapyPrimaryGeneratorAction::~HadrontherapyPrimaryGeneratorAction ( )

Definition at line 51 of file HadrontherapyPrimaryGeneratorAction.cc.

52 {
53  delete particleGun;
54 
55 }

Member Function Documentation

◆ GeneratePrimaries()

void HadrontherapyPrimaryGeneratorAction::GeneratePrimaries ( G4Event anEvent)
virtual

Implements G4VUserPrimaryGeneratorAction.

Definition at line 63 of file HadrontherapyPrimaryGeneratorAction.cc.

64  {
65 #ifdef G4ANALYSIS_USE_ROOT
66  // Increment the event counter
68 #endif
69  particleGun -> GeneratePrimaryVertex( anEvent );
70  }
static HadrontherapyAnalysisManager * GetInstance()
Here is the call graph for this function:

◆ GetmeanKineticEnergy()

G4double HadrontherapyPrimaryGeneratorAction::GetmeanKineticEnergy ( void  )

◆ GetSigmaEnergy()

G4double HadrontherapyPrimaryGeneratorAction::GetSigmaEnergy ( void  )

◆ SetDefaultPrimaryParticle()

void HadrontherapyPrimaryGeneratorAction::SetDefaultPrimaryParticle ( )
private

Definition at line 58 of file HadrontherapyPrimaryGeneratorAction.cc.

59 {
60 
61 }
Here is the caller graph for this function:

◆ SetmeanKineticEnergy()

void HadrontherapyPrimaryGeneratorAction::SetmeanKineticEnergy ( G4double  )

◆ SetsigmaEnergy()

void HadrontherapyPrimaryGeneratorAction::SetsigmaEnergy ( G4double  )

◆ SetsigmaMomentumY()

void HadrontherapyPrimaryGeneratorAction::SetsigmaMomentumY ( G4double  )

◆ SetsigmaMomentumZ()

void HadrontherapyPrimaryGeneratorAction::SetsigmaMomentumZ ( G4double  )

◆ SetsigmaY()

void HadrontherapyPrimaryGeneratorAction::SetsigmaY ( G4double  )

◆ SetsigmaZ()

void HadrontherapyPrimaryGeneratorAction::SetsigmaZ ( G4double  )

◆ SetXposition()

void HadrontherapyPrimaryGeneratorAction::SetXposition ( G4double  )

◆ SetYposition()

void HadrontherapyPrimaryGeneratorAction::SetYposition ( G4double  )

◆ SetZposition()

void HadrontherapyPrimaryGeneratorAction::SetZposition ( G4double  )

Member Data Documentation

◆ meanKineticEnergy

G4double HadrontherapyPrimaryGeneratorAction::meanKineticEnergy
private

Definition at line 63 of file HadrontherapyPrimaryGeneratorAction.hh.

◆ particleGun

G4GeneralParticleSource* HadrontherapyPrimaryGeneratorAction::particleGun
private

Definition at line 74 of file HadrontherapyPrimaryGeneratorAction.hh.

◆ sigmaEnergy

G4double HadrontherapyPrimaryGeneratorAction::sigmaEnergy
private

Definition at line 64 of file HadrontherapyPrimaryGeneratorAction.hh.

◆ sigmaMomentumY

G4double HadrontherapyPrimaryGeneratorAction::sigmaMomentumY
private

Definition at line 70 of file HadrontherapyPrimaryGeneratorAction.hh.

◆ sigmaMomentumZ

G4double HadrontherapyPrimaryGeneratorAction::sigmaMomentumZ
private

Definition at line 71 of file HadrontherapyPrimaryGeneratorAction.hh.

◆ sigmaX

G4double HadrontherapyPrimaryGeneratorAction::sigmaX
private

Definition at line 75 of file HadrontherapyPrimaryGeneratorAction.hh.

◆ sigmaY

G4double HadrontherapyPrimaryGeneratorAction::sigmaY
private

Definition at line 68 of file HadrontherapyPrimaryGeneratorAction.hh.

◆ sigmaZ

G4double HadrontherapyPrimaryGeneratorAction::sigmaZ
private

Definition at line 69 of file HadrontherapyPrimaryGeneratorAction.hh.

◆ X0

G4double HadrontherapyPrimaryGeneratorAction::X0
private

Definition at line 65 of file HadrontherapyPrimaryGeneratorAction.hh.

◆ Y0

G4double HadrontherapyPrimaryGeneratorAction::Y0
private

Definition at line 66 of file HadrontherapyPrimaryGeneratorAction.hh.

◆ Z0

G4double HadrontherapyPrimaryGeneratorAction::Z0
private

Definition at line 67 of file HadrontherapyPrimaryGeneratorAction.hh.


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