From 08d51812b2f09fdccf85a81dc35810be4bcf9c93 Mon Sep 17 00:00:00 2001 From: Adrien Matta <matta@lpccaen.in2p3.fr> Date: Fri, 3 Mar 2023 16:15:55 +0100 Subject: [PATCH] * adding project file and Snakemake example to Example4 --- Examples/Example4/Snakefile | 22 ++++++++++++++++++++++ Examples/Example4/project.config | 5 +++++ 2 files changed, 27 insertions(+) create mode 100644 Examples/Example4/Snakefile create mode 100644 Examples/Example4/project.config diff --git a/Examples/Example4/Snakefile b/Examples/Example4/Snakefile new file mode 100644 index 000000000..d299748ac --- /dev/null +++ b/Examples/Example4/Snakefile @@ -0,0 +1,22 @@ +# 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}" diff --git a/Examples/Example4/project.config b/Examples/Example4/project.config new file mode 100644 index 000000000..5b6e7e603 --- /dev/null +++ b/Examples/Example4/project.config @@ -0,0 +1,5 @@ +Project FDC2 + AnalysisOutput= ./root/analysis + SimulationOutput= ./root/simulation + EnergyLoss= ./EnergyLossTable + -- GitLab