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

Public Member Functions

def UserSteppingAction
 
def UserSteppingAction
 
def UserSteppingAction
 
- Public Member Functions inherited from G4UserSteppingAction
 G4UserSteppingAction ()
 
virtual ~G4UserSteppingAction ()
 
virtual void SetSteppingManagerPointer (G4SteppingManager *pValue)
 
virtual void UserSteppingAction (const G4Step *)
 

Additional Inherited Members

- Protected Attributes inherited from G4UserSteppingAction
G4SteppingManagerfpSteppingManager
 

Detailed Description

Definition at line 39 of file test.py.

Member Function Documentation

def test.MySteppingAction.UserSteppingAction (   self,
  step 
)

Definition at line 42 of file test.py.

42 
43  def UserSteppingAction(self, step):
44  pass
45  #print "*** dE/dx in current step=", step.GetTotalEnergyDeposit()
46  preStepPoint= step.GetPreStepPoint()
47  track= step.GetTrack()
48  touchable= track.GetTouchable()
49  #print "*** vid= ", touchable.GetReplicaNumber()
50 
51 
52 # ==================================================================
53 # main
54 # ==================================================================
55 myMaterials= demo_wp.MyMaterials()
56 myMaterials.Construct()
57 
58 myDC= demo_wp.MyDetectorConstruction()
59 gRunManager.SetUserInitialization(myDC)
60 
61 myPL= FTFP_BERT()
62 gRunManager.SetUserInitialization(myPL)
63 
64 # set user actions...
66 gRunManager.SetUserAction(myPGA)
67 
68 myRA= MyRunAction()
69 gRunManager.SetUserAction(myRA)
70 
71 myEA= MyEventAction()
72 gRunManager.SetUserAction(myEA)
73 
74 mySA= MySteppingAction()
75 gRunManager.SetUserAction(mySA)
76 
77 
78 # set particle gun
79 pg= myPGA.particleGun
80 pg.SetParticleByName("proton")
81 pg.SetParticleEnergy(230.*MeV)
82 pg.SetParticleMomentumDirection(G4ThreeVector(0., 0., 1.))
83 pg.SetParticlePosition(G4ThreeVector(0.,0.,-20.)*cm)
84 
85 gRunManager.Initialize()
86 
87 # visualization
88 gApplyUICommand("/control/execute vis.mac")
89 
90 # beamOn
91 #gRunManager.BeamOn(3)
92 
93 
def UserSteppingAction
Definition: test.py:42
gApplyUICommand
Definition: __init__.py:165

Here is the caller graph for this function:

def test.MySteppingAction.UserSteppingAction (   self,
  step 
)

Definition at line 54 of file test.py.

54 
55  def UserSteppingAction(self, step):
56  #print "*** dE/dx in current step=", step.GetTotalEnergyDeposit()
57  track= step.GetTrack()
58  touchable= track.GetTouchable()
59  pv= touchable.GetVolume()
60  #print pv.GetCopyNo()
61  #print touchable.GetReplicaNumber(0)
62 
# ------------------------------------------------------------------
def UserSteppingAction
Definition: test.py:42

Here is the call graph for this function:

def test.MySteppingAction.UserSteppingAction (   self,
  step 
)

Definition at line 54 of file test.py.

54 
55  def UserSteppingAction(self, step):
56  #print("*** dE/dx in current step=", step.GetTotalEnergyDeposit())
57  track= step.GetTrack()
58  touchable= track.GetTouchable()
59  pv= touchable.GetVolume()
60  #print(pv.GetCopyNo())
61  #print(touchable.GetReplicaNumber(0))
62 
# ------------------------------------------------------------------
def UserSteppingAction
Definition: test.py:42

Here is the call graph for this function:


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