-
Notifications
You must be signed in to change notification settings - Fork 494
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·34 lines (25 loc) · 951 Bytes
/
run.sh
File metadata and controls
executable file
·34 lines (25 loc) · 951 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#! /usr/bin/env bash
NRUNS=100
NJOBS=4
NEVENTS=1000
GEANT=TGeant3
shopt -s extglob
for I in $(seq -w 1 $NRUNS); do
DIR="RUN$I"
mkdir $DIR
cp left_trace.macro $DIR/.
cp primary_and_hits.macro $DIR/.
cp secondary_and_hits.macro $DIR/.
cd $DIR
echo " --- starting run $I"
o2-sim -j $NJOBS -n $NEVENTS -e $GEANT -g pythia8pp --skipModules ZDC --configKeyValues "Stack.pruneKine=false" &> o2-sim.log
root -b -q -l "primary_and_hits.macro(\"o2sim_Kine.root\", \"barrel\")" &
root -b -q -l "primary_and_hits.macro(\"o2sim_Kine.root\", \"muon\")" &
root -b -q -l "primary_and_hits.macro(\"o2sim_Kine.root\", \"any\")" &
root -b -q -l "secondary_and_hits.macro(\"o2sim_Kine.root\", \"barrel\")" &
root -b -q -l "secondary_and_hits.macro(\"o2sim_Kine.root\", \"muon\")" &
root -b -q -l "secondary_and_hits.macro(\"o2sim_Kine.root\", \"any\")" &
wait
rm !(*and_hits.*.root)
cd ..
done