-
Notifications
You must be signed in to change notification settings - Fork 0
/
submitFilePlots.pbs.sh
executable file
·39 lines (32 loc) · 1.26 KB
/
submitFilePlots.pbs.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
38
39
#!/bin/bash
##Job settings
#PBS -q default
#PBS -o outFiles/"${jobName}".out
#PBS -e errFiles/"${jobName}".err
#PBS -m a
#PBS -M [email protected]
##Job Configuration
##Job Resources
#PBS -l walltime=0:20:00
#PBS -l nodes=1:ppn=1
#PBS -l pmem=2gb
##Create Work Area
CMSSWVER=CMSSW_7_4_12_patch2
export SCRAM_ARCH=slc6_amd64_gcc491
export OSG_APP=/osg/app
export VO_CMS_SW_DIR=${OSG_APP}/cmssoft/cms
export CMS_PATH=${VO_CMS_SW_DIR}
. ${CMS_PATH}/cmsset_default.sh
cd $TMPDIR
scram list CMSSW
eval `scramv1 project CMSSW ${CMSSWVER}`
cd ${CMSSWVER}/src
eval `scramv1 runtime -sh`
pwd
cp /scratch/osg/dsperka/Run2/HZZ4l/CMSSW_7_4_12_patch2/src/UFHZZPlottingRun2/*.py ./
sed -i "s~PLOTTINGVARIABLE~${variable}~g" ZPlots.py
cat ZPlots.py
python ZPlots.py -l -q -b
ls -l ./*
cp *.pdf ${curDir}/${outDir}/
echo "Job ended at `date`"