Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
jodafons committed Oct 19, 2023
1 parent c44e251 commit de012df
Show file tree
Hide file tree
Showing 8 changed files with 111 additions and 410 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests/test_gen_jets.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
gen_jets.py --nov 10 -o test_jets.EVT.root
gen_jets.py --nov 2 -o jets.EVT.root
2 changes: 1 addition & 1 deletion .github/workflows/tests/test_gen_minbias.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
gen_minbias.py --nov 1 --pileupAvg 10 --nov 10 -o test_mb.EVT.root
gen_minbias.py --nov 1 --pileupAvg 1 -o mb.EVT.root
2 changes: 1 addition & 1 deletion .github/workflows/tests/test_gen_zee.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
gen_zee.py --nov 10 -o test_zee.EVT.root
gen_zee.py --nov 2 -o Zee.EVT.root
60 changes: 60 additions & 0 deletions .github/workflows/tests/test_local.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
#!/bin/bash
set -e

workarea=$1
place=$pwd

mkdir -p $workarea
cd $workarea

# stage 1
if [ ! -f "stage_1.done" ]; then
gen_zee.py --nov 2 -o Zee.EVT.root
touch stage_1.done
fi

# stage 2
if [ ! -f "stage_2.done" ]; then
gen_jets.py --nov 2 -o jets.EVT.root
touch stage_2.done
fi

# stage 3
if [ ! -f "stage_3.done" ]; then
gen_minbias.py --nov 1 --pileupAvg 1 -o mb.EVT.root
touch stage_3.done
fi

# stage 4
if [ ! -f "stage_4.done" ]; then
simu_trf.py -i Zee.EVT.root -o Zee.HIT.root -nt 2
touch stage_4.done
fi

# stage 5
if [ ! -f "stage_5.done" ]; then
simu_trf.py -i mb.EVT.root -o mb.HIT.root -nt 2
touch stage_5.done
fi

# stage 6
if [ ! -f "stage_6.done" ]; then
merge_trf.py -i Zee.HIT.root -p mb.HIT.root -o Zee.merged.HIT.root
touch stage_6.done
fi

# stage 7
if [ ! -f "stage_7.done" ]; then
digit_trf.py -i Zee.HIT.root -o Zee.ESD.root
touch stage_7.done
fi

# stage 8
if [ ! -f "stage_8.done" ]; then
reco_trf.py -i Zee.ESD.root -o Zee.AOD.root
touch stage_8.done
fi

cd $place


6 changes: 2 additions & 4 deletions .github/workflows/tests/test_simu_trf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@



CPU_N=$(grep -c ^processor /proc/cpuinfo)

# main event simulation command
simu_trf.py -i Zee.EVT.root -o Zee.HIT.root -nt $CPU_N
simu_trf.py -i Zee.EVT.root -o Zee.HIT.root -nt 2

# minimum bias event simulation
simu_trf.py -i mb.EVT.root -o mb.HIT.root -nt $CPU_N
simu_trf.py -i mb.EVT.root -o mb.HIT.root -nt 2

Loading

0 comments on commit de012df

Please sign in to comment.