Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
physics_benchmarks
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
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
physics_benchmarks
Commits
00eed8e4
Commit
00eed8e4
authored
4 weeks ago
by
Dmitry Kalinkin
Browse files
Options
Downloads
Patches
Plain Diff
semi_coherent: fix to use whitespaces for python
parent
5d8936af
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
benchmarks/Exclusive-Diffraction-Tagging/semi_coherent/Snakefile
+43
-42
43 additions, 42 deletions
...rks/Exclusive-Diffraction-Tagging/semi_coherent/Snakefile
with
43 additions
and
42 deletions
benchmarks/Exclusive-Diffraction-Tagging/semi_coherent/Snakefile
+
43
−
42
View file @
00eed8e4
...
...
@@ -2,66 +2,67 @@ import os
import shutil
rule semi_coherent_filter:
input:
input:
"EPIC/EVGEN/CI/SEMI_COHERENT/eU_0.hepmc"
output:
"benchmarks/Exclusive-Diffraction-Tagging/semi_coherent/filtered.hepmc",
shell:
"""
output:
"benchmarks/Exclusive-Diffraction-Tagging/semi_coherent/filtered.hepmc",
shell:
"""
python3 benchmarks/Exclusive-Diffraction-Tagging/semi_coherent/filter.py {input} {output}
"""
rule semi_coherent_afterburner:
input:
"benchmarks/Exclusive-Diffraction-Tagging/semi_coherent/filtered.hepmc",
output:
"benchmarks/Exclusive-Diffraction-Tagging/semi_coherent/filtered_ab.hepmc.hepmc",
shell:
"""
input:
"benchmarks/Exclusive-Diffraction-Tagging/semi_coherent/filtered.hepmc",
output:
"benchmarks/Exclusive-Diffraction-Tagging/semi_coherent/filtered_ab.hepmc.hepmc",
shell:
"""
abconv {input} -p 2 --output benchmarks/Exclusive-Diffraction-Tagging/semi_coherent/filtered_ab.hepmc
"""
rule semi_coherent_sim:
input:
hepmcfile="benchmarks/Exclusive-Diffraction-Tagging/semi_coherent/filtered_ab.hepmc.hepmc",
warmup="warmup/{DETECTOR_CONFIG}.edm4hep.root",
output:
"sim_output/semi_coherent/{DETECTOR_CONFIG}_semi_coherent.edm4hep.root",
log:
"sim_output/semi_coherent/{DETECTOR_CONFIG}_semi_coherent.edm4hep.root.log",
params:
num_events=1000,
shell:
"""
input:
hepmcfile="benchmarks/Exclusive-Diffraction-Tagging/semi_coherent/filtered_ab.hepmc.hepmc",
warmup="warmup/{DETECTOR_CONFIG}.edm4hep.root",
output:
"sim_output/semi_coherent/{DETECTOR_CONFIG}_semi_coherent.edm4hep.root",
log:
"sim_output/semi_coherent/{DETECTOR_CONFIG}_semi_coherent.edm4hep.root.log",
params:
num_events=1000,
shell:
"""
npsim --compactFile $DETECTOR_PATH/{wildcards.DETECTOR_CONFIG}.xml --numberOfEvents {params.num_events} --inputFiles {input.hepmcfile} --outputFile {output}
"""
rule semi_coherent_reco:
input:
"sim_output/semi_coherent/{DETECTOR_CONFIG}_semi_coherent.edm4hep.root",
output:
"sim_output/semi_coherent/{DETECTOR_CONFIG}_semi_coherent.eicrecon.tree.edm4eic.root",
log:
"sim_output/semi_coherent/{DETECTOR_CONFIG}_semi_coherent.eicrecon.tree.edm4eic.root.log",
shell:
"""
input:
"sim_output/semi_coherent/{DETECTOR_CONFIG}_semi_coherent.edm4hep.root",
output:
"sim_output/semi_coherent/{DETECTOR_CONFIG}_semi_coherent.eicrecon.tree.edm4eic.root",
log:
"sim_output/semi_coherent/{DETECTOR_CONFIG}_semi_coherent.eicrecon.tree.edm4eic.root.log",
shell:
"""
DETECTOR_CONFIG={wildcards.DETECTOR_CONFIG} eicrecon -Ppodio:output_collections=HcalFarForwardZDCRawHits,HcalFarForwardZDCRecHits,HcalFarForwardZDCClusters,EcalFarForwardZDCRawHits,EcalFarForwardZDCRecHits,EcalFarForwardZDCClusters,MCParticles {input}
mv podio_output.root {output}
"""
rule semi_coherent_analysis:
input:
expand("sim_output/semi_coherent/{{DETECTOR_CONFIG}}_semi_coherent.eicrecon.tree.edm4eic.root"),
scripts="benchmarks/Exclusive-Diffraction-Tagging/semi_coherent/analysis/analysis.py",
output:
"results/{DETECTOR_CONFIG}/semi_coherent/plots.pdf",
shell:
"""
input:
expand("sim_output/semi_coherent/{{DETECTOR_CONFIG}}_semi_coherent.eicrecon.tree.edm4eic.root"),
scripts="benchmarks/Exclusive-Diffraction-Tagging/semi_coherent/analysis/analysis.py",
output:
"results/{DETECTOR_CONFIG}/semi_coherent/plots.pdf",
shell:
"""
DETECTOR_CONFIG={wildcards.DETECTOR_CONFIG} \
python {input.scripts}
"""
rule run_all_locally:
input:
"results/" + os.environ["DETECTOR_CONFIG"] + "/semi_coherent/plots.pdf",
message:
"See output in {input[0]}"
input:
"results/" + os.environ["DETECTOR_CONFIG"] + "/semi_coherent/plots.pdf",
message:
"See output in {input[0]}"
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