Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
demo.MyPrimaryGeneratorAction Class Reference
Inheritance diagram for demo.MyPrimaryGeneratorAction:
Collaboration diagram for demo.MyPrimaryGeneratorAction:

Public Member Functions

def __init__
 
def GeneratePrimaries
 
- Public Member Functions inherited from G4VUserPrimaryGeneratorAction
 G4VUserPrimaryGeneratorAction ()
 
virtual ~G4VUserPrimaryGeneratorAction ()
 
virtual void GeneratePrimaries (G4Event *anEvent)=0
 

Public Attributes

 particleGun
 

Detailed Description

Definition at line 81 of file demo.py.

Constructor & Destructor Documentation

def demo.MyPrimaryGeneratorAction.__init__ (   self)

Definition at line 84 of file demo.py.

84 
85  def __init__(self):
86  G4VUserPrimaryGeneratorAction.__init__(self)
87  self.particleGun= G4ParticleGun(1)

Member Function Documentation

def demo.MyPrimaryGeneratorAction.GeneratePrimaries (   self,
  event 
)

Definition at line 88 of file demo.py.

88 
89  def GeneratePrimaries(self, event):
90  self.particleGun.GeneratePrimaryVertex(event)
91 
# ------------------------------------------------------------------

Member Data Documentation

demo.MyPrimaryGeneratorAction.particleGun

Definition at line 86 of file demo.py.


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