00001
00002
00003 def DetSim():
00004 from GaudiPython import AppMgr
00005 from GaudiKernel import SystemOfUnits as units
00006
00007 app = AppMgr()
00008
00009
00010 app.ExtSvc += ["GiGa"]
00011
00012 modularPL = app.property("GiGa.GiGaPhysListModular")
00013 modularPL.OutputLevel = 0
00014 modularPL.CutForElectron = 100*units.micrometer
00015 modularPL.CutForPositron = 100*units.micrometer
00016 modularPL.CutForGamma = 1*units.millimeter
00017 modularPL.PhysicsConstructors = [
00018 "DsPhysConsGeneral",
00019 "DsPhysConsOptical"
00020 ]
00021
00022 giga = app.service("GiGa")
00023 giga.OutputLevel = 0
00024 giga.PhysicsList = "GiGaPhysListModular"
00025
00026 gggeo = app.service("GiGaGeo")
00027 gggeo.OutputLevel = 0
00028 gggeo.XsizeOfWorldVolume = 2.4*units.kilometer
00029 gggeo.YsizeOfWorldVolume = 2.4*units.kilometer
00030 gggeo.ZsizeOfWorldVolume = 2.4*units.kilometer
00031
00032
00033 ggrm = app.property("GiGa.GiGaMgr")
00034 ggrm.Verbosity = 0
00035 event_ac_cmds = app.property("GiGa.GiGaEventActionCommand")
00036 event_ac_cmds.BeginOfEventCommands = [
00037 "/control/verbose 0",
00038 "/run/verbose 0",
00039 "/event/verbose 0",
00040 "/tracking/verbose 0",
00041 "/geometry/navigator/verbose 0"
00042 ]
00043 giga.EventAction = "GiGaEventActionCommand"
00044
00045
00046 ds = app.algorithm("DetSim")
00047 ds.OutputLevel = 1
00048 ds.Converter = "HepMCtoG4"
00049
00050
00051 pmtsd = app.property("GiGaGeo.DsPmtSensDet")
00052 pmtsd.OutputLevel = 0
00053
00054 return