-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathrun_chain.sh
executable file
·26 lines (21 loc) · 1 KB
/
run_chain.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
#!/bin/bash
maxEvents=1 #70
inputnumber=$1
finalfile="${inputnumber}_windowntup.root"
eosoutdir="/eos/cms/store/cmst3/group/hgcal/CMG_studies/pepr/50_part_sample"
THISDIR=`pwd`
cmsswdir="/afs/cern.ch/work/j/jkiesele/HGCal/pepr_production/hgcalsim/cmssw/CMSSW_11_0_0_patch1/src/"
cd $cmsswdir
eval `scramv1 runtime -sh`
cd $THISDIR
scriptdir="/afs/cern.ch/work/j/jkiesele/HGCal/pepr_production/simple"
cmsRun $scriptdir/GSD_GUN.py seed=$inputnumber outputFile="file:${inputnumber}_GSD.root" maxEvents=$maxEvents
echo "${inputnumber} GSD done"
cmsRun $scriptdir/RECO.py inputFiles="file://${inputnumber}_GSD.root" outputFile="file:${inputnumber}_RECO.root" outputFileDQM="file:${inputnumber}_DQM.root"
rm -f "${inputnumber}_GSD.root" "${inputnumber}_DQM.root"
echo "${inputnumber} RECO done"
cmsRun $scriptdir/windowNTuple_cfg.py inputFiles="file://${inputnumber}_RECO.root" outputFile="file:${finalfile}"
rm -f "${inputnumber}_RECO.root"
echo "${inputnumber} window done"
eoscp $finalfile $eosoutdir/$finalfile
rm -f *.root