-
Notifications
You must be signed in to change notification settings - Fork 0
/
submit_plot.sh
executable file
·37 lines (36 loc) · 1.01 KB
/
submit_plot.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
35
36
37
#!/bin/bash
source /afs/cern.ch/project/eos/installation/cms/etc/setup.sh
source /afs/cern.ch/sw/lcg/contrib/gcc/4.6/x86_64-slc5-gcc46-opt/setup.sh
source /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc46-dbg/root/bin/thisroot.sh
export PATH=/afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc46-dbg/root/lib/:$PATH
export LD_LIBRARY_PATH=/afs/cern.ch/sw/lcg/contrib/gcc/4.6/x86_64-slc5-gcc46-opt/lib64:${LD_LIBRARY_PATH}
# export PATH=$(pwd):$PATH
DIRECTORY='/afs/cern.ch/work/g/gauzinge/public/Analysis'
cd $DIRECTORY
if [[ $# -ne 0 ]];
then
echo 'Scanning for Config Files';
counter=0;
for i in $*;
do
echo $i;
((counter++));
done
echo 'There are '$counter 'Config Files to be processed';
echo 'Submitting plotting!'
for i in $*;
do
echo $DIRECTORY'/plot' $i ;
$DIRECTORY/plot $i;
done
for i in $*;
do
echo $i;
done
echo 'Plots created!';
else
echo 'ERROR: no Configfilenames provided!';
echo 'Syntax ' $0 ' Configfilename (including Wildchars!)';
echo 'Cleaning Matchfiles'
rm -rf $DIRECTORY/Matchfiles/*
fi