17 "My Primary Generator Action"
20 G4VUserPrimaryGeneratorAction.__init__(self)
34 print "*** #event to be processed (BRA)=",
35 run.GetNumberOfEventToBeProcessed()
38 print "*** run end run(ERA)=", run.GetRunID()
57 track= step.GetTrack()
58 touchable= track.GetTouchable()
59 pv= touchable.GetVolume()
77qMaterials= gtest01.QMaterials()
80qDC= gtest01.QDetectorConstruction()
81gRunManager.SetUserInitialization(qDC)
83qPL= gtest01.QPhysicsList()
84gRunManager.SetUserInitialization(qPL)
89gRunManager.SetUserAction(myPGA)
95gRunManager.SetUserAction(myEA)
98gRunManager.SetUserAction(mySA)
104pg.SetParticleByName(
"e-")
105pg.SetParticleEnergy(200.*MeV)
109fieldMgr= gTransportationManager.GetFieldManager()
112fieldMgr.SetDetectorField(myField)
113fieldMgr.CreateChordFinder(myField)
115gRunManager.Initialize()
121gRunManager.BeamOn(10)
def GetFieldValue(self, pos, time)
def GeneratePrimaries(self, event)
def EndOfRunAction(self, run)
def BeginOfRunAction(self, run)
def UserSteppingAction(self, step)