-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrunAll_TopMC.sh
executable file
·53 lines (48 loc) · 1.64 KB
/
runAll_TopMC.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
#!/bin/bash
echo "Setting up environment..."
source /nfs/fanae/root_releases/root.5.34.13.slc5/bin/thisroot.sh
source /nfs/fanae/PAF_releases/PAF_devel/PAF_setup.sh
cd /nfs/fanae/user/sscruz/ChargeMiss/
##SEQ PWD=`pwd`
##SEQ mkdir -p jobs
##SEQ
##SEQ echo "Sent multiple sequential jobs..."
##SEQ SAMPLES="TTGJets TTWJets TTZJets TTWWJets WWGJets WWWJets WWZJets WZZJets ZZZJets DYJets_Madgraph Wbb_Madgraph TWDilep TbarWDilep WgammaToLNuG ZgammaToLLG WWTo2L2Nu_Madgraph WZ ZZ"
##SEQ
##SEQ echo "Sending Dibosons, Single Top, Single Boson, TTV and VVV ..."
##SEQ for SAMPLE in $SAMPLES
##SEQ do
##SEQ echo "Preparing to launch $sample... "
##SEQ JOBFILE="jobs/$SAMPLE.sh"
##SEQ cat > $JOBFILE <<EOF
##SEQ #!/bin/bash
##SEQ #PBS -e $PWD/jobs/$SAMPLE.err
##SEQ #PBS -o $PWD/jobs/$SAMPLE.log
##SEQ echo "Setting the environment for ROOT..."
##SEQ source /nfs/fanae/root_releases/root.5.34.13.slc5/bin/thisroot.sh
##SEQ echo "+ ROOTSYS = $ROOTSYS"
##SEQ
##SEQ echo "Setting the environment for PAF..."
##SEQ source /nfs/fanae/PAF_releases/PAF_devel/PAF_setup.sh
##SEQ echo "+ PAFPATH = $PAFPATH"
##SEQ
##SEQ echo "Moving to $PWD..."
##SEQ cd $PWD
##SEQ echo -n "+ "
##SEQ pwd
##SEQ
##SEQ root -l -b -q "RunTree_ReReco.C(\"${SAMPLE}\", 1, true, false)";
##SEQ
##SEQ EOF
##SEQ chmod u+x $JOBFILE
##SEQ echo "Sending $SAMPLE"
##SEQ qsub $JOBFILE
##SEQ sleep 10
##SEQ done
echo "Now start PoD..."
source /opt/PoD/PoD_env.sh
resetpaf -a
root -l -b -q RunTree_ReReco.C\(\"DY_CSA14\",60\)
root -l -b -q RunTree_ReReco.C\(\"ElGun_CSA14\",7\)
root -l -b -q RunTree_ReReco.C\(\"DYJets_Madgraph\",15\)
root -l -b -q RunTree_ReReco.C\(\"ZJets_Madgraph\",60\)