Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
detector_benchmarks
Manage
Activity
Members
Labels
Plan
Issues
21
Issue boards
Milestones
Wiki
Code
Merge requests
7
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
detector_benchmarks
Commits
21fca951
Unverified
Commit
21fca951
authored
7 months ago
by
Dmitry Kalinkin
Committed by
GitHub
7 months ago
Browse files
Options
Downloads
Patches
Plain Diff
snakemake.yml: allow using S3 (XRootD is down sometimes) (
#45
)
parent
5b6564ca
No related branches found
No related tags found
No related merge requests found
Pipeline
#100363
canceled with stages
Changes
4
Pipelines
93
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitlab-ci.yml
+1
-0
1 addition, 0 deletions
.gitlab-ci.yml
Snakefile
+20
-0
20 additions, 0 deletions
Snakefile
benchmarks/backgrounds/Snakefile
+3
-2
3 additions, 2 deletions
benchmarks/backgrounds/Snakefile
snakemake.yml
+1
-0
1 addition, 0 deletions
snakemake.yml
with
25 additions
and
2 deletions
.gitlab-ci.yml
+
1
−
0
View file @
21fca951
...
...
@@ -113,6 +113,7 @@ get_data:
needs
:
-
[
"
get_data"
,
"
common:detector"
]
before_script
:
-
mc config host add S3 https://eics3.sdcc.bnl.gov:9000 ${S3_ACCESS_KEY} ${S3_SECRET_KEY}
-
source .local/bin/env.sh
-
ls -lrtha
-
ln -s "${LOCAL_DATA_PATH}/sim_output" sim_output
...
...
This diff is collapsed.
Click to expand it.
Snakefile
+
20
−
0
View file @
21fca951
configfile: "snakemake.yml"
include: "benchmarks/backgrounds/Snakefile"
include: "benchmarks/barrel_ecal/Snakefile"
include: "benchmarks/ecal_gaps/Snakefile"
...
...
@@ -5,11 +7,29 @@ include: "benchmarks/material_scan/Snakefile"
include: "benchmarks/tracking_performances/Snakefile"
include: "benchmarks/zdc_lyso/Snakefile"
use_s3 = config["remote_provider"].lower() == "s3"
use_xrootd = config["remote_provider"].lower() == "xrootd"
def get_remote_path(path):
if use_s3:
return f"s3https://eics3.sdcc.bnl.gov:9000/eictest/{path}"
elif use_xrootd:
return f"root://dtn-eic.jlab.org//work/eic2/{path}"
else:
raise runtime_exception('Unexpected value for config["remote_provider"]: {config["remote_provider"]}')
rule fetch_epic:
output:
filepath="EPIC/{PATH}"
shell: """
xrdcp root://dtn-eic.jlab.org//work/eic2/{output.filepath} {output.filepath}
""" if use_xrootd else """
mc cp S3/eictest/{output.filepath} {output.filepath}
""" if use_s3 else f"""
echo 'Unexpected value for config["remote_provider"]: {config["remote_provider"]}'
exit 1
"""
...
...
This diff is collapsed.
Click to expand it.
benchmarks/backgrounds/Snakefile
+
3
−
2
View file @
21fca951
...
...
@@ -10,7 +10,8 @@ rule backgrounds_sim:
log:
"sim_output/{DETECTOR_CONFIG}/backgrounds/{PATH}.edm4hep.root.log",
params:
N_EVENTS=100
N_EVENTS=100,
hepmc=lambda wildcards: get_remote_path(f"{wildcards.PATH}.hepmc3.tree.root"),
shell:
"""
set -m # monitor mode to prevent lingering processes
...
...
@@ -21,7 +22,7 @@ exec ddsim \
-v WARNING \
--numberOfEvents {params.N_EVENTS} \
--compactFile $DETECTOR_PATH/{wildcards.DETECTOR_CONFIG}.xml \
--inputFiles
root://dtn-eic.jlab.org//work/eic2/{wildcards.PATH}.hepmc3.tree.root
\
--inputFiles
{params.hepmc}
\
--outputFile {output}
"""
...
...
This diff is collapsed.
Click to expand it.
snakemake.yml
0 → 100644
+
1
−
0
View file @
21fca951
remote_provider
:
XRootD
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