Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
reconstruction_benchmarks
Manage
Activity
Members
Labels
Plan
Issues
22
Issue boards
Milestones
Wiki
Code
Merge requests
21
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container 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
EIC
benchmarks
reconstruction_benchmarks
Merge requests
!188
start work on DummyFF benchmark
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
start work on DummyFF benchmark
add_ff
into
master
Overview
0
Commits
3
Pipelines
0
Changes
6
Open
Sylvester Joosten
requested to merge
add_ff
into
master
3 years ago
Overview
0
Commits
3
Pipelines
0
Changes
6
Expand
👍
0
👎
0
Merge request reports
Compare
master
version 2
914ea951
3 years ago
version 1
12c4a990
3 years ago
master (base)
and
latest version
latest version
2478a674
3 commits,
3 years ago
version 2
914ea951
2 commits,
3 years ago
version 1
12c4a990
1 commit,
3 years ago
6 files
+
463
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
6
Search (e.g. *.vue) (Ctrl+P)
benchmarks/far_forward/options/dummy_ff.py
0 → 100644
+
58
−
0
Options
from
Gaudi.Configuration
import
*
from
Configurables
import
ApplicationMgr
,
EICDataSvc
,
PodioOutput
,
GeoSvc
from
GaudiKernel
import
SystemOfUnits
as
units
detector_name
=
"
athena
"
if
"
JUGGLER_DETECTOR
"
in
os
.
environ
:
detector_name
=
str
(
os
.
environ
[
"
JUGGLER_DETECTOR
"
])
detector_path
=
""
if
"
DETECTOR_PATH
"
in
os
.
environ
:
detector_path
=
str
(
os
.
environ
[
"
DETECTOR_PATH
"
])
# todo add checks
input_sim_file
=
str
(
os
.
environ
[
"
JUGGLER_SIM_FILE
"
])
output_rec_file
=
str
(
os
.
environ
[
"
JUGGLER_REC_FILE
"
])
n_events
=
str
(
os
.
environ
[
"
JUGGLER_N_EVENTS
"
])
podioevent
=
EICDataSvc
(
"
EventDataSvc
"
,
inputs
=
[
input_sim_file
],
OutputLevel
=
WARNING
)
from
Configurables
import
PodioInput
from
Configurables
import
Jug__Base__InputCopier_dd4pod__Geant4ParticleCollection_dd4pod__Geant4ParticleCollection_
as
MCCopier
from
Configurables
import
Jug__Reco__DummyFarForwardParticles
as
DummyFFRec
algorithms
=
[
]
podioinput
=
PodioInput
(
"
PodioReader
"
,
collections
=
[
"
mcparticles
"
])
#, OutputLevel=DEBUG)
algorithms
.
append
(
podioinput
)
## copiers to get around input --> output copy bug. Note the "2" appended to the output collection.
copier
=
MCCopier
(
"
MCCopier
"
,
inputCollection
=
"
mcparticles
"
,
outputCollection
=
"
mcparticles2
"
)
algorithms
.
append
(
copier
)
ff_rec
=
DummyFFRec
(
"
DummyFFRec
"
,
inputMCParticles
=
"
mcparticles
"
,
outputParticles
=
"
ReconstructedParticles
"
,
OutputLevel
=
DEBUG
)
algorithms
.
append
(
ff_rec
)
out
=
PodioOutput
(
"
out
"
,
filename
=
output_rec_file
)
out
.
outputCommands
=
[
"
keep *
"
,
"
drop mcparticles
"
]
algorithms
.
append
(
out
)
ApplicationMgr
(
TopAlg
=
algorithms
,
EvtSel
=
'
NONE
'
,
EvtMax
=
n_events
,
ExtSvc
=
[
podioevent
],
OutputLevel
=
WARNING
)
Loading