Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
nptool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
np
nptool
Commits
08d51812
Commit
08d51812
authored
2 years ago
by
Adrien Matta
Browse files
Options
Downloads
Patches
Plain Diff
* adding project file and Snakemake example to Example4
parent
3192902b
No related branches found
No related tags found
No related merge requests found
Pipeline
#228093
passed
2 years ago
Stage: build-NPLib
Stage: build-NPSimulation
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Examples/Example4/Snakefile
+22
-0
22 additions, 0 deletions
Examples/Example4/Snakefile
Examples/Example4/project.config
+5
-0
5 additions, 0 deletions
Examples/Example4/project.config
with
27 additions
and
0 deletions
Examples/Example4/Snakefile
0 → 100644
+
22
−
0
View file @
08d51812
# create a list of n indices, increase if more core avalaible
job_list=[]
for n in range(10):
job_list.append(str(n))
rule trigger:
input:
expand("root/analysis/Example4_{id}.root",id=job_list)
rule simulation:
output:
"root/simulation/Example4_{id}.root"
shell:
"npsimulation -D Example4.detector -E Example4.reaction -O Example4_{wildcards.id} -B run.mac --random-seed {wildcards.id}"
rule analysis:
output:
"root/analysis/Example4_{id}.root"
input:
"root/simulation/Example4_{id}.root"
shell:
"npanalysis -T SimulatedTree root/simulation/Example4_{wildcards.id}.root -O Example4_{wildcards.id}"
This diff is collapsed.
Click to expand it.
Examples/Example4/project.config
0 → 100644
+
5
−
0
View file @
08d51812
Project
FDC2
AnalysisOutput
= ./
root
/
analysis
SimulationOutput
= ./
root
/
simulation
EnergyLoss
= ./
EnergyLossTable
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