Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CEPCSW
Manage
Activity
Members
Labels
Plan
Issues
7
Issue boards
Milestones
Wiki
Code
Merge requests
14
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
cepc
CEPCSW
Merge requests
!1
onlyVXD
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
onlyVXD
lizhan/CEPCSW:master
into
master
Overview
1
Commits
5
Pipelines
3
Changes
2
Merged
Zhan Li
requested to merge
lizhan/CEPCSW:master
into
master
1 year ago
Overview
1
Commits
5
Pipelines
3
Changes
2
Expand
The simulation of only vertex, and the hit map analysis of only vertex
0
0
Merge request reports
Compare
master
version 3
b2ccd816
1 year ago
version 2
155ea64a
1 year ago
version 1
10ac28c5
1 year ago
master (base)
and
latest version
latest version
8d194642
5 commits,
1 year ago
version 3
b2ccd816
4 commits,
1 year ago
version 2
155ea64a
2 commits,
1 year ago
version 1
10ac28c5
1 commit,
1 year ago
2 files
+
205
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
Examples/options/detsim_tracker.py
0 → 100644
+
85
−
0
Options
#!/usr/bin/env python
#Author: Zhan Li <lizhan@ihep.ac.cn>
#Created [2024-03-07 Thu 14:53]
import
os
import
sys
import
Gaudi.Configuration
from
Configurables
import
RndmGenSvc
,
HepRndm__Engine_CLHEP__RanluxEngine_
,
k4DataSvc
,
GeomSvc
from
Configurables
import
TimeProjectionChamberSensDetTool
from
Configurables
import
GenAlgo
from
Configurables
import
GtGunTool
from
Configurables
import
StdHepRdr
from
Configurables
import
SLCIORdr
from
Configurables
import
HepMCRdr
from
Configurables
import
GenPrinter
from
Configurables
import
GtBeamBackgroundTool
from
Configurables
import
DetSimSvc
from
Configurables
import
DetSimAlg
from
Configurables
import
AnExampleDetElemTool
from
Configurables
import
PodioOutput
from
Configurables
import
ApplicationMgr
seed
=
[
42
]
rndmengine
=
Gaudi
.
Configuration
.
HepRndm__Engine_CLHEP__HepJamesRandom_
(
"
RndmGenSvc.Engine
"
)
rndmengine
.
SetSingleton
=
True
rndmengine
.
Seeds
=
seed
rndmgensvc
=
RndmGenSvc
(
"
RndmGenSvc
"
)
rndmgensvc
.
Engine
=
rndmengine
.
name
()
dsvc
=
k4DataSvc
(
"
EventDataSvc
"
)
#geometry_option = "CepC_v4-onlyVXD.xml"
geometry_option
=
"
CepC_v4_onlyTracker.xml
"
#geometry_option = "CepC_v4.xml"
geometry_path
=
os
.
path
.
join
(
os
.
getenv
(
"
DETCEPCV4ROOT
"
),
"
compact
"
,
geometry_option
)
geosvc
=
GeomSvc
(
"
GeomSvc
"
)
geosvc
.
compact
=
geometry_path
#Previously I do not have these 2 lines
tpc_sensdettool
=
TimeProjectionChamberSensDetTool
(
"
TimeProjectionChamberSensDetTool
"
)
tpc_sensdettool
.
TypeOption
=
1
# Physics Generator
bg
=
GtBeamBackgroundTool
(
"
GtBeamBackgroundTool
"
)
bg
.
InputFileMap
=
{
"
default
"
:
"
/scratchfs/atlas/lizhan/cepc/CEPCSW/ToCEPCSWsingle.out
"
}
#bg.InputFileMap = {"default":"/cefs/higgs/shihy/tools/CEPCSW/CEPCSW/Test/0/ToCEPCSW-1.out"}
bg
.
InputBeamEnergyMap
=
{
"
default
"
:
120
}
bg
.
RotationAlongYMap
=
{
"
default
"
:
16.5e-3
}
genprinter
=
GenPrinter
(
"
GenPrinter
"
)
genalg
=
GenAlgo
(
"
GenAlgo
"
)
genalg
.
GenTools
=
[
"
GtBeamBackgroundTool
"
]
detsimsvc
=
DetSimSvc
(
"
DetSimSvc
"
)
detsimalg
=
DetSimAlg
(
"
DetSimAlg
"
)
detsimalg
.
RandomSeeds
=
seed
detsimalg
.
RunCmds
=
[]
detsimalg
.
AnaElems
=
[
"
Edm4hepWriterAnaElemTool
"
]
detsimalg
.
RootDetElem
=
"
WorldDetElemTool
"
example_dettool
=
AnExampleDetElemTool
(
"
AnExampleDetElemTool
"
)
# POD I/O
out
=
PodioOutput
(
"
outputalg
"
)
out
.
filename
=
"
test-SIT.root
"
out
.
outputCommands
=
[
"
keep *
"
]
ApplicationMgr
(
TopAlg
=
[
genalg
,
detsimalg
,
out
],
EvtSel
=
'
NONE
'
,
EvtMax
=
1
,
ExtSvc
=
[
rndmengine
,
rndmgensvc
,
dsvc
,
geosvc
],
)
\ No newline at end of file
Loading