Skip to content
Snippets Groups Projects
Commit 70913657 authored by lintao@ihep.ac.cn's avatar lintao@ihep.ac.cn
Browse files

integrate generator and detsim.

parent de18abb4
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,26 @@
from Gaudi.Configuration import *
##############################################################################
# Event Data Svc
##############################################################################
from Configurables import CEPCDataSvc
dsvc = CEPCDataSvc("EventDataSvc")
##############################################################################
# Physics Generator
##############################################################################
from Configurables import GenAlgo
genalg = GenAlgo("read")
genalg.Input = "/junofs/users/wxfang/CEPC/whizard_apply/ee/ee.slcio"
genalg.FileFormat = "slcio"
genalg.PrintEvent = True # true for printing mc info
genalg.WriteFile = True # true for writting info to root
##############################################################################
# Detector Simulation
##############################################################################
from Configurables import DetSimSvc
detsimsvc = DetSimSvc("DetSimSvc")
......@@ -13,7 +33,7 @@ from Configurables import DetSimAlg
detsimalg = DetSimAlg("DetSimAlg")
detsimalg.VisMacs = ["vis.mac"]
# detsimalg.VisMacs = ["vis.mac"]
detsimalg.RunCmds = [
"/tracking/verbose 1",
......@@ -24,9 +44,17 @@ detsimalg.AnaElems = [
]
detsimalg.RootDetElem = "WorldDetElemTool"
from Configurables import AnExampleDetElemTool
example_dettool = AnExampleDetElemTool("AnExampleDetElemTool")
example_dettool.detxml = "/cvmfs/sft.cern.ch/lcg/releases/DD4hep/01-08-c926f/x86_64-slc6-gcc62-opt/DDDetectors/compact/SiD.xml"
##############################################################################
# ApplicationMgr
##############################################################################
from Configurables import ApplicationMgr
ApplicationMgr( TopAlg = [detsimalg],
ApplicationMgr( TopAlg = [genalg, detsimalg],
EvtSel = 'NONE',
EvtMax = 10,
ExtSvc = [dsvc],
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment