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

Public Member Functions

def __init__
 
def GeneratePrimaries
 
def __init__
 
def GeneratePrimaries
 
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 12 of file test.py.

Constructor & Destructor Documentation

def test.MyPrimaryGeneratorAction.__init__ (   self)

Definition at line 15 of file test.py.

15 
16  def __init__(self):
17  G4VUserPrimaryGeneratorAction.__init__(self)
18  self.particleGun= G4ParticleGun(1)

Here is the caller graph for this function:

def test.MyPrimaryGeneratorAction.__init__ (   self)

Definition at line 18 of file test.py.

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

Here is the call graph for this function:

def test.MyPrimaryGeneratorAction.__init__ (   self)

Definition at line 18 of file test.py.

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

Here is the call graph for this function:

Member Function Documentation

def test.MyPrimaryGeneratorAction.GeneratePrimaries (   self,
  event 
)

Definition at line 19 of file test.py.

19 
20  def GeneratePrimaries(self, event):
21  self.particleGun.GeneratePrimaryVertex(event)
22 
# ------------------------------------------------------------------

Here is the caller graph for this function:

def test.MyPrimaryGeneratorAction.GeneratePrimaries (   self,
  event 
)

Definition at line 22 of file test.py.

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

Here is the call graph for this function:

def test.MyPrimaryGeneratorAction.GeneratePrimaries (   self,
  event 
)

Definition at line 22 of file test.py.

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

Here is the call graph for this function:

Member Data Documentation

test.MyPrimaryGeneratorAction.particleGun

Definition at line 17 of file test.py.


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