-
Notifications
You must be signed in to change notification settings - Fork 1
/
CommandLineHelper.txt
300 lines (208 loc) · 13.5 KB
/
CommandLineHelper.txt
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
Data:
-- Default pp
-- R=0.2 pp
-- R=0.6 pp
-- HC50 pp
-- MIP pp
qRunPp12.csh
Add by hand
hadd -f Results/ForPaper_Pp12_JP2_NoEff_NoBgSub.root Results/Pieces/ForPaper_Pp12_JP2_NoEff_NoBgSub_sum*
hadd -f Results/R0.6_ForPaper_Pp12_JP2_NoEff_NoBgSub.root Results/Pieces/R0.6_ForPaper_Pp12_JP2_NoEff_NoBgSub_sum*
hadd -f Results/ForPaper_Pp12_JP2_HC50_NoEff_NoBgSub.root Results/Pieces/ForPaper_Pp12_JP2_HC50_NoEff_NoBgSub_sum*
hadd -f Results/R0.2_ForPaper_Pp12_JP2_MIP_NoEff_NoBgSub.root Results/Pieces/R0.2_ForPaper_Pp12_JP2_MIP_NoEff_NoBgSub_sum*
hadd -f Results/R0.2_ForPaper_Pp12_JP2_HC50_NoEff_NoBgSub.root Results/Pieces/R0.2_ForPaper_Pp12_JP2_HC50_NoEff_NoBgSub_sum*
hadd -f Results/R0.6_ForPaper_Pp12_JP2_MIP_NoEff_NoBgSub.root Results/Pieces/R0.6_ForPaper_Pp12_JP2_MIP_NoEff_NoBgSub_sum*
hadd -f Results/R0.6_ForPaper_Pp12_JP2_HC50_NoEff_NoBgSub.root Results/Pieces/R0.6_ForPaper_Pp12_JP2_HC50_NoEff_NoBgSub_sum*
etc.
Prep for unfolding
root -l macros/PrepUnfolding.cxx+'("Results/ForPaper_Pp12_JP2_NoEff_NoBgSub.root")'
root -l macros/PrepUnfolding.cxx+'("Results/R0.6_ForPaper_Pp12_JP2_NoEff_NoBgSub.root")'
root -l -b -q macros/PrepUnfolding.cxx+'("Results/R0.2_ForPaper_Pp12_JP2_NoEff_NoBgSub.root")'
root -l -b -q macros/PrepUnfolding.cxx+'("Results/ForPaper_Pp12_JP2_MIP_NoEff_NoBgSub.root")'
root -l -b -q macros/PrepUnfolding.cxx+'("Results/ForPaper_Pp12_JP2_HC50_NoEff_NoBgSub.root")'
root -l -b -q macros/PrepUnfolding.cxx+'("Results/R0.2_ForPaper_Pp12_JP2_MIP_NoEff_NoBgSub.root")'
root -l -b -q macros/PrepUnfolding.cxx+'("Results/R0.2_ForPaper_Pp12_JP2_HC50_NoEff_NoBgSub.root")'
root -l -b -q macros/PrepUnfolding.cxx+'("Results/R0.6_ForPaper_Pp12_JP2_MIP_NoEff_NoBgSub.root")'
root -l -b -q macros/PrepUnfolding.cxx+'("Results/R0.6_ForPaper_Pp12_JP2_HC50_NoEff_NoBgSub.root")'
Systematic
-- Default Geant
-- R=0.2 Geant
-- R=0.6 Geant
-- HC50 Geant
-- MIP Geant
qRunSystematicGeant12.csh
check via
( for log in `grep -L Done logs/*SystGeant12_NoEff_NoBg_JP2*out` ; do grep $log Rerun_*txt; done; ) |cut -f1 -d" " --complement
( for log in `grep -L Done logs/*SystGeant12_*out` ; do grep $log Rerun_*txt; done; ) |cut -f1 -d" " --complement
Rerun_SystGeant12_NoEff_NoBg_JP2.txt
Rerun_R0.2_SystGeant12_NoEff_NoBg_JP2.txt
Rerun_R0.6_SystGeant12_NoEff_NoBg_JP2.txt
Rerun_SystGeant12_HC50_NoEff_NoBg_JP2.txt
Rerun_SystGeant12_MIP_NoEff_NoBg_JP2.txt
and you should have 600 + 120*4 = 1080 of these outfiles
grep -l Done logs/*SystGeant12*|wc -l
grep -l Done logs/*SystGeant12_NoEff_NoBg_JP2*out|grep -v R0.2|grep -v r0.6|wc -l
then add via
qSystGeantAdder.csh
GeantMc
-- Default GeantMc
-- R=0.2 GeantMc
-- R=0.6 GeantMc
qRunGeant12.csh
and you should have 120*3 = 360 of these outfiles
grep -l Done logs/*McGeant12*out | wc -l
then add via
qGeant12Adder.csh
## ----- Now match truth and detector in run12
#### With systematics
for i in Results/*[01]_R0.2_SystGeant12_NoEff_NoBg_JP2.root ; do
root -l -b -q macros/MatchGeantToPythia.cxx+\(\"$i\",\"Results/McGeant12_NoEff_NoBg_all.root\"\)
done
## MIP, HC50
root -l -b -q macros/MatchGeantToPythia.cxx+'("Results/AEff0_PtSmear0_ATow0_SystGeant12_MIP_NoEff_NoBg_JP2.root","Results/McGeant12_NoEff_NoBg_all.root")'
root -l -b -q macros/MatchGeantToPythia.cxx+'("Results/AEff0_PtSmear0_ATow0_SystGeant12_HC50_NoEff_NoBg_JP2.root","Results/McGeant12_NoEff_NoBg_all.root")'
## different R
root -l -b -q macros/MatchGeantToPythia.cxx+'("Results/AEff0_PtSmear0_ATow0_R0.2_SystGeant12_NoEff_NoBg_JP2.root","Results/R0.2_McGeant12_NoEff_NoBg_all.root")'
root -l -b -q macros/MatchGeantToPythia.cxx+'("Results/AEff0_PtSmear0_ATow0_R0.6_SystGeant12_NoEff_NoBg_JP2.root","Results/R0.6_McGeant12_NoEff_NoBg_all.root")'
root -l -b -q macros/MatchGeantToPythia.cxx+'("Results/AEff0_PtSmear0_ATow0_R0.2_SystGeant12_MIP_NoEff_NoBg_JP2.root","Results/R0.2_McGeant12_NoEff_NoBg_all.root")'
root -l -b -q macros/MatchGeantToPythia.cxx+'("Results/AEff0_PtSmear0_ATow0_R0.2_SystGeant12_HC50_NoEff_NoBg_JP2.root","Results/R0.2_McGeant12_NoEff_NoBg_all.root")'
root -l -b -q macros/MatchGeantToPythia.cxx+'("Results/AEff0_PtSmear0_ATow0_R0.6_SystGeant12_MIP_NoEff_NoBg_JP2.root","Results/R0.6_McGeant12_NoEff_NoBg_all.root")'
root -l -b -q macros/MatchGeantToPythia.cxx+'("Results/AEff0_PtSmear0_ATow0_R0.6_SystGeant12_HC50_NoEff_NoBg_JP2.root","Results/R0.6_McGeant12_NoEff_NoBg_all.root")'
for i in Results/*[01]_R0.2_SystGeant12_NoEff_NoBg_JP2.root ; do
root -l -b -q macros/MatchGeantToPythia.cxx+\(\"$i\",\"Results/R0.2_McGeant12_NoEff_NoBg_all.root\"\)
done
for i in Results/*[01]_R0.6_SystGeant12_NoEff_NoBg_JP2.root ; do
root -l -b -q macros/MatchGeantToPythia.cxx+\(\"$i\",\"Results/R0.6_McGeant12_NoEff_NoBg_all.root\"\)
done
#### ----- And unfold in run 12
## With systematics
for i in Results/AEff*[01]_SystGeant12_NoEff_NoBg_JP2_WithMisses*.root ; do
root -l -b -q macros/DoUnfolding.cxx+\(\"$i\",\"Results/ForUnfolding_ForPaper_Pp12_JP2_NoEff_NoBgSub.root\"\)
done
## MIP, HC50
root -l -b -q macros/DoUnfolding.cxx+'("Results/AEff0_PtSmear0_ATow0_SystGeant12_MIP_NoEff_NoBg_JP2_WithMisses_WithFakes_TrainedWith_McGeant12_NoEff_NoBg_all.root","Results/ForUnfolding_ForPaper_Pp12_JP2_MIP_NoEff_NoBgSub.root")'
root -l -b -q macros/DoUnfolding.cxx+'("Results/AEff0_PtSmear0_ATow0_SystGeant12_HC50_NoEff_NoBg_JP2_WithMisses_WithFakes_TrainedWith_McGeant12_NoEff_NoBg_all.root","Results/ForUnfolding_ForPaper_Pp12_JP2_HC50_NoEff_NoBgSub.root")'
## different R
root -l -b -q macros/DoUnfolding.cxx+'("Results/AEff0_PtSmear0_ATow0_R0.2_SystGeant12_NoEff_NoBg_JP2_WithMisses_WithFakes_TrainedWith_R0.2_McGeant12_NoEff_NoBg_all.root","Results/ForUnfolding_R0.2_ForPaper_Pp12_JP2_NoEff_NoBgSub.root")'
root -l -b -q macros/DoUnfolding.cxx+'("Results/AEff0_PtSmear0_ATow0_R0.6_SystGeant12_NoEff_NoBg_JP2_WithMisses_WithFakes_TrainedWith_R0.6_McGeant12_NoEff_NoBg_all.root","Results/ForUnfolding_R0.6_ForPaper_Pp12_JP2_NoEff_NoBgSub.root")'
root -l -b -q macros/DoUnfolding.cxx+'("Results/AEff0_PtSmear0_ATow0_R0.2_SystGeant12_MIP_NoEff_NoBg_JP2_WithMisses_WithFakes_TrainedWith_R0.2_McGeant12_NoEff_NoBg_all.root","Results/ForUnfolding_R0.2_ForPaper_Pp12_JP2_MIP_NoEff_NoBgSub.root")'
root -l -b -q macros/DoUnfolding.cxx+'("Results/AEff0_PtSmear0_ATow0_R0.2_SystGeant12_HC50_NoEff_NoBg_JP2_WithMisses_WithFakes_TrainedWith_R0.2_McGeant12_NoEff_NoBg_all.root","Results/ForUnfolding_R0.2_ForPaper_Pp12_JP2_HC50_NoEff_NoBgSub.root")'
root -l -b -q macros/DoUnfolding.cxx+'("Results/AEff0_PtSmear0_ATow0_R0.6_SystGeant12_MIP_NoEff_NoBg_JP2_WithMisses_WithFakes_TrainedWith_R0.6_McGeant12_NoEff_NoBg_all.root","Results/ForUnfolding_R0.6_ForPaper_Pp12_JP2_MIP_NoEff_NoBgSub.root")'
root -l -b -q macros/DoUnfolding.cxx+'("Results/AEff0_PtSmear0_ATow0_R0.6_SystGeant12_HC50_NoEff_NoBg_JP2_WithMisses_WithFakes_TrainedWith_R0.6_McGeant12_NoEff_NoBg_all.root","Results/ForUnfolding_R0.6_ForPaper_Pp12_JP2_HC50_NoEff_NoBgSub.root")'
for i in Results/AEff*[01]_R0.2_SystGeant12_NoEff_NoBg_JP2_WithMisses*.root ; do
root -l -b -q macros/DoUnfolding.cxx+\(\"$i\",\"Results/ForUnfolding_R0.2_ForPaper_Pp12_JP2_NoEff_NoBgSub.root\"\)
done
for i in Results/AEff*[01]_R0.6_SystGeant12_NoEff_NoBg_JP2_WithMisses*.root ; do
root -l -b -q macros/DoUnfolding.cxx+\(\"$i\",\"Results/ForUnfolding_R0.6_ForPaper_Pp12_JP2_NoEff_NoBgSub.root\"\)
done
## You should have 9 Results/Unfolded_* files (5 systematics + 2 HC,MIP + 2 R variations)
## Time to combine systematics
root -l macros/PrepSystematics.cxx
## diagnostics in plots/Unfolded_ForUnfolding_ForPaper_Pp12_JP2_MIP_NoEff_NoBgSub__With_AEff0_PtSmear0_ATow0_SystGeant12_MIP_NoEff_NoBg_JP2_WithMisses_WithFakes_TrainedWith_McGeant12_NoEff_NoBg_all_Everything.pdf
## You can check the individual ingredients in the plots folder
## E - tracking efficiency
## R - tracking resolution
## R - tower scale
## H - hadronic correction (difference to MIP)
## open ~/mnt/grid/ppzg/plots/0.4_Incunfold_*minmax.png
Pythia8
-- Default Pythia
qRunPythia.csh
hadd -f Results/ForPaper_Pythia8_NoEff_NoBgSub.root Results/Pieces/ForPaper_Pythia8_NoEff_NoBgSub*.root
## Bit of a roundabout way of cutting it up
root -l macros/PrepUnfolding.cxx+'("Results/ForPaper_Pythia8_NoEff_NoBgSub.root")'
root -l macros/PrepPurePythia.cxx
root -l macros/PrepUnfolding.cxx+'("Results/R0.2_ForPaper_Pythia8_NoEff_NoBgSub.root")'
root -l macros/PrepUnfolding.cxx+'("Results/R0.6_ForPaper_Pythia8_NoEff_NoBgSub.root")'
root -l macros/PrepUnfolding.cxx+'("Results/ForPaper_Pythia8_NoEff_NoBgSub_NoHadronization.root")'
root -l macros/PrepUnfolding.cxx+'("Results/R0.2_ForPaper_Pythia8_NoEff_NoBgSub_NoHadronization.root")'
root -l macros/PrepUnfolding.cxx+'("Results/R0.6_ForPaper_Pythia8_NoEff_NoBgSub_NoHadronization.root")'
Herwig
qRunHerwig.csh
hadd -f Results/ForPaper_Herwig_NoEff_NoBgSub.root Results/Pieces/ForPaper_Herwig_NoEff_NoBgSub*.root
## Bit of a roundabout way of cutting it up
root -l macros/PrepUnfolding.cxx+'("Results/ForPaper_Herwig_NoEff_NoBgSub.root")'
root -l macros/PrepPurePythia.cxx
hadd -f Results/R0.2_ForPaper_Herwig_NoEff_NoBgSub.root Results/Pieces/R0.2_ForPaper_Herwig_NoEff_NoBgSub*.root
hadd -f Results/R0.6_ForPaper_Herwig_NoEff_NoBgSub.root Results/Pieces/R0.6_ForPaper_Herwig_NoEff_NoBgSub*.root
root -l macros/PrepUnfolding.cxx+'("Results/R0.2_ForPaper_Herwig_NoEff_NoBgSub.root")'
root -l macros/PrepUnfolding.cxx+'("Results/R0.6_ForPaper_Herwig_NoEff_NoBgSub.root")'
hadd -f Results/ForPaper_Herwig_NoEff_NoBgSub_NoHadro.root Results/Pieces/ForPaper_Herwig_NoEff_NoBgSub_NoHadro*.root
hadd -f Results/R0.2_ForPaper_Herwig_NoEff_NoBgSub_NoHadro.root Results/Pieces/R0.2_ForPaper_Herwig_NoEff_NoBgSub_NoHadro*.root
hadd -f Results/R0.6_ForPaper_Herwig_NoEff_NoBgSub_NoHadro.root Results/Pieces/R0.6_ForPaper_Herwig_NoEff_NoBgSub_NoHadro*.root
root -l macros/PrepUnfolding.cxx+'("Results/ForPaper_Herwig_NoEff_NoBgSub_NoHadro.root")'
root -l macros/PrepUnfolding.cxx+'("Results/R0.2_ForPaper_Herwig_NoEff_NoBgSub_NoHadro.root")'
root -l macros/PrepUnfolding.cxx+'("Results/R0.6_ForPaper_Herwig_NoEff_NoBgSub_NoHadro.root")'
Run6 Data:
-- Default Run6
-- MIP Run6
./qRunPp.csh
Should have one each
ok
Prep for unfolding
root -l macros/PrepUnfolding.cxx+'("Results/Recut_Pp_HT54_NoEff_NoBgSub.root")'
root -l macros/PrepUnfolding.cxx+'("Results/Recut_Pp_HT54_MIP_NoEff_NoBgSub.root")'
root -l macros/PrepPurePythia.cxx
Systematic
-- Default Geant
-- MIP Geant
./qRunSystematicGeant.csh
Should have 580
grep -l Done logs/*SystGeant_NoEff_*out |wc -l
ok
Should have 116
grep -l Done logs/*SystGeant_MIP_NoEff_*out |wc -l
ok
Then add via
./qSystGeantAdder.csh
GeantMc
-- Default GeantMc
Should have 116
grep -l Done logs/Recut_McGeant_NoEff_*out |wc -l
ok
Then add via
./qGeantAdder.csh
## ----- Now match truth and detector in run6
#### With systematics
for i in Results/*[01]_SystGeant_NoEff_NoBg_HT54.root ; do
root -l -b -q macros/MatchGeantToPythia.cxx+\(\"$i\",\"Results/Recut_McGeant_NoEff_NoBg_MB.root\"\)
done
for i in Results/*[01]_SystGeant_MIP_NoEff_NoBg_HT54.root ; do
root -l -b -q macros/MatchGeantToPythia.cxx+\(\"$i\",\"Results/Recut_McGeant_NoEff_NoBg_MB.root\"\)
done
#### ----- And unfold in run 6
## With systematics
for i in Results/AEff*[01]_SystGeant_NoEff_NoBg_HT54_WithMisses*.root ; do
root -l -b -q macros/DoUnfolding.cxx+\(\"$i\",\"Results/ForUnfolding_Recut_Pp_HT54_NoEff_NoBgSub.root\"\)
done
root -l -b -q macros/DoUnfolding.cxx+\(\"Results/AEff0_PtSmear0_ATow0_SystGeant_MIP_NoEff_NoBg_HT54_WithMisses_WithFakes_TrainedWith_Recut_McGeant_NoEff_NoBg_MB.root\",\"Results/ForUnfolding_Recut_Pp_HT54_MIP_NoEff_NoBgSub.root\"\)
for i in Results/*SystGeant12_NoEff_NoBg*_JP2.root ; do
root -l -b -q macros/MatchGeantToPythia.cxx+\(\"$i\",\"Results/McGeant12_NoEff_NoBg_all.root\"\)
done
for i in Results/AEff*SystGeant12_NoEff_NoBg_JP2_WithMisses*.root ; do
root -l -b -q macros/DoUnfolding.cxx+\(\"$i\",\"Results/ForUnfolding_ForPaper_Pp12_JP2_NoEff_NoBgSub.root\"\)
done
for i in Results/AEff*SystGeant12_NoEff_NoBg_HT54_JP2_WithMisses*.root ; do
root -l -b -q macros/DoUnfolding.cxx+\(\"$i\",\"Results/ForUnfolding_ForPaper_Pp12_HT54_JP2_NoEff_NoBgSub.root\"\)
done
for i in Results/*SystGeant_NoEff_NoBg_HT54.root ; do
root -l -b -q macros/MatchGeantToPythia.cxx+\(\"$i\",\"Results/Recut_McGeant_NoEff_NoBg_MB.root\"\)
done
for i in Results/*SystGeant_MIP_NoEff_NoBg_HT54.root ; do
root -l -b -q macros/MatchGeantToPythia.cxx+\(\"$i\",\"Results/Recut_McGeant_NoEff_NoBg_MB.root\"\)
done
for i in Results/AEff*SystGeant_NoEff_NoBg_HT54_WithMisses*.root ; do
root -l -b -q macros/DoUnfolding.cxx+\(\"$i\",\"Results/ForUnfolding_Recut_Pp_HT54_NoEff_NoBgSub.root\"\)
done
for i in Results/AEff*SystGeant_MIP_NoEff_NoBg_HT54_WithMisses*.root ; do
root -l -b -q macros/DoUnfolding.cxx+\(\"$i\",\"Results/ForUnfolding_Recut_Pp_HT54_MIP_NoEff_NoBgSub.root\"\)
done
for i in Results/AEff*SystGeant12_NoEff_NoBg_JP2_WithMisses*.root ; do
root -l -b -q macros/DoUnfolding.cxx+\(\"$i\",\"Results/ForUnfolding_ForPaper_Pp12_JP2_NoEff_NoBgSub.root\"\)
done
for i in Results/*SystGeant12_HC50_NoEff_NoBg*_JP2.root ; do
root -l -b -q macros/MatchGeantToPythia.cxx+\(\"$i\",\"Results/McGeant12_NoEff_NoBg_all.root\"\)
done
( for log in `grep -L Done logs/*SystGeant_NoEff_NoBg_HT54*out` ; do grep $log Rerun_SystGeant_NoEff_NoBg_HT54.txt; done; ) |cut -f1 -d" " --complement
( for log in `grep -L Done logs/*SystGeant12_HC50_NoEff*out` ; do grep $log Rerun_SystGeant12_HC50_NoEff_NoBg_JP2.txt; done; ) |cut -f1 -d" " --complement
( for log in `grep -L Done logs/*SystGeant_MIP_NoEff_NoBg_HT54*out` ; do grep $log Rerun_SystGeant_MIP_NoEff_NoBg_HT54.txt; done; ) |cut -f1 -d" " --complement