/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
detsim::DetSimConfig Class Reference

List of all members.

Public Member Functions

def __init__

Detailed Description

Definition at line 5 of file detsim.py.


Constructor & Destructor Documentation

def detsim::DetSimConfig::__init__ (   self)

Definition at line 6 of file detsim.py.

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


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