/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Member Functions
pmtbox::MyGenToolsConfig Class Reference

List of all members.

Public Member Functions

def __init__

Detailed Description

Definition at line 3 of file pmtbox.py.


Constructor & Destructor Documentation

def pmtbox::MyGenToolsConfig::__init__ (   self,
  volume 
)

Definition at line 4 of file pmtbox.py.

00005                              :
00006         import GaudiPython as gm
00007         app = gm.AppMgr()
00008         app.TopAlg = []
00009 
00010 
00011         ########### KINEMATICS ##########
00012 
00013 
00014         # Set up timerator
00015         import GaudiKernel.SystemOfUnits as units
00016         tim = app.property("ToolSvc.GtTimeratorTool")
00017         tim.LifeTime = int(1*units.second)
00018 
00019         # Set up positioner
00020         poser = app.property("ToolSvc.GtPositionerTool")
00021         poser.Volume = volume
00022         #poser.Strategy = "AvoidDaughters"
00023         poser.Strategy = "FullVolume"
00024         poser.Mode = "Smeared"
00025         poser.Spread = 1.0*units.cm
00026         poser.Position = [0.0,0.0,0.0];
00027         poser.OutputLevel = 1
00028 
00029         # Set up gun
00030         gun = app.property("ToolSvc.GtGunGenTool")
00031         gun.ParticlesPerEvent = 100
00032         gun.ParticleName = "opticalphoton"
00033         gun.Momentum = 2.5*units.eV
00034         #gun.ParticleName = "mu+"
00035         #gun.Momentum = 10*units.GeV
00036         gun.MomentumMode = "Fixed"
00037         gun.DirectionMode = "Fixed"
00038         gun.Direction = [ 0.243,0.0,-0.970 ]
00039         #gun.OutputLevel = 1
00040 
00041 
00042         ### Now initi algs
00043 
00044         app.TopAlg += [ "GtGenerator/Generator", "GtHepMCDumper/Dumper" ]
00045 
00046 
00047         gen = app.algorithm("Generator")
00048         gen.OutputLevel = 1
00049         gen.GenTools = [ "GtGunGenTool", "GtPositionerTool", "GtTimeratorTool" ]
00050         gen.GenName = "Bang Bang"
00051         gen.Location = "/Event/Gen/HepMCEvents" # this is default anyways
00052 
00053         #print " GtDumper"
00054         dump = app.algorithm("Dumper")
00055         dump.Location = "/Event/Gen/HepMCEvents"  # this is default anyways.
00056 
00057         ########### SIMULATION ##########
00058 
00059         from GaudiKernel import SystemOfUnits as units
00060         app.ExtSvc += ["GiGa"]
00061 
00062         modularPL = app.property("GiGa.GiGaPhysListModular")
00063         modularPL.OutputLevel = 1
00064         modularPL.CutForElectron = 100*units.micrometer
00065         modularPL.CutForPositron = 100*units.micrometer
00066         modularPL.CutForGamma = 1*units.millimeter
00067         modularPL.PhysicsConstructors = [ 
00068             "DsPhysConsGeneral", 
00069             "DsPhysConsOptical" 
00070             ]
00071 
00072         giga = app.service("GiGa")
00073         giga.OutputLevel = 1
00074         giga.PhysicsList = "GiGaPhysListModular"
00075 
00076         gggeo = app.service("GiGaGeo")
00077         gggeo.OutputLevel = 1
00078 
00079         # Make Geant4 sing!
00080         ggrm = app.property("GiGa.GiGaMgr")
00081         ggrm.Verbosity = 9
00082         event_ac_cmds = app.property("GiGa.GiGaEventActionCommand")
00083         event_ac_cmds.BeginOfEventCommands = [
00084             "/control/verbose 2",
00085             "/run/verbose 1",
00086             "/event/verbose 2",
00087             "/tracking/verbose 2",
00088             "/geometry/navigator/verbose 2"
00089             ]
00090         giga.EventAction = "GiGaEventActionCommand"
00091 
00092 
00093         app.TopAlg += [ "GaudiSequencer/Simulation" ]
00094         seq = app.algorithm("Simulation")
00095         seq.Members = []
00096 
00097         #seq.Members = [ "GiGaInputStream/GGInStream" ]
00098         ggin = app.algorithm("GGInStream")
00099         ggin.OutputLevel = 1
00100         ggin.ExecuteOnce = True
00101         ggin.ConversionSvcName = "GiGaGeo"
00102         ggin.DataProviderSvcName = "DetectorDataSvc"
00103         ggin.StreamItems = [
00104             "/dd/Structure/world",
00105             "/dd/Geometry/PmtBox/PmtBoxSurfaces",
00106             ]
00107 
00108         seq.Members = [ "GiGaInputStream/GGInStream", "DsPushKine/PushKine", "DsPullEvent/PullEvent" ]
00109         push = app.algorithm("PushKine")
00110         push.Converter = "HepMCtoG4"
00111 
00112 
00113         return


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 10:17:58 for DetSim by doxygen 1.7.4