| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

geniotest.py

Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 volume = "/dd/Structure/AD/far-oil2"
00003 
00004 from GenTools.Helpers import Gun
00005 gunner = Gun()
00006 
00007 # time
00008 import GaudiKernel.SystemOfUnits as units
00009 gunner.timerator.LifeTime = int(60*units.second)
00010 
00011 # position
00012 gunner.positioner.Volume = volume
00013 gunner.positioner.Mode = "Fixed"
00014 gunner.positioner.Position = [0,0,0]
00015 
00016 # momentum
00017 gunner.gun.ParticlesPerEvent = 1
00018 gunner.gun.ParticleName = "e+"
00019 gunner.gun.Momentum = 3*units.MeV
00020 gunner.gun.MomentumMode = "Fixed"
00021 gunner.gun.DirectionMode = "Fixed"
00022 gunner.gun.Direction = [ 1,0,0 ]
00023 
00024 # translate from local volume to global
00025 gunner.transformer.Volume = volume
00026 import GenTools
00027 gt = GenTools.Configure("gun","Particle Gun",helper=gunner)
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:58:40 2011 for RootIOTest by doxygen 1.4.7