-
Notifications
You must be signed in to change notification settings - Fork 2
/
submitApplication.sh
executable file
·35 lines (25 loc) · 1023 Bytes
/
submitApplication.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
#!/bin/bash
inputfile=${1}
outputDir=${2}
fileName=${3}
vListKey=${4}
scratch=${PWD}
modelFile=${5}
source /cvmfs/cms.cern.ch/cmsset_default.sh
export SCRAM_ARCH=slc7_amd64_gcc820
scramv1 project CMSSW CMSSW_11_1_0_pre7
cd CMSSW_11_1_0_pre7
eval `scramv1 runtime -sh`
cd -
macroDir=${PWD}
export PATH=$PATH:$macroDir
#source /cvmfs/sft.cern.ch/lcg/contrib/gcc/7.3.0/x86_64-centos7-gcc7-opt/setup.sh
#source /cvmfs/sft.cern.ch/lcg/app/releases/ROOT/6.16.00/x86_64-centos7-gcc48-opt/bin/thisroot.sh
#xrdcp -f ${haddFile} root://cmseos.fnal.gov/${outputDir//$NOM/$SHIFT}/${haddFile//${SHIFT}_hadd/} 2>&1
cp /home/wzhang/work/fwljmet_201905/CMSSW_11_1_0_pre7/src/ChargedHiggs/TMVA_XGB/output/${modelFile} .
#xrdcp root://cmseos.fnal.gov//store/user/jluo/ChargeHiggs/models/XGB700iterations_3depths_0.05signal_region_NewVar_test_M1500.model .
python XGBApply.py -l ${vListKey} -f ${inputfile} -o ${fileName} -m ${modelFile}
cp -f ${fileName} ${outputDir}/
#xrdcp -f ${fileName} $outputDir/
rm *.model
rm ${fileName}