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

In This Package:

detsim::DetSimConfig Class Reference

List of all members.

Public Member Functions

def __init__

Detailed Description

Definition at line 5 of file detsim.py.


Member Function Documentation

def detsim::DetSimConfig::__init__ (   self  ) 

Definition at line 6 of file detsim.py.

00006                       :
00007         import GaudiPython as gm
00008         from GaudiKernel import SystemOfUnits as units
00009         app = gm.AppMgr()
00010         app.ExtSvc += ["GiGa"]
00011 
00012         # Connection to Geant4
00013         giga = app.service("GiGa")
00014         giga.OutputLevel = 1
00015 
00016         # Physics List
00017         modularPL = app.property("GiGa.GiGaPhysListModular")
00018         modularPL.OutputLevel = 1
00019         modularPL.CutForElectron = 100*units.micrometer
00020         modularPL.CutForPositron = 100*units.micrometer
00021         modularPL.CutForGamma = 1*units.millimeter
00022         modularPL.PhysicsConstructors = [ 
00023             "DsPhysConsGeneral", 
00024             "DsPhysConsOptical",
00025             #"DsPhysConsEM",
00026             #"DsPhysConsHadron",
00027             #"DsPhysConsXxx",
00028             ]
00029         giga.PhysicsList = "GiGaPhysListModular"
00030 
00031         gggeo = app.service("GiGaGeo")
00032         gggeo.OutputLevel = 1
00033 
00034         # Make Geant4 sing!
00035         ggrm = app.property("GiGa.GiGaMgr")
00036         ggrm.Verbosity = 9
00037         event_ac_cmds = app.property("GiGa.GiGaEventActionCommand")
00038         event_ac_cmds.BeginOfEventCommands = [
00039             "/control/verbose 2",
00040             "/run/verbose 1",
00041             "/event/verbose 2",
00042             "/tracking/verbose 2",
00043             "/geometry/navigator/verbose 2"
00044             ]
00045         giga.EventAction = "GiGaEventActionCommand"
00046 
00047 
00048         app.TopAlg += [ "GaudiSequencer/Simulation" ]
00049         seq = app.algorithm("Simulation")
00050         seq.Members = []
00051 
00052         seq.Members += [ "GiGaInputStream/GGInStream" ]
00053         ggin = app.algorithm("GGInStream")
00054         ggin.OutputLevel = 1
00055         ggin.ExecuteOnce = True
00056         ggin.ConversionSvcName = "GiGaGeo"
00057         ggin.DataProviderSvcName = "DetectorDataSvc"
00058         ggin.StreamItems = [
00059             "/dd/Structure/Sites/far-rock"
00060             "/dd/Geometry/PMT/PmtSurfaces",
00061             #"/dd/Structure/pmt-box-array",
00062             ]
00063 
00064         seq.Members += [ "DsPushKine/PushKine", "DsPullEvent/PullEvent" ]
00065         push = app.algorithm("PushKine")
00066         push.Converter = "HepMCtoG4"
00067 
00068         
00069 
00070 
if '__main__' == __name__:


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

Generated on Mon Apr 11 20:53:29 2011 for DetSim by doxygen 1.4.7