forked from mflechl/ProductionFromNano
-
Notifications
You must be signed in to change notification settings - Fork 0
/
submit_on_lxplus.sh
executable file
·66 lines (58 loc) · 1.97 KB
/
submit_on_lxplus.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
63
64
65
66
#!/bin/bash
export X509_USER_PROXY=${rundir}/proxy/x509_proxy
echo "---------------------"
echo "Grid certificate 1"
voms-proxy-info --all
echo "---------------------"
echo ${samplename}
echo "---------------------"
echo "Good night..."
date
sleep ${sleeping}
echo "Good morning..."
echo "---------------------"
echo "Current dir: `pwd`"
ls -l
echo "---------------------"
scram project -n CMSSW_10_2_10 CMSSW CMSSW_10_2_10
cd CMSSW_10_2_10/src/
eval `scramv1 runtime -sh`
# NanoAOD and tools
git cms-addpkg PhysicsTools/NanoAOD
git cms-addpkg FWCore/MessageLogger
git clone https://github.com/cms-nanoAOD/nanoAOD-tools.git PhysicsTools/NanoAODTools
git clone https://github.com/svfit/ClassicSVfit.git TauAnalysis/ClassicSVfit -b fastMTT_21_06_2018
git clone https://github.com/svfit/SVfitTF.git TauAnalysis/SVfitTF
git clone https://github.com/cms-tau-pog/TauTriggerSFs TauAnalysisTools/TauTriggerSFs -b run2_SFs
git clone https://github.com/CMS-HTT/RecoilCorrections.git HTT-utilities/RecoilCorrections
git clone https://github.com/jandrejk/ProductionFromNano.git WawTools/NanoAODTools -b SM2016_nanoAODv5
git clone https://github.com/cms-analysis/HiggsAnalysis-ZZMatrixElement ZZMatrixElement -b v2.2.0
cd ZZMatrixElement/
bash setup.sh -j 1
cd ..
cat FWCore/MessageLogger/interface/MessageDrop.h | sed s#CMS_THREAD_SAFE##g > FWCore/MessageLogger/interface/MessageDrop.h2
mv FWCore/MessageLogger/interface/MessageDrop.h2 FWCore/MessageLogger/interface/MessageDrop.h
# compile
scram b
cd WawTools/NanoAODTools
cp ${rundir}/configBall.json .
echo "---------------------"
echo "Current dir: `pwd`"
ls -l
echo "---------------------"
./convertNanoParallel.py
if [ $$? -ne 0 ]; then
echo "Problem during running"
exit 1
fi
echo "---------------------"
echo "Current dir: `pwd`"
ls -l
echo "---------------------"
chmod 777 ${channel}*root
export KRB5CCNAME=${rundir}/kerberos/krb5_token_hephy.at
aklog -d ${cell}
python validateAndCopy.py ${channel} ${outdir} ${rundir}
RC=$$?
echo $$RC
exit $$RC