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

update the job option for detsim.

parent b1cebf55
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env python #!/usr/bin/env python
import os
print(os.environ["DD4HEP_LIBRARY_PATH"])
import sys
# sys.exit(0)
from Gaudi.Configuration import * from Gaudi.Configuration import *
############################################################################## ##############################################################################
...@@ -14,10 +19,9 @@ dsvc = CEPCDataSvc("EventDataSvc") ...@@ -14,10 +19,9 @@ dsvc = CEPCDataSvc("EventDataSvc")
from Configurables import GenAlgo from Configurables import GenAlgo
genalg = GenAlgo("read") genalg = GenAlgo("read")
genalg.Input = "/junofs/users/wxfang/CEPC/whizard_apply/ee/ee.slcio" genalg.Input = "/cefs/data/stdhep/CEPC250/2fermions/E250.Pbhabha.e0.p0.whizard195/bhabha.e0.p0.00001.stdhep"
genalg.FileFormat = "slcio" genalg.FileFormat = "stdhep"
genalg.PrintEvent = True # true for printing mc info genalg.PrintEvent = False # true for printing mc info
genalg.WriteFile = True # true for writting info to root
############################################################################## ##############################################################################
# Detector Simulation # Detector Simulation
...@@ -36,7 +40,7 @@ detsimalg = DetSimAlg("DetSimAlg") ...@@ -36,7 +40,7 @@ detsimalg = DetSimAlg("DetSimAlg")
# detsimalg.VisMacs = ["vis.mac"] # detsimalg.VisMacs = ["vis.mac"]
detsimalg.RunCmds = [ detsimalg.RunCmds = [
"/tracking/verbose 1", # "/tracking/verbose 1",
] ]
detsimalg.AnaElems = [ detsimalg.AnaElems = [
# example_anatool.name() # example_anatool.name()
...@@ -46,14 +50,30 @@ detsimalg.RootDetElem = "WorldDetElemTool" ...@@ -46,14 +50,30 @@ detsimalg.RootDetElem = "WorldDetElemTool"
from Configurables import AnExampleDetElemTool from Configurables import AnExampleDetElemTool
example_dettool = AnExampleDetElemTool("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"
# geometry_option = "CepC_v4-onlyTracker.xml"
geometry_option = "CepC_v4-onlyVXD.xml"
if os.getenv("DETCEPCV4ROOT"):
example_dettool.detxml = os.path.join(os.getenv("DETCEPCV4ROOT"), "compact", geometry_option)
else:
print("Can't find the geometry. Please setup envvar DETCEPCV4ROOT." )
sys.exit(-1)
##############################################################################
# POD I/O
##############################################################################
from Configurables import PodioOutput
out = PodioOutput("outputalg")
out.filename = "test-detsim10.root"
out.outputCommands = ["keep *"]
############################################################################## ##############################################################################
# ApplicationMgr # ApplicationMgr
############################################################################## ##############################################################################
from Configurables import ApplicationMgr from Configurables import ApplicationMgr
ApplicationMgr( TopAlg = [genalg, detsimalg], ApplicationMgr( TopAlg = [genalg, detsimalg, out],
EvtSel = 'NONE', EvtSel = 'NONE',
EvtMax = 10, EvtMax = 10,
ExtSvc = [dsvc], 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