-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubmitMassDependentAnalysis_data.pl
executable file
·130 lines (90 loc) · 4.7 KB
/
submitMassDependentAnalysis_data.pl
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
#!/usr/bin/perl
use Time::Local;
use Getopt::Std;
getopts('p:y:');
if($opt_p) {$prefix = $opt_p;}
else { die "usage: ./submitMassDependentAnalysis.pl -p <prefix> -y <year>";}
if($opt_y) {$year = $opt_y;}
else { die "usage: ./submitMassDependentAnalysis.pl -p <prefix> -y <year>";}
if($year==2012) {
@masses = (120);
for($i=0; $i<($#masses+1); $i++) {
$mass = $masses[$i];
print "-------------------------->\n";
print "SUBMITTING MASS SELECTION: mH = $mass ...\n\n";
open(MASSFILE,">config/higgs/higgsMass.txt");
print MASSFILE "HiggsMass\t$mass\n";
print "submitting double ele...\n";
system("python cmst3_submit_manyfilesperjob.py Collisions8TeV_V14_52X DoubleElectron 10 HiggsApp 8nh $prefix 0 2012");
print "done with double ele. Sleeping 600s to recover.\n";
sleep 600;
print "submitting double mu...\n";
system("python cmst3_submit_manyfilesperjob.py Collisions8TeV_V14_52X DoubleMu 10 HiggsApp 8nh $prefix 0 2012");
print "done with double mu. Sleeping 600s to recover.\n";
sleep 600;
print "submitting mu eg...\n";
system("python cmst3_submit_manyfilesperjob.py Collisions8TeV_V14_52X MuEG 10 HiggsApp 8nh $prefix 0 2012");
print "done with mu eg. Sleeping 600s to recover.\n";
sleep 600;
print "submitting single mu...\n";
system("python cmst3_submit_manyfilesperjob.py Collisions8TeV_V14_52X SingleMu 10 HiggsApp 8nh $prefix 0 2012");
print "done with single mu. Sleeping 600s to recover.\n";
sleep 600;
print "submitting single ele...\n";
system("python cmst3_submit_manyfilesperjob.py Collisions8TeV_V14_52X SingleElectron 10 HiggsApp 8nh $prefix 0 2012");
print "done with single electron. Sleeping 600s to recover.\n";
print "\nDONE\n";
print "<--------------------------";
}
}
if($year==2011) {
@masses = (120);
for($i=0; $i<($#masses+1); $i++) {
$mass = $masses[$i];
print "-------------------------->\n";
print "SUBMITTING MASS SELECTION: mH = $mass ...\n\n";
open(MASSFILE,">config/higgs/higgsMass.txt");
print MASSFILE "HiggsMass\t$mass\n";
print "submitting double ele...\n";
system("python cmst3_submit_manyfilesperjob.py Data7TeVHWW DoubleElectron 10 HiggsApp 8nh $prefix 0");
print "done with double ele. Sleeping 600s to recover.\n";
sleep 600;
print "submitting double mu...\n";
system("python cmst3_submit_manyfilesperjob.py Data7TeVHWW DoubleMu 10 HiggsApp 8nh $prefix 0");
print "done with double mu. Sleeping 600s to recover.\n";
sleep 600;
print "submitting mu eg...\n";
system("python cmst3_submit_manyfilesperjob.py Data7TeVHWW MuEG 10 HiggsApp 8nh $prefix 0");
print "done with mu eg. Sleeping 600s to recover.\n";
sleep 600;
print "submitting single mu...\n";
system("python cmst3_submit_manyfilesperjob.py Data7TeVHWW SingleMu 5 HiggsApp 8nh $prefix 0");
print "done with single mu. Sleeping 600s to recover.\n";
sleep 600;
print "submitting single ele...\n";
system("python cmst3_submit_manyfilesperjob.py Data7TeVHWW SingleElectron 10 HiggsApp 8nh $prefix 0");
print "done with single electron. Sleeping 600s to recover.\n";
sleep 600;
print "submitting double ele...\n";
system("python cmst3_submit_manyfilesperjob.py Data7TeVHWW DoubleElectron_Run2011B 10 HiggsApp 8nh $prefix 0");
print "done with double ele. Sleeping 600s to recover.\n";
sleep 600;
print "submitting double mu...\n";
system("python cmst3_submit_manyfilesperjob.py Data7TeVHWW DoubleMu_Run2011B 10 HiggsApp 8nh $prefix 0");
print "done with double mu. Sleeping 600s to recover.\n";
sleep 600;
print "submitting mu eg...\n";
system("python cmst3_submit_manyfilesperjob.py Data7TeVHWW MuEG_Run2011B 10 HiggsApp 8nh $prefix 0");
print "done with mu eg. Sleeping 600s to recover.\n";
sleep 600;
print "submitting single mu...\n";
system("python cmst3_submit_manyfilesperjob.py Data7TeVHWW SingleMu_Run2011B 5 HiggsApp 8nh $prefix 0");
print "done with single mu. Sleeping 600s to recover.\n";
sleep 600;
print "submitting single ele...\n";
system("python cmst3_submit_manyfilesperjob.py Data7TeVHWW SingleElectron_Run2011B 10 HiggsApp 8nh $prefix 0");
print "done with single electron.\n";
print "\nDONE\n";
print "<--------------------------";
}
}