-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathacts_test.sh
executable file
·35 lines (26 loc) · 1.1 KB
/
acts_test.sh
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
#!/bin/bash
#setup the eos transfer
export EOS_MGM_URL=root://eosuser.cern.ch
source /afs/cern.ch/user/p/pibutti/sw/acts/CI/setup_cvmfs_lcg103.sh
source /afs/cern.ch/user/p/pibutti/sw/acts/build/this_acts.sh
source /afs/cern.ch/user/p/pibutti/sw/acts/build/python/setup.sh
NEVENTS=$1
PILEUP=$2
CLUSTER_ID=$3
PROC_ID=$4
OUTDIR=odd_run_${CLUSTER_ID}_${PROC_ID}
# The random engine generator of acts will create a random number with seed = config.seed + eventNumber.
# I define a seed here so that each process scans through different set of seeds
SEED=$((NEVENTS * PROC_ID))
mkdir $OUTDIR
cd $OUTDIR
#### THE JOB ####
python /afs/cern.ch/user/p/pibutti/sw/acts/Examples/Scripts/Python/jets_chain.py --ttbar --events $NEVENTS --seed $SEED --pileup $PILEUP
cd ..
# for staging out a single file
eos cp -r $OUTDIR /eos/user/p/pibutti/data_acts/
# for staging out a directory
#eos cp -r simulation_output_dir /eos/user/n/name/results/
# for staging out a directory with many files, first tar.gz it, then cp that single file back.
#tar -czf output.tgz simulation_output_dir
#eos cp output.tgz /eos/user/n/name/results/