-
Notifications
You must be signed in to change notification settings - Fork 0
/
submitGENSIM.pbs.sh
executable file
·62 lines (49 loc) · 1.82 KB
/
submitGENSIM.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
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/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=08:00:00
#PBS -l nodes=1:ppn=1
#PBS -l pmem=8gb
##Create Work Area
CMSSWVER=CMSSW_7_4_5
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}/
#rm -rf lib/ src/ config/ python/
rm -rf ./*
cp -r -d ${curDir}/../${CMSSWVER}/* ./
cd src
rm ./*.DAT
rm ./*.dat
rm ./br.sm1
rm ./br.sm2
rm ./*.root
eval `scramv1 runtime -sh`
#eval `scramv1 setup mcfm >& tmp.out`
edmPluginRefresh -p ../lib/$SCRAM_ARCH
#fix mcfm issue
rm -rf Pdfdata
cp -r ${CMSSW_BASE}/src/ZZMatrixElement/MELA/data/Pdfdata ./
MCFM_LIBS_PATH=/scratch/osg/dsperka/Run2/HZZ4l/CMSSW_7_4_5/src/ZZMatrixElement/MELA/data/slc6_amd64_gcc491/
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MCFM_LIBS_PATH}
echo ${LD_LIBRARY_PATH}
export X509_USER_PROXY=/scratch/osg/dsperka/x509up_u130024
cp ${curDir}/${outDir}/cfg/${cfgFile} ./UFHZZAnalysisRun2/UFHZZ4LAna/python/
echo "Job running on `hostname` at `date`"
##execute job
cmsRun ./UFHZZAnalysisRun2/UFHZZ4LAna/python/${cfgFile}
ls -l ./*
cp *.root ${curDir}/${outDir}/
echo "Job ended at `date`"