Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
run.MyPrimaryGeneratorAction Class Reference
Inheritance diagram for run.MyPrimaryGeneratorAction:
Collaboration diagram for run.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 16 of file run.py.

Constructor & Destructor Documentation

def run.MyPrimaryGeneratorAction.__init__ (   self)

Definition at line 19 of file run.py.

19 
20  def __init__(self):
21  G4VUserPrimaryGeneratorAction.__init__(self)
22  self.particleGun= G4ParticleGun(1)

Member Function Documentation

def run.MyPrimaryGeneratorAction.GeneratePrimaries (   self,
  event 
)

Definition at line 23 of file run.py.

23 
24  def GeneratePrimaries(self, event):
25  #dx= random.gauss(0., 0.1)
26  dx=0.
27  self.particleGun.SetParticleMomentumDirection(G4ThreeVector(dx, 0., 1.))
28  self.particleGun.GeneratePrimaryVertex(event)
29 
# ------------------------------------------------------------------

Member Data Documentation

run.MyPrimaryGeneratorAction.particleGun

Definition at line 21 of file run.py.


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