-
Notifications
You must be signed in to change notification settings - Fork 2
/
submitFile.pbs.sh
executable file
·50 lines (36 loc) · 1.55 KB
/
submitFile.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
40
41
42
43
44
45
46
47
48
49
#!/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=02:00:00
#PBS -l nodes=1:ppn=1
#PBS -l pmem=8gb
##Create Work Area
CMSSWVER=CMSSW_4_4_5
export SCRAM_ARCH=slc5_amd64_gcc434
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
eval `scramv1 project CMSSW ${CMSSWVER}`
cd ${CMSSWVER}/
rm -rf ./*
cp -r -d ${curDir}/../${CMSSWVER}/* ./
cd src
eval `scramv1 runtime -sh`
edmPluginRefresh -p ../lib/$SCRAM_ARCH
#MELA
rm -rf Pdfdata
cp -r ${CMSSW_BASE}/src/ZZMatrixElement/MELA/data/Pdfdata ./
cp ${curDir}/${submitDir}/${cfgFile} ./
echo "Job running on `hostname` at `date`"
##execute job
cmsRun ${cfgFile}
cp *.root ${curDir}/${outDir}/
echo "Job ended at `date`"