Skip to content

Commit

Permalink
workflow/REANA: add PFNano Production final (#76)
Browse files Browse the repository at this point in the history
* workflows-REANA: update README

* workflows-Argo: add examples

* workflow/Argo: Add submit example

* Update main 17/07/2023 (#74)

* workflows-REANA: update README (#70)

Co-authored-by: Xavier Tintin <[email protected]>

* workflows-Argo: add examples (#71)

* workflows-REANA: update README

* workflows-Argo: add examples

---------

Co-authored-by: Xavier Tintin <[email protected]>

* workflow/Argo: Add submit file example for odw2023 (#73)

* workflows-REANA: update README

* workflows-Argo: add examples

* workflow/Argo: Add submit example

---------

Co-authored-by: Xavier Tintin <[email protected]>

---------

Co-authored-by: Xavier Tintin <[email protected]>

* Commit message

---------

Co-authored-by: Xavier Tintin <[email protected]>
  • Loading branch information
xaviertintin and Xavier Tintin authored Jul 17, 2023
1 parent 411b395 commit b5ed7fe
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 19 deletions.
Binary file added workflows/REANA/PFNanoProd/.DS_Store
Binary file not shown.
3 changes: 0 additions & 3 deletions workflows/REANA/PFNanoProd/codeRun/pf_production.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ set -e
if [ $runas = github ]; then
sudo chown $USER /mnt/vol
ls -l /mnt/vol
# echo At the start SITECONFIG_PATH: $SITECONFIG_PATH
# export SITECONFIG_PATH=/mnt/vol/production/pfnano
# cp -r /mnt/vol cat-hackathon
fi

if [ $runas = reana ]; then
Expand Down
10 changes: 10 additions & 0 deletions workflows/REANA/PFNanoProd/codeRun/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# cd /home/cmsusr
echo "Setting up ${CMSSW_VERSION}"
ls ${CMS_INSTALL_DIR}
source ${CMS_INSTALL_DIR}/cmsset_default.sh
scramv1 project CMSSW ${CMSSW_VERSION}
cd ${CMSSW_VERSION}/src
eval `scramv1 runtime -sh`
echo "CMSSW should now be available."
sh $REANA_WORKSPACE/codeRun/pf_production.sh reana
cp output.root $REANA_WORKSPACE/results/production_output/
Binary file not shown.
22 changes: 6 additions & 16 deletions workflows/REANA/PFNanoProd/reana.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,20 @@ version: 0.6.0
inputs:
directories:
- data
# - code
files:
- codeRun/pf_production.sh
- codeRun
parameters:
pf_production: codeRun/pf_production.sh
working_dir: /home/cmsusr
options:
CACHE: off
workflow:
type: serial
specification:
steps:
# - name: PFCad-Production
# environment: "gitlab-registry.cern.ch/cms-cloud/cmssw-docker/cmssw_10_6_30-slc7_amd64_gcc700"
# commands:
# - mkdir -p results/production_output/
# - cd ${working_dir}
# - echo ls
# - ls
# - echo production
# - sh $pf_production reana
# - cp output.root results/production_output/
- name: PFCad-Production
environment: "gitlab-registry.cern.ch/cms-cloud/cmssw-docker/cmssw_10_6_30-slc7_amd64_gcc700"
commands:
- mkdir -p results/production_output/
- sh codeRun/run.sh
- name: coffea-plot
environment: "coffeateam/coffea-base:latest"
commands:
Expand All @@ -40,7 +32,5 @@ workflow:
- python rdf_plot.py
- mv *.png results/rdf_output/
outputs:
files:
- results/production_output/output.root
directories:
- results
1 change: 1 addition & 0 deletions workflows/REANA/PFNanoProd/results/coffea_output/PF_n.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[826, 747, 1255, 1116, 741, 930, 1368, 1462, 906, 1071]
Binary file not shown.

0 comments on commit b5ed7fe

Please sign in to comment.