From 5dd9d15b976d2039850675c58ba030baca5b810e Mon Sep 17 00:00:00 2001 From: "jihee.kim" <jihee.kim@anl.gov> Date: Tue, 6 Oct 2020 21:34:51 -0500 Subject: [PATCH] Created bash script to run simulation to get input file. --- .gitlab-ci.yml | 10 ++++++++++ calorimeters/run_simulation_crystal_pion.sh | 6 ++++++ 2 files changed, 16 insertions(+) create mode 100644 calorimeters/run_simulation_crystal_pion.sh diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 051cd18d..f6101bf1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -200,6 +200,16 @@ deploy_results: script: - echo "deploy results!" +crystal_pion_simulation: + stage: simulate + needs: + - ["get_data"] + tag: + - sodium + script: + - cp topside/topside.xml ./. + - bash calorimeters/run_simulation_crystal_pion.sh + # artifacts: # paths: # - datasets diff --git a/calorimeters/run_simulation_crystal_pion.sh b/calorimeters/run_simulation_crystal_pion.sh new file mode 100644 index 00000000..0d4934ac --- /dev/null +++ b/calorimeters/run_simulation_crystal_pion.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +npsim --runType batch --numberOfEvents 10000 \ + --compactFile ./calorimeters/topside.xml \ + --inputFiles ./data/emcal_pions_upto1GeV_10kevents.hepmc \ + --outputFile ./sim_output/sim_crystal_pion_input.root -- GitLab