forked from acarvalh/Limit_codes
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmodels_mgg.rs
272 lines (222 loc) · 11.6 KB
/
models_mgg.rs
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
mgg[100,180];
mgg_bkg_8TeV_slope1[9,-10.0, 20.0];
mgg_bkg_8TeV_slope1_cat0[9,-10.0, 20.0];
mgg_bkg_8TeV_slope1_cat1[9,-10.0, 20.0];
mgg_bkg_8TeV_slope1_cat2[9,-10.0, 20.0];
mgg_bkg_8TeV_slope1_cat3[9,-10.0, 20.0];
mgg_sig_m0_cat0[124.2, 123, 125];
mgg_sig_sigma_cat0[2.0, 1.0, 3.0];
mgg_sig_alpha_cat0[1.0, 0.0, 2.5];
mgg_sig_n_cat0[2.0, 1.0, 5.0];
mgg_sig_gsigma_cat0[1.2, 0.8, 1.6];
mgg_sig_frac_cat0[0.6, 0.4, 1.0];
mgg_sig_m0_cat1[124.2, 123, 125];
mgg_sig_sigma_cat1[2.0, 1.0, 3.0];
mgg_sig_alpha_cat1[1.0, 0.0, 2.5];
mgg_sig_n_cat1[2.0, 1.5, 10];
mgg_sig_gsigma_cat1[1.2, 0.8, 1.6];
mgg_sig_frac_cat1[0.6, 0.4, 1.0];
mgg_sig_m0_cat2[124.2, 123, 125];
mgg_sig_sigma_cat2[2.0, 1.0, 3.0];
mgg_sig_alpha_cat2[1.0, 0.0, 2.5];
mgg_sig_n_cat2[2.0, 1.0, 5.0];
mgg_sig_gsigma_cat2[1.2, 0.8, 1.6];
mgg_sig_frac_cat2[0.6, 0.4, 1.0];
mgg_sig_m0_cat3[124.2, 123, 125];
mgg_sig_sigma_cat3[2.0, 1.0, 3.0];
mgg_sig_alpha_cat3[1.0, 0.0, 2.5];
mgg_sig_n_cat3[2.0, 1.5, 10];
mgg_sig_gsigma_cat3[1.2, 0.8, 1.6];
mgg_sig_frac_cat3[0.6, 0.4, 1.0];
mggGaussSig_cat0 = Gaussian(mgg, mgg_sig_m0_cat0, mgg_sig_gsigma_cat0);
mggCBSig_cat0 = CBShape(mgg, mgg_sig_m0_cat0, mgg_sig_sigma_cat0, mgg_sig_alpha_cat0, mgg_sig_n_cat0);
mggSig_cat0 = AddPdf(mggGaussSig_cat0, mggCBSig_cat0, mgg_sig_frac_cat0);
mggGaussSig_cat1 = Gaussian(mgg, mgg_sig_m0_cat1, mgg_sig_gsigma_cat1);
mggCBSig_cat1 = CBShape(mgg, mgg_sig_m0_cat1, mgg_sig_sigma_cat1, mgg_sig_alpha_cat1, mgg_sig_n_cat1);
mggSig_cat1 = AddPdf(mggGaussSig_cat1, mggCBSig_cat1, mgg_sig_frac_cat1);
mggGaussSig_cat2 = Gaussian(mgg, mgg_sig_m0_cat2, mgg_sig_gsigma_cat2);
mggCBSig_cat2 = CBShape(mgg, mgg_sig_m0_cat2, mgg_sig_sigma_cat2, mgg_sig_alpha_cat2, mgg_sig_n_cat2);
mggSig_cat2 = AddPdf(mggGaussSig_cat2, mggCBSig_cat2, mgg_sig_frac_cat2);
mggGaussSig_cat3 = Gaussian(mgg, mgg_sig_m0_cat3, mgg_sig_gsigma_cat3);
mggCBSig_cat3 = CBShape(mgg, mgg_sig_m0_cat3, mgg_sig_sigma_cat3, mgg_sig_alpha_cat3, mgg_sig_n_cat3);
mggSig_cat3 = AddPdf(mggGaussSig_cat3, mggCBSig_cat3, mgg_sig_frac_cat3);
mgg_hig_m0_0_cat0[124.2, 123, 125];
mgg_hig_sigma_0_cat0[2.0, 1.0, 3.0];
mgg_hig_alpha_0_cat0[1.0, 0.0, 2.5];
mgg_hig_n_0_cat0[2.0, 1.0, 5.0];
mgg_hig_gsigma_0_cat0[1.2, 0.8, 1.6];
mgg_hig_frac_0_cat0[0.6, 0.4, 1.0];
mgg_hig_m0_0_cat1[124.2, 123, 125];
mgg_hig_sigma_0_cat1[2.0, 1.0, 3.0];
mgg_hig_alpha_0_cat1[1.0, 0.0, 2.5];
mgg_hig_n_0_cat1[2.0, 1.5, 10];
mgg_hig_gsigma_0_cat1[1.2, 0.8, 1.6];
mgg_hig_frac_0_cat1[0.6, 0.4, 1.0];
mgg_hig_m0_0_cat2[124.2, 123, 125];
mgg_hig_sigma_0_cat2[2.0, 1.0, 3.0];
mgg_hig_alpha_0_cat2[1.0, 0.0, 2.5];
mgg_hig_n_0_cat2[2.0, 1.0, 5.0];
mgg_hig_gsigma_0_cat2[1.2, 0.8, 1.6];
mgg_hig_frac_0_cat2[0.6, 0.4, 1.0];
mgg_hig_m0_0_cat3[124.2, 123, 125];
mgg_hig_sigma_0_cat3[2.0, 1.0, 3.0];
mgg_hig_alpha_0_cat3[1.0, 0.0, 2.5];
mgg_hig_n_0_cat3[2.0, 1.5, 10];
mgg_hig_gsigma_0_cat3[1.2, 0.8, 1.6];
mgg_hig_frac_0_cat3[0.6, 0.4, 1.0];
mggGaussHig_0_cat0 = Gaussian(mgg, mgg_hig_m0_0_cat0, mgg_hig_gsigma_0_cat0);
mggCBHig_0_cat0 = CBShape(mgg, mgg_hig_m0_0_cat0, mgg_hig_sigma_0_cat0, mgg_hig_alpha_0_cat0, mgg_hig_n_0_cat0);
mggHig_0_cat0 = AddPdf(mggGaussHig_0_cat0, mggCBHig_0_cat0, mgg_hig_frac_0_cat0);
mggGaussHig_0_cat1 = Gaussian(mgg, mgg_hig_m0_0_cat1, mgg_hig_gsigma_0_cat1);
mggCBHig_0_cat1 = CBShape(mgg, mgg_hig_m0_0_cat1, mgg_hig_sigma_0_cat1, mgg_hig_alpha_0_cat1, mgg_hig_n_0_cat1);
mggHig_0_cat1 = AddPdf(mggGaussHig_0_cat1, mggCBHig_0_cat1, mgg_hig_frac_0_cat1);
mggGaussHig_0_cat2 = Gaussian(mgg, mgg_hig_m0_0_cat2, mgg_hig_gsigma_0_cat2);
mggCBHig_0_cat2 = CBShape(mgg, mgg_hig_m0_0_cat2, mgg_hig_sigma_0_cat2, mgg_hig_alpha_0_cat2, mgg_hig_n_0_cat2);
mggHig_0_cat2 = AddPdf(mggGaussHig_0_cat2, mggCBHig_0_cat2, mgg_hig_frac_0_cat2);
mggGaussHig_0_cat3 = Gaussian(mgg, mgg_hig_m0_0_cat3, mgg_hig_gsigma_0_cat3);
mggCBHig_0_cat3 = CBShape(mgg, mgg_hig_m0_0_cat3, mgg_hig_sigma_0_cat3, mgg_hig_alpha_0_cat3, mgg_hig_n_0_cat3);
mggHig_0_cat3 = AddPdf(mggGaussHig_0_cat3, mggCBHig_0_cat3, mgg_hig_frac_0_cat3);
mgg_hig_m0_1_cat0[124.2, 123, 125];
mgg_hig_sigma_1_cat0[2.0, 1.0, 3.0];
mgg_hig_alpha_1_cat0[1.0, 0.0, 2.5];
mgg_hig_n_1_cat0[2.0, 1.0, 5.0];
mgg_hig_gsigma_1_cat0[1.2, 0.8, 1.6];
mgg_hig_frac_1_cat0[0.6, 0.4, 1.0];
mgg_hig_m0_1_cat1[124.2, 123, 125];
mgg_hig_sigma_1_cat1[2.0, 1.0, 3.0];
mgg_hig_alpha_1_cat1[1.0, 0.0, 2.5];
mgg_hig_n_1_cat1[2.0, 1.5, 10];
mgg_hig_gsigma_1_cat1[1.2, 0.8, 1.6];
mgg_hig_frac_1_cat1[0.6, 0.4, 1.0];
mgg_hig_m0_1_cat2[124.2, 123, 125];
mgg_hig_sigma_1_cat2[2.0, 1.0, 3.0];
mgg_hig_alpha_1_cat2[1.0, 0.0, 2.5];
mgg_hig_n_1_cat2[2.0, 1.0, 5.0];
mgg_hig_gsigma_1_cat2[1.2, 0.8, 1.6];
mgg_hig_frac_1_cat2[0.6, 0.4, 1.0];
mgg_hig_m0_1_cat3[124.2, 123, 125];
mgg_hig_sigma_1_cat3[2.0, 1.0, 3.0];
mgg_hig_alpha_1_cat3[1.0, 0.0, 2.5];
mgg_hig_n_1_cat3[2.0, 1.5, 10];
mgg_hig_gsigma_1_cat3[1.2, 0.8, 1.6];
mgg_hig_frac_1_cat3[0.6, 0.4, 1.0];
mggGaussHig_1_cat0 = Gaussian(mgg, mgg_hig_m0_1_cat0, mgg_hig_gsigma_1_cat0);
mggCBHig_1_cat0 = CBShape(mgg, mgg_hig_m0_1_cat0, mgg_hig_sigma_1_cat0, mgg_hig_alpha_1_cat0, mgg_hig_n_1_cat0);
mggHig_1_cat0 = AddPdf(mggGaussHig_1_cat0, mggCBHig_1_cat0, mgg_hig_frac_1_cat0);
mggGaussHig_1_cat1 = Gaussian(mgg, mgg_hig_m0_1_cat1, mgg_hig_gsigma_1_cat1);
mggCBHig_1_cat1 = CBShape(mgg, mgg_hig_m0_1_cat1, mgg_hig_sigma_1_cat1, mgg_hig_alpha_1_cat1, mgg_hig_n_1_cat1);
mggHig_1_cat1 = AddPdf(mggGaussHig_1_cat1, mggCBHig_1_cat1, mgg_hig_frac_1_cat1);
mggGaussHig_1_cat2 = Gaussian(mgg, mgg_hig_m0_1_cat2, mgg_hig_gsigma_1_cat2);
mggCBHig_1_cat2 = CBShape(mgg, mgg_hig_m0_1_cat2, mgg_hig_sigma_1_cat2, mgg_hig_alpha_1_cat2, mgg_hig_n_1_cat2);
mggHig_1_cat2 = AddPdf(mggGaussHig_1_cat2, mggCBHig_1_cat2, mgg_hig_frac_1_cat2);
mggGaussHig_1_cat3 = Gaussian(mgg, mgg_hig_m0_1_cat3, mgg_hig_gsigma_1_cat3);
mggCBHig_1_cat3 = CBShape(mgg, mgg_hig_m0_1_cat3, mgg_hig_sigma_1_cat3, mgg_hig_alpha_1_cat3, mgg_hig_n_1_cat3);
mggHig_1_cat3 = AddPdf(mggGaussHig_1_cat3, mggCBHig_1_cat3, mgg_hig_frac_1_cat3);
mgg_hig_m0_2_cat0[124.2, 123, 125];
mgg_hig_sigma_2_cat0[2.0, 1.0, 3.0];
mgg_hig_alpha_2_cat0[1.0, 0.0, 2.5];
mgg_hig_n_2_cat0[2.0, 1.0, 5.0];
mgg_hig_gsigma_2_cat0[1.2, 0.8, 1.6];
mgg_hig_frac_2_cat0[0.6, 0.4, 1.0];
mgg_hig_m0_2_cat1[124.2, 123, 125];
mgg_hig_sigma_2_cat1[2.0, 1.0, 3.0];
mgg_hig_alpha_2_cat1[1.0, 0.0, 2.5];
mgg_hig_n_2_cat1[2.0, 1.5, 10];
mgg_hig_gsigma_2_cat1[1.2, 0.8, 1.6];
mgg_hig_frac_2_cat1[0.6, 0.4, 1.0];
mgg_hig_m0_2_cat2[124.2, 123, 125];
mgg_hig_sigma_2_cat2[2.0, 1.0, 3.0];
mgg_hig_alpha_2_cat2[1.0, 0.0, 2.5];
mgg_hig_n_2_cat2[2.0, 1.0, 5.0];
mgg_hig_gsigma_2_cat2[1.2, 0.8, 1.6];
mgg_hig_frac_2_cat2[0.6, 0.4, 1.0];
mgg_hig_m0_2_cat3[124.2, 123, 125];
mgg_hig_sigma_2_cat3[2.0, 1.0, 3.0];
mgg_hig_alpha_2_cat3[1.0, 0.0, 2.5];
mgg_hig_n_2_cat3[2.0, 1.5, 10];
mgg_hig_gsigma_2_cat3[1.2, 0.8, 1.6];
mgg_hig_frac_2_cat3[0.6, 0.4, 1.0];
mggGaussHig_2_cat0 = Gaussian(mgg, mgg_hig_m0_2_cat0, mgg_hig_gsigma_2_cat0);
mggCBHig_2_cat0 = CBShape(mgg, mgg_hig_m0_2_cat0, mgg_hig_sigma_2_cat0, mgg_hig_alpha_2_cat0, mgg_hig_n_2_cat0);
mggHig_2_cat0 = AddPdf(mggGaussHig_2_cat0, mggCBHig_2_cat0, mgg_hig_frac_2_cat0);
mggGaussHig_2_cat1 = Gaussian(mgg, mgg_hig_m0_2_cat1, mgg_hig_gsigma_2_cat1);
mggCBHig_2_cat1 = CBShape(mgg, mgg_hig_m0_2_cat1, mgg_hig_sigma_2_cat1, mgg_hig_alpha_2_cat1, mgg_hig_n_2_cat1);
mggHig_2_cat1 = AddPdf(mggGaussHig_2_cat1, mggCBHig_2_cat1, mgg_hig_frac_2_cat1);
mggGaussHig_2_cat2 = Gaussian(mgg, mgg_hig_m0_2_cat2, mgg_hig_gsigma_2_cat2);
mggCBHig_2_cat2 = CBShape(mgg, mgg_hig_m0_2_cat2, mgg_hig_sigma_2_cat2, mgg_hig_alpha_2_cat2, mgg_hig_n_2_cat2);
mggHig_2_cat2 = AddPdf(mggGaussHig_2_cat2, mggCBHig_2_cat2, mgg_hig_frac_2_cat2);
mggGaussHig_2_cat3 = Gaussian(mgg, mgg_hig_m0_2_cat3, mgg_hig_gsigma_2_cat3);
mggCBHig_2_cat3 = CBShape(mgg, mgg_hig_m0_2_cat3, mgg_hig_sigma_2_cat3, mgg_hig_alpha_2_cat3, mgg_hig_n_2_cat3);
mggHig_2_cat3 = AddPdf(mggGaussHig_2_cat3, mggCBHig_2_cat3, mgg_hig_frac_2_cat3);
mgg_hig_m0_3_cat0[124.2, 123, 125];
mgg_hig_sigma_3_cat0[2.0, 1.0, 3.0];
mgg_hig_alpha_3_cat0[1.0, 0.0, 2.5];
mgg_hig_n_3_cat0[2.0, 1.0, 5.0];
mgg_hig_gsigma_3_cat0[1.2, 0.8, 1.6];
mgg_hig_frac_3_cat0[0.6, 0.4, 1.0];
mgg_hig_m0_3_cat1[124.2, 123, 125];
mgg_hig_sigma_3_cat1[2.0, 1.0, 3.0];
mgg_hig_alpha_3_cat1[1.0, 0.0, 2.5];
mgg_hig_n_3_cat1[2.0, 1.5, 10];
mgg_hig_gsigma_3_cat1[1.2, 0.8, 1.6];
mgg_hig_frac_3_cat1[0.6, 0.4, 1.0];
mgg_hig_m0_3_cat2[124.2, 123, 125];
mgg_hig_sigma_3_cat2[2.0, 1.0, 3.0];
mgg_hig_alpha_3_cat2[1.0, 0.0, 2.5];
mgg_hig_n_3_cat2[2.0, 1.0, 5.0];
mgg_hig_gsigma_3_cat2[1.2, 0.8, 1.6];
mgg_hig_frac_3_cat2[0.6, 0.4, 1.0];
mgg_hig_m0_3_cat3[124.2, 123, 125];
mgg_hig_sigma_3_cat3[2.0, 1.0, 3.0];
mgg_hig_alpha_3_cat3[1.0, 0.0, 2.5];
mgg_hig_n_3_cat3[2.0, 1.5, 10];
mgg_hig_gsigma_3_cat3[1.2, 0.8, 1.6];
mgg_hig_frac_3_cat3[0.6, 0.4, 1.0];
mggGaussHig_3_cat0 = Gaussian(mgg, mgg_hig_m0_3_cat0, mgg_hig_gsigma_3_cat0);
mggCBHig_3_cat0 = CBShape(mgg, mgg_hig_m0_3_cat0, mgg_hig_sigma_3_cat0, mgg_hig_alpha_3_cat0, mgg_hig_n_3_cat0);
mggHig_3_cat0 = AddPdf(mggGaussHig_3_cat0, mggCBHig_3_cat0, mgg_hig_frac_3_cat0);
mggGaussHig_3_cat1 = Gaussian(mgg, mgg_hig_m0_3_cat1, mgg_hig_gsigma_3_cat1);
mggCBHig_3_cat1 = CBShape(mgg, mgg_hig_m0_3_cat1, mgg_hig_sigma_3_cat1, mgg_hig_alpha_3_cat1, mgg_hig_n_3_cat1);
mggHig_3_cat1 = AddPdf(mggGaussHig_3_cat1, mggCBHig_3_cat1, mgg_hig_frac_3_cat1);
mggGaussHig_3_cat2 = Gaussian(mgg, mgg_hig_m0_3_cat2, mgg_hig_gsigma_3_cat2);
mggCBHig_3_cat2 = CBShape(mgg, mgg_hig_m0_3_cat2, mgg_hig_sigma_3_cat2, mgg_hig_alpha_3_cat2, mgg_hig_n_3_cat2);
mggHig_3_cat2 = AddPdf(mggGaussHig_3_cat2, mggCBHig_3_cat2, mgg_hig_frac_3_cat2);
mggGaussHig_3_cat3 = Gaussian(mgg, mgg_hig_m0_3_cat3, mgg_hig_gsigma_3_cat3);
mggCBHig_3_cat3 = CBShape(mgg, mgg_hig_m0_3_cat3, mgg_hig_sigma_3_cat3, mgg_hig_alpha_3_cat3, mgg_hig_n_3_cat3);
mggHig_3_cat3 = AddPdf(mggGaussHig_3_cat3, mggCBHig_3_cat3, mgg_hig_frac_3_cat3);
mgg_hig_m0_4_cat0[124.2, 123, 125];
mgg_hig_sigma_4_cat0[2.0, 1.0, 3.0];
mgg_hig_alpha_4_cat0[1.0, 0.0, 2.5];
mgg_hig_n_4_cat0[2.0, 1.0, 5.0];
mgg_hig_gsigma_4_cat0[1.2, 0.8, 1.6];
mgg_hig_frac_4_cat0[0.6, 0.4, 1.0];
mgg_hig_m0_4_cat1[124.2, 123, 125];
mgg_hig_sigma_4_cat1[2.0, 1.0, 3.0];
mgg_hig_alpha_4_cat1[1.0, 0.0, 2.5];
mgg_hig_n_4_cat1[2.0, 1.5, 10];
mgg_hig_gsigma_4_cat1[1.2, 0.8, 1.6];
mgg_hig_frac_4_cat1[0.6, 0.4, 1.0];
mgg_hig_m0_4_cat2[124.2, 123, 125];
mgg_hig_sigma_4_cat2[2.0, 1.0, 3.0];
mgg_hig_alpha_4_cat2[1.0, 0.0, 2.5];
mgg_hig_n_4_cat2[2.0, 1.0, 5.0];
mgg_hig_gsigma_4_cat2[1.2, 0.8, 1.6];
mgg_hig_frac_4_cat2[0.6, 0.4, 1.0];
mgg_hig_m0_4_cat3[124.2, 123, 125];
mgg_hig_sigma_4_cat3[2.0, 1.0, 3.0];
mgg_hig_alpha_4_cat3[1.0, 0.0, 2.5];
mgg_hig_n_4_cat3[2.0, 1.5, 10];
mgg_hig_gsigma_4_cat3[1.2, 0.8, 1.6];
mgg_hig_frac_4_cat3[0.6, 0.4, 1.0];
mggGaussHig_4_cat0 = Gaussian(mgg, mgg_hig_m0_4_cat0, mgg_hig_gsigma_4_cat0);
mggCBHig_4_cat0 = CBShape(mgg, mgg_hig_m0_4_cat0, mgg_hig_sigma_4_cat0, mgg_hig_alpha_4_cat0, mgg_hig_n_4_cat0);
mggHig_4_cat0 = AddPdf(mggGaussHig_4_cat0, mggCBHig_4_cat0, mgg_hig_frac_4_cat0);
mggGaussHig_4_cat1 = Gaussian(mgg, mgg_hig_m0_4_cat1, mgg_hig_gsigma_4_cat1);
mggCBHig_4_cat1 = CBShape(mgg, mgg_hig_m0_4_cat1, mgg_hig_sigma_4_cat1, mgg_hig_alpha_4_cat1, mgg_hig_n_4_cat1);
mggHig_4_cat1 = AddPdf(mggGaussHig_4_cat1, mggCBHig_4_cat1, mgg_hig_frac_4_cat1);
mggGaussHig_4_cat2 = Gaussian(mgg, mgg_hig_m0_4_cat2, mgg_hig_gsigma_4_cat2);
mggCBHig_4_cat2 = CBShape(mgg, mgg_hig_m0_4_cat2, mgg_hig_sigma_4_cat2, mgg_hig_alpha_4_cat2, mgg_hig_n_4_cat2);
mggHig_4_cat2 = AddPdf(mggGaussHig_4_cat2, mggCBHig_4_cat2, mgg_hig_frac_4_cat2);
mggGaussHig_4_cat3 = Gaussian(mgg, mgg_hig_m0_4_cat3, mgg_hig_gsigma_4_cat3);
mggCBHig_4_cat3 = CBShape(mgg, mgg_hig_m0_4_cat3, mgg_hig_sigma_4_cat3, mgg_hig_alpha_4_cat3, mgg_hig_n_4_cat3);
mggHig_4_cat3 = AddPdf(mggGaussHig_4_cat3, mggCBHig_4_cat3, mgg_hig_frac_4_cat3);