Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CEPCSW
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Li Zhihao
CEPCSW
Commits
70913657
Commit
70913657
authored
5 years ago
by
lintao@ihep.ac.cn
Browse files
Options
Downloads
Patches
Plain Diff
integrate generator and detsim.
parent
de18abb4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Examples/options/tut_detsim.py
+30
-2
30 additions, 2 deletions
Examples/options/tut_detsim.py
with
30 additions
and
2 deletions
Examples/options/tut_detsim.py
+
30
−
2
View file @
70913657
...
...
@@ -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
],
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment