1 | |
---|
2 | |
---|
3 | set source $1 |
---|
4 | set ncycles $2 |
---|
5 | |
---|
6 | |
---|
7 | #set fcalib $3 |
---|
8 | #set f1420low $4 |
---|
9 | #set f1420high $5 |
---|
10 | |
---|
11 | set fcalib 1410 |
---|
12 | set f1420low 1420.2 |
---|
13 | set f1420high 1420.6 |
---|
14 | |
---|
15 | |
---|
16 | |
---|
17 | nbins1420 = floor((${f1420high}-${f1420low})/250*8192) |
---|
18 | |
---|
19 | echo $nbins1420 |
---|
20 | |
---|
21 | |
---|
22 | clearscript diffOnOff |
---|
23 | clearscript evolAt1420Freq |
---|
24 | clearscript evolAt1420SideFreq |
---|
25 | clearscript IntAt1420 |
---|
26 | clearscript sigmaRaw1420Side |
---|
27 | clearscript sigmaRaw1400a1420 |
---|
28 | ############################################################################ |
---|
29 | defscript evolAtCalibFreq |
---|
30 | |
---|
31 | |
---|
32 | #Follow up of the intensity arround the Calib frequency in different calibration conditions |
---|
33 | # NO calibration |
---|
34 | # Calibration coeff. mean per Run |
---|
35 | # Calibration coeff. per cycles |
---|
36 | |
---|
37 | set fcalib $1 |
---|
38 | |
---|
39 | |
---|
40 | newwin 1 2 |
---|
41 | n/pl onoffevol.onoffRaw0%cycle ! ! "blue cpts notit nsta" |
---|
42 | settitle "Raw ON-OFF ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles " ' ' $defatt |
---|
43 | n/pl onoffevol.onoffRaw1%cycle ! ! "red cpts notit nsta" |
---|
44 | setaxelabels "cycle" "I[${fcalib}MHz/6.25MHz] Raw (a.u)" $axedefatt |
---|
45 | |
---|
46 | newwin 1 2 |
---|
47 | n/proj hRaw0 onoffevol.onoffRaw0 ! ! ! "blue cpts notit" |
---|
48 | settitle "Raw ON-OFF ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles " ' ' $defatt |
---|
49 | n/proj hRaw1 onoffevol.onoffRaw1 ! ! ! "red cpts notit" |
---|
50 | settitle "I[${fcalib}MHz/6.25MHz] Raw (a.u)" |
---|
51 | |
---|
52 | |
---|
53 | |
---|
54 | newwin 1 2 |
---|
55 | n/pl onoffevol.onoffRun0%cycle ! ! "blue cpts notit nsta" |
---|
56 | settitle "ON-OFF Calib Run ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt |
---|
57 | n/pl onoffevol.onoffRun1%cycle ! ! "red cpts notit nsta" |
---|
58 | setaxelabels "cycle" "I[${fcalib}MHz/6.25MHz] Run (a.u)" $axedefatt |
---|
59 | |
---|
60 | |
---|
61 | newwin 1 2 |
---|
62 | n/proj hRun0 onoffevol.onoffRun0 ! ! ! "blue cpts notit" |
---|
63 | settitle "ON-OFF Calib Run ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt |
---|
64 | n/proj hRun1 onoffevol.onoffRun1 ! ! ! "red cpts notit" |
---|
65 | settitle "I[${fcalib}MHz/6.25MHz] Run (a.u)" |
---|
66 | |
---|
67 | |
---|
68 | newwin 1 2 |
---|
69 | n/pl onoffevol.onoffCycle0%cycle ! ! "blue cpts notit nsta" |
---|
70 | settitle "ON-OFF Calib Cycle ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt |
---|
71 | n/pl onoffevol.onoffCycle1%cycle ! ! "red cpts notit nsta" |
---|
72 | setaxelabels "cycle" "I[${fcalib}MHz/6.25MHz] Cycle (a.u)" $axedefatt |
---|
73 | |
---|
74 | newwin 1 2 |
---|
75 | n/proj hCycle0 onoffevol.onoffCycle0 ! ! ! "blue cpts notit" |
---|
76 | settitle "ON-OFF Calib Cycle ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt |
---|
77 | n/proj hCycle1 onoffevol.onoffCycle1 ! ! ! "red cpts notit" |
---|
78 | settitle "I[${fcalib}MHz/6.25MHz] Cycle (a.u)" |
---|
79 | |
---|
80 | |
---|
81 | endscript |
---|
82 | ########################################### |
---|
83 | defscript evolAt1420Freq |
---|
84 | |
---|
85 | |
---|
86 | #Follow up of the intensity arround the [1420,1421]MHz frequency in different calibration conditions |
---|
87 | # NO calibration |
---|
88 | # Calibration coeff. mean per Run |
---|
89 | # Calibration coeff. per cycles |
---|
90 | |
---|
91 | |
---|
92 | graphicatt "xylimits=0,500,-0.01,0.01" |
---|
93 | |
---|
94 | newwin 1 2 |
---|
95 | n/pl onoffevol.onoffRaw01420%cycle ! ! "blue cpts notit nsta" |
---|
96 | settitle "Raw ON-OFF ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles " ' ' $defatt |
---|
97 | n/pl onoffevol.onoffRaw11420%cycle ! ! "red cpts notit nsta" |
---|
98 | setaxelabels "cycle" "I[${f1420low},${f1420high}]MHz Raw (a.u)" $axedefatt |
---|
99 | |
---|
100 | |
---|
101 | newwin 1 2 |
---|
102 | n/pl onoffevol.onoffRun01420%cycle ! ! "blue cpts notit nsta" |
---|
103 | settitle "ON-OFF Calib Run ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt |
---|
104 | n/pl onoffevol.onoffRun11420%cycle ! ! "red cpts notit nsta" |
---|
105 | setaxelabels "cycle" "I[${f1420low},${f1420high}]MHz Run (a.u)" $axedefatt |
---|
106 | |
---|
107 | |
---|
108 | newwin 1 2 |
---|
109 | n/pl onoffevol.onoffCycle01420%cycle ! ! "blue cpts notit nsta" |
---|
110 | settitle "ON-OFF Calib Cycle ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt |
---|
111 | n/pl onoffevol.onoffCycle11420%cycle ! ! "red cpts notit nsta" |
---|
112 | setaxelabels "cycle" "I[${f1420low},${f1420high}]MHz Cycle (a.u)" $axedefatt |
---|
113 | |
---|
114 | |
---|
115 | newh1d hSigmaRaw0 -0.01 0.01 25 |
---|
116 | newh1d hSigmaRaw1 -0.01 0.01 25 |
---|
117 | newh1d hSigmaRun0 -0.01 0.01 25 |
---|
118 | newh1d hSigmaRun1 -0.01 0.01 25 |
---|
119 | newh1d hSigmaCycl0 -0.01 0.01 25 |
---|
120 | newh1d hSigmaCycl1 -0.01 0.01 25 |
---|
121 | |
---|
122 | graphicatt "" |
---|
123 | |
---|
124 | newwin 1 1 |
---|
125 | n/proj hSigmaRaw0 onoffevol.onoffRaw01420 ! ! ! "blue cpts notit" |
---|
126 | n/proj hSigmaRaw1 onoffevol.onoffRaw11420 ! ! ! "same red cpts notit" |
---|
127 | settitle "Raw ON-OFF ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles " ' ' $defatt |
---|
128 | setaxelabels "(a.u)" "I[${f1420low},${f1420high}]MHz Raw" $axedefatt |
---|
129 | |
---|
130 | newwin 1 1 |
---|
131 | n/proj hSigmaRun0 onoffevol.onoffRun01420 ! ! ! "blue cpts notit" |
---|
132 | n/proj hSigmaRun1 onoffevol.onoffRun11420 ! ! ! "same red cpts notit" |
---|
133 | settitle "ON-OFF Calib Run ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt |
---|
134 | setaxelabels "(a.u)" "I[${f1420low},${f1420high}]MHz Run" $axedefatt |
---|
135 | |
---|
136 | |
---|
137 | newwin 1 1 |
---|
138 | n/proj hSigmaCycl0 onoffevol.onoffCycle01420 ! ! ! "blue cpts notit" |
---|
139 | n/proj hSigmaCycl1 onoffevol.onoffCycle11420 ! ! ! "same red cpts notit" |
---|
140 | settitle "ON-OFF Calib Cycle ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt |
---|
141 | setaxelabels "(a.u)" "I[${f1420low},${f1420high}]MHz Cycle" $axedefatt |
---|
142 | |
---|
143 | |
---|
144 | endscript |
---|
145 | ################################################## |
---|
146 | defscript sigmaRaw1420Side |
---|
147 | |
---|
148 | c++compile rebining |
---|
149 | c++link rebining.so dorebin |
---|
150 | |
---|
151 | |
---|
152 | #col 13 = onoffRaw01420side Ch 0 |
---|
153 | #col 14 = onoffRaw11420side Ch 1 |
---|
154 | |
---|
155 | ntcol2var onoffevol 13 linCh0All |
---|
156 | line2vec vecCh0All $linCh0All |
---|
157 | |
---|
158 | ntcol2var onoffevol 14 linCh1All |
---|
159 | line2vec vecCh1All $linCh1All |
---|
160 | |
---|
161 | #packing values only valid for 500 cycles... |
---|
162 | set packVal "1 10 25 50 100" |
---|
163 | set sigmaCh0 "" |
---|
164 | set errsigCh0 "" |
---|
165 | set sigmaCh1 "" |
---|
166 | set errsigCh1 "" |
---|
167 | |
---|
168 | |
---|
169 | foreach ipack ( $packVal ) |
---|
170 | |
---|
171 | #Packing per ipack |
---|
172 | del invec |
---|
173 | del outvec |
---|
174 | cp vecCh0All invec |
---|
175 | call dorebin $ipack |
---|
176 | mean0 = ${outvec.sum}/${outvec.size} |
---|
177 | sigma0 = sqrt(${outvec.sumsq}/${outvec.size}-${mean0}*${mean0}) |
---|
178 | errsig0 = ${sigma0}/sqrt(2*${outvec.size}) |
---|
179 | set sigmaCh0 "${sigmaCh0} ${sigma0}" |
---|
180 | set errsigCh0 "${errsigCh0} ${errsig0}" |
---|
181 | # |
---|
182 | del invec |
---|
183 | del outvec |
---|
184 | cp vecCh1All invec |
---|
185 | call dorebin $ipack |
---|
186 | mean1 = ${outvec.sum}/${outvec.size} |
---|
187 | sigma1 = sqrt(${outvec.sumsq}/${outvec.size}-${mean1}*${mean1}) |
---|
188 | errsig1 = ${sigma1}/sqrt(2*${outvec.size}) |
---|
189 | set sigmaCh1 "${sigmaCh1} ${sigma1}" |
---|
190 | set errsigCh1 "${errsigCh1} ${errsig1}" |
---|
191 | end |
---|
192 | |
---|
193 | |
---|
194 | newnt nt0 x y ey |
---|
195 | newnt nt1 x y ey |
---|
196 | |
---|
197 | set x0 ( $packVal ) |
---|
198 | set y0 ( $sigmaCh0 ) |
---|
199 | set ey0 ( $errsigCh0 ) |
---|
200 | |
---|
201 | set x1 ( $packVal ) |
---|
202 | set y1 ( $sigmaCh1 ) |
---|
203 | set ey1 ( $errsigCh1 ) |
---|
204 | |
---|
205 | for i 0:$#x0 |
---|
206 | line2nt nt0 $x0[i] $y0[i] $ey0[i] |
---|
207 | line2nt nt1 $x1[i] $y1[i] $ey1[i] |
---|
208 | end |
---|
209 | |
---|
210 | |
---|
211 | newwin 1 1 |
---|
212 | plot2de nt0 x y 0 ey 1 "blue marker=fcircle,9 notit nsta" |
---|
213 | plot2de nt1 x y 0 ey 1 "same red marker=fcircle,9 notit nsta" |
---|
214 | n = ${#x0}-1 |
---|
215 | func $y0[0]/sqrt(x) $x0[0] $x0[n] 100 "same" |
---|
216 | settitle "Sigma [1418,1419]U[1422,1423]MHz ${source} Ch 0 (blue) Ch 1 (red)" ' ' $defatt |
---|
217 | setaxelabels "num of cycles" "Sigma (a.u)" $axedefatt |
---|
218 | |
---|
219 | |
---|
220 | |
---|
221 | endscript |
---|
222 | ################################################## |
---|
223 | defscript sigmaRaw1400a1420 |
---|
224 | |
---|
225 | c++compile rebining |
---|
226 | c++link rebining.so dorebin |
---|
227 | |
---|
228 | |
---|
229 | #col 19 = onoffRaw0f14001420 Ch 0 |
---|
230 | #col 20 = onoffRaw1f14001420 Ch 1 |
---|
231 | |
---|
232 | ntcol2var onoffevol 19 linCh0All |
---|
233 | line2vec vecCh0All $linCh0All |
---|
234 | |
---|
235 | ntcol2var onoffevol 20 linCh1All |
---|
236 | line2vec vecCh1All $linCh1All |
---|
237 | |
---|
238 | #packing values only valid for 500 cycles... |
---|
239 | set packVal "1 10 25 50 100" |
---|
240 | set sigmaCh0 "" |
---|
241 | set errsigCh0 "" |
---|
242 | set sigmaCh1 "" |
---|
243 | set errsigCh1 "" |
---|
244 | |
---|
245 | |
---|
246 | foreach ipack ( $packVal ) |
---|
247 | |
---|
248 | #Packing per ipack |
---|
249 | del invec |
---|
250 | del outvec |
---|
251 | cp vecCh0All invec |
---|
252 | call dorebin $ipack |
---|
253 | mean0 = ${outvec.sum}/${outvec.size} |
---|
254 | sigma0 = sqrt(${outvec.sumsq}/${outvec.size}-${mean0}*${mean0}) |
---|
255 | errsig0 = ${sigma0}/sqrt(2*${outvec.size}) |
---|
256 | set sigmaCh0 "${sigmaCh0} ${sigma0}" |
---|
257 | set errsigCh0 "${errsigCh0} ${errsig0}" |
---|
258 | # |
---|
259 | del invec |
---|
260 | del outvec |
---|
261 | cp vecCh1All invec |
---|
262 | call dorebin $ipack |
---|
263 | mean1 = ${outvec.sum}/${outvec.size} |
---|
264 | sigma1 = sqrt(${outvec.sumsq}/${outvec.size}-${mean1}*${mean1}) |
---|
265 | errsig1 = ${sigma1}/sqrt(2*${outvec.size}) |
---|
266 | set sigmaCh1 "${sigmaCh1} ${sigma1}" |
---|
267 | set errsigCh1 "${errsigCh1} ${errsig1}" |
---|
268 | end |
---|
269 | |
---|
270 | |
---|
271 | newnt nt0 x y ey |
---|
272 | newnt nt1 x y ey |
---|
273 | |
---|
274 | set x0 ( $packVal ) |
---|
275 | set y0 ( $sigmaCh0 ) |
---|
276 | set ey0 ( $errsigCh0 ) |
---|
277 | |
---|
278 | set x1 ( $packVal ) |
---|
279 | set y1 ( $sigmaCh1 ) |
---|
280 | set ey1 ( $errsigCh1 ) |
---|
281 | |
---|
282 | for i 0:$#x0 |
---|
283 | line2nt nt0 $x0[i] $y0[i] $ey0[i] |
---|
284 | line2nt nt1 $x1[i] $y1[i] $ey1[i] |
---|
285 | end |
---|
286 | |
---|
287 | |
---|
288 | newwin 1 1 |
---|
289 | plot2de nt0 x y 0 ey 1 "blue marker=fcircle,9 notit nsta" |
---|
290 | plot2de nt1 x y 0 ey 1 "same red marker=fcircle,9 notit nsta" |
---|
291 | n = ${#x0}-1 |
---|
292 | func $y0[0]/sqrt(x) $x0[0] $x0[n] 100 "same" |
---|
293 | settitle "Sigma [1400,1420]MHz ${source} Ch 0 (blue) Ch 1 (red)" ' ' $defatt |
---|
294 | setaxelabels "num of cycles" "Sigma (a.u)" $axedefatt |
---|
295 | |
---|
296 | |
---|
297 | |
---|
298 | endscript |
---|
299 | ########################################### |
---|
300 | |
---|
301 | defscript evolAt1420SideFreq |
---|
302 | |
---|
303 | |
---|
304 | #Follow up of the intensity arround the [${f1420low},${f1420high}]MHz frequency in different calibration conditions |
---|
305 | # NO calibration |
---|
306 | # Calibration coeff. mean per Run |
---|
307 | # Calibration coeff. per cycles |
---|
308 | |
---|
309 | |
---|
310 | graphicatt "xylimits=0,500,-0.01,0.01" |
---|
311 | |
---|
312 | newwin 1 2 |
---|
313 | n/pl onoffevol.onoffRaw01420side%cycle ! ! "blue cpts notit nsta" |
---|
314 | settitle "Raw ON-OFF ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles " ' ' $defatt |
---|
315 | n/pl onoffevol.onoffRaw11420side%cycle ! ! "red cpts notit nsta" |
---|
316 | setaxelabels "cycle" "I[1418,1419]U[1422,1423]MHz Raw (a.u)" $axedefatt |
---|
317 | |
---|
318 | |
---|
319 | newwin 1 2 |
---|
320 | n/pl onoffevol.onoffRun01420side%cycle ! ! "blue cpts notit nsta" |
---|
321 | settitle "ON-OFF Calib Run ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt |
---|
322 | n/pl onoffevol.onoffRun11420side%cycle ! ! "red cpts notit nsta" |
---|
323 | setaxelabels "cycle" "I[1418,1419]U[1422,1423]MHz Run (a.u)" $axedefatt |
---|
324 | |
---|
325 | |
---|
326 | newwin 1 2 |
---|
327 | n/pl onoffevol.onoffCycle01420side%cycle ! ! "blue cpts notit nsta" |
---|
328 | settitle "ON-OFF Calib Cycle ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt |
---|
329 | n/pl onoffevol.onoffCycle11420side%cycle ! ! "red cpts notit nsta" |
---|
330 | setaxelabels "cycle" "I[1418,1419]U[1422,1423]MHz Cycle (a.u)" $axedefatt |
---|
331 | |
---|
332 | |
---|
333 | newh1d hSigmaSideRaw0 -0.01 0.01 25 |
---|
334 | newh1d hSigmaSideRaw1 -0.01 0.01 25 |
---|
335 | newh1d hSigmaSideRun0 -0.01 0.01 25 |
---|
336 | newh1d hSigmaSideRun1 -0.01 0.01 25 |
---|
337 | newh1d hSigmaSideCycl0 -0.01 0.01 25 |
---|
338 | newh1d hSigmaSideCycl1 -0.01 0.01 25 |
---|
339 | |
---|
340 | graphicatt "" |
---|
341 | |
---|
342 | newwin 1 1 |
---|
343 | n/proj hSigmaSideRaw0 onoffevol.onoffRaw01420side ! ! ! "blue cpts notit" |
---|
344 | n/proj hSigmaSideRaw1 onoffevol.onoffRaw11420side ! ! ! "same red cpts notit" |
---|
345 | settitle "Raw ON-OFF ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles " ' ' $defatt |
---|
346 | setaxelabels "(a.u)" "I[1418,1419]U[1422,1423]MHz Raw" $axedefatt |
---|
347 | |
---|
348 | newwin 1 1 |
---|
349 | n/proj hSigmaSideRun0 onoffevol.onoffRun01420side ! ! ! "blue cpts notit" |
---|
350 | n/proj hSigmaSideRun1 onoffevol.onoffRun11420side ! ! ! "same red cpts notit" |
---|
351 | settitle "ON-OFF Calib Run ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt |
---|
352 | setaxelabels "(a.u)" "I[1418,1419]U[1422,1423]MHz Run" $axedefatt |
---|
353 | |
---|
354 | |
---|
355 | newwin 1 1 |
---|
356 | n/proj hSigmaSideCycl0 onoffevol.onoffCycle01420side ! ! ! "blue cpts notit" |
---|
357 | n/proj hSigmaSideCycl1 onoffevol.onoffCycle11420side ! ! ! "same red cpts notit" |
---|
358 | settitle "ON-OFF Calib Cycle ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt |
---|
359 | setaxelabels "(a.u)" "I[1418,1419]U[1422,1423]MHz Cycle" $axedefatt |
---|
360 | |
---|
361 | |
---|
362 | endscript |
---|
363 | |
---|
364 | ########################################### |
---|
365 | defscript IntAt1420 |
---|
366 | |
---|
367 | |
---|
368 | #Follow up of the intensity arround the [${f1420low},${f1420high}]MHz |
---|
369 | #frequency in different calibration conditions with baseline removed |
---|
370 | # NO calibration |
---|
371 | # Calibration coeff. mean per Run |
---|
372 | # Calibration coeff. per cycles |
---|
373 | |
---|
374 | |
---|
375 | graphicatt "xylimits=0,500,-0.1,0.1" |
---|
376 | |
---|
377 | newwin 1 2 |
---|
378 | n/pl onoffevol.${nbins1420}*(onoffRaw01420-onoffRaw01420side)%cycle ! ! "blue cpts notit nsta" |
---|
379 | settitle "Raw ON-OFF ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles " ' ' $defatt |
---|
380 | n/pl onoffevol.${nbins1420}*(onoffRaw11420-onoffRaw11420side)%cycle ! ! "red cpts notit nsta" |
---|
381 | setaxelabels "cycle" "I 1420MHz Raw (a.u)" $axedefatt |
---|
382 | |
---|
383 | |
---|
384 | newwin 1 2 |
---|
385 | n/pl onoffevol.${nbins1420}*(onoffRun01420-onoffRun01420side)%cycle ! ! "blue cpts notit nsta" |
---|
386 | settitle "ON-OFF Calib Run ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt |
---|
387 | n/pl onoffevol.${nbins1420}*(onoffRun11420-onoffRun11420side)%cycle ! ! "red cpts notit nsta" |
---|
388 | setaxelabels "cycle" "I 1420MHz Run (a.u)" $axedefatt |
---|
389 | |
---|
390 | |
---|
391 | newwin 1 2 |
---|
392 | n/pl onoffevol.${nbins1420}*(onoffCycle01420-onoffCycle01420side)%cycle ! ! "blue cpts notit nsta" |
---|
393 | settitle "ON-OFF Calib Cycle ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt |
---|
394 | n/pl onoffevol.${nbins1420}*(onoffCycle11420-onoffCycle11420side)%cycle ! ! "red cpts notit nsta" |
---|
395 | setaxelabels "cycle" "I 1420MHz Cycle (a.u)" $axedefatt |
---|
396 | |
---|
397 | |
---|
398 | newh1d h1420IntRaw0 -0.1 0.1 25 |
---|
399 | newh1d h1420IntRaw1 -0.1 0.1 25 |
---|
400 | newh1d h1420IntRun0 -0.1 0.1 25 |
---|
401 | newh1d h1420IntRun1 -0.1 0.1 25 |
---|
402 | newh1d h1420IntCycl0 -0.1 0.1 25 |
---|
403 | newh1d h1420IntCycl1 -0.1 0.1 25 |
---|
404 | |
---|
405 | graphicatt "" |
---|
406 | |
---|
407 | newwin 1 1 |
---|
408 | n/proj h1420IntRaw0 onoffevol.${nbins1420}*(onoffRaw01420-onoffRaw01420side) ! ! ! "blue cpts notit" |
---|
409 | n/proj h1420IntRaw1 onoffevol.${nbins1420}*(onoffRaw11420-onoffRaw11420side) ! ! ! "same red cpts notit" |
---|
410 | settitle "Raw ON-OFF ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles " ' ' $defatt |
---|
411 | setaxelabels "(a.u)" "I 1420MHz Raw" $axedefatt |
---|
412 | |
---|
413 | newwin 1 1 |
---|
414 | n/proj h1420IntRun0 onoffevol.${nbins1420}*(onoffRun01420-onoffRun01420side) ! ! ! "blue cpts notit" |
---|
415 | n/proj h1420IntRun1 onoffevol.${nbins1420}*(onoffRun11420-onoffRun11420side) ! ! ! "same red cpts notit" |
---|
416 | settitle "ON-OFF Calib Run ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt |
---|
417 | setaxelabels "(a.u)" "I 1420MHz Run" $axedefatt |
---|
418 | |
---|
419 | |
---|
420 | |
---|
421 | newwin 1 1 |
---|
422 | n/proj h1420IntCycl0 onoffevol.${nbins1420}*(onoffCycle01420-onoffCycle01420side) ! ! ! "blue cpts notit" |
---|
423 | n/proj h1420IntCycl1 onoffevol.${nbins1420}*(onoffCycle11420-onoffCycle11420side) ! ! ! "same red cpts notit" |
---|
424 | settitle "ON-OFF Calib Cycle ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt |
---|
425 | setaxelabels "(a.u)" "I 1420MHz Cycle" $axedefatt |
---|
426 | |
---|
427 | |
---|
428 | |
---|
429 | endscript |
---|
430 | ################################################## |
---|
431 | defscript diffOnOff |
---|
432 | |
---|
433 | # |
---|
434 | #Display the ON-OFF over the whole freq. range in diffrent Calib. conditions |
---|
435 | # NO calibration |
---|
436 | # Calibration coeff. mean per Run |
---|
437 | # Calibration coeff. per cycles |
---|
438 | # |
---|
439 | |
---|
440 | graphicatt "xylimits=1250,1500,-0.01,0.01" |
---|
441 | del sonoffovoff0 sonoffovoff1 |
---|
442 | objaoper meanOvOffNoCalib row 0 sonoffovoff0 |
---|
443 | objaoper meanOvOffNoCalib row 1 sonoffovoff1 |
---|
444 | newwin 1 1 |
---|
445 | plot2d sonoffovoff0 (n/8192)*250+1250 val n>0 "blue cpts notit nsta" |
---|
446 | plot2d sonoffovoff1 (n/8192)*250+1250 val n>0 "red same cpts notit nsta" |
---|
447 | settitle "Raw (ON-OFF)/OFF ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt |
---|
448 | setaxelabels "Freq. (MHz)" "I (a.u)" $axedefatt |
---|
449 | |
---|
450 | |
---|
451 | |
---|
452 | graphicatt "xylimits=1250,1500,-0.01,0.01" |
---|
453 | del snocal0 snocal1 |
---|
454 | objaoper meanNoCalib row 0 snocal0 |
---|
455 | objaoper meanNoCalib row 1 snocal1 |
---|
456 | newwin 1 1 |
---|
457 | plot2d snocal0 (n/8192)*250+1250 val n>0 "blue cpts notit nsta" |
---|
458 | plot2d snocal1 (n/8192)*250+1250 val n>0 "red same cpts notit nsta" |
---|
459 | settitle "Raw ON-OFF ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt |
---|
460 | setaxelabels "Freq. (MHz)" "I (a.u)" $axedefatt |
---|
461 | |
---|
462 | del sruncal0 sruncal1 |
---|
463 | objaoper meanPerRunCalib row 0 sruncal0 |
---|
464 | objaoper meanPerRunCalib row 1 sruncal1 |
---|
465 | newwin 1 1 |
---|
466 | plot2d sruncal0 (n/8192)*250+1250 val n>0 "blue cpts notit nsta" |
---|
467 | plot2d sruncal1 (n/8192)*250+1250 val n>0 "red same cpts notit nsta" |
---|
468 | settitle "ON-OFF Calib Run ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt |
---|
469 | setaxelabels "Freq. (MHz)" "I (a.u)" $axedefatt |
---|
470 | |
---|
471 | newwin 1 1 |
---|
472 | del scyclecal0 scyclecal1 |
---|
473 | objaoper meanPerCycleCalib row 0 scyclecal0 |
---|
474 | objaoper meanPerCycleCalib row 1 scyclecal1 |
---|
475 | plot2d scyclecal0 (n/8192)*250+1250 val n>0 "blue cpts notit nsta" |
---|
476 | plot2d scyclecal1 (n/8192)*250+1250 val n>0 "red same cpts notit nsta" |
---|
477 | settitle "ON-OFF Calib Cycle ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt |
---|
478 | setaxelabels "Freq. (MHz)" "I (a.u)" $axedefatt |
---|
479 | |
---|
480 | |
---|
481 | endscript |
---|
482 | |
---|
483 | |
---|
484 | |
---|
485 | |
---|
486 | #Main |
---|
487 | #use minuscule for source label |
---|
488 | |
---|
489 | |
---|
490 | |
---|
491 | |
---|
492 | openppf onoffsurvey_${source}-${ncycles}Cycles.ppf |
---|
493 | print onoffevol |
---|
494 | |
---|
495 | set defatt "font=helvetica,bold,20 fixedfonsize" |
---|
496 | set axedefatt "font=helvetica,bold,30 fixedfonsize grid" |
---|
497 | |
---|
498 | set defatt "" |
---|
499 | set axedefatt "grid" |
---|
500 | |
---|
501 | graphicatt "" |
---|
502 | setaxesatt "$axedefatt" |
---|
503 | |
---|
504 | |
---|
505 | #diffOnOff |
---|
506 | #evolAt1420Freq |
---|
507 | #evolAt1420SideFreq |
---|
508 | #IntAt1420 |
---|