-
Notifications
You must be signed in to change notification settings - Fork 5
/
sub_condor.csh
51 lines (46 loc) · 1.48 KB
/
sub_condor.csh
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/tcsh
### Replace the following lines according to your setup.
### The pps-dilepton-analysis dir contains the create_table.py script and select_events.py module as in the repository:
### git clone https://github.com/antoniovilela/pps-dilepton-analysis-notebook.git pps-dilepton-analysis
source /afs/cern.ch/work/a/antoniov/env/uproot4/bin/activate.csh
set EXEC=/eos/home-a/antoniov/SWAN_projects/pps-dilepton-analysis
set OUTPUT=/eos/home-a/antoniov/SWAN_projects/pps-dilepton-analysis/output
###
set file=$1
set label=$2
set option1="$3"
set option2="$4"
set option3="$5"
set option4="$6"
set option5="$7"
set option6="$8"
set option7="$9"
set option8="$10"
set option9="$11"
set option10="$12"
echo "file: "$file
echo "label: "$label
echo "option: "$option1
echo "option: "$option2
echo "option: "$option3
echo "option: "$option4
echo "option: "$option5
echo "option: "$option6
echo "option: "$option7
echo "option: "$option8
echo "option: "$option9
echo "option: "$option10
echo $EXEC
echo $OUTPUT
if ( ! $?PYTHONPATH ) then
setenv PYTHONPATH ${EXEC}
else
setenv PYTHONPATH ${PYTHONPATH}:${EXEC}
endif
echo PYTHONPATH set to $PYTHONPATH
env
echo $PWD
echo 'Running...'
echo python $EXEC/create_table.py --files=$file --label=$label $option1 $option2 $option3 $option4 $option5 $option6 $option7 $option8 $option9 $option10
python $EXEC/create_table.py --files=$file --label=$label $option1 $option2 $option3 $option4 $option5 $option6 $option7 $option8 $option9 $option10
cp *.h5 $OUTPUT