1 | #source should be in minuscule letters |
---|
2 | # gain = 1 if on,off have been divided by gain |
---|
3 | |
---|
4 | set source $1 |
---|
5 | set ncycles $2 |
---|
6 | set gain $3 |
---|
7 | |
---|
8 | #c++compile meanSigSum |
---|
9 | #c++link meanSigSum.so meanSigSum |
---|
10 | |
---|
11 | set defatt "font=helvetica,bold,20 fixedfonsize" |
---|
12 | set axedefatt "font=helvetica,bold,30 fixedfonsize grid" |
---|
13 | |
---|
14 | set defatt "" |
---|
15 | set axedefatt "grid" |
---|
16 | |
---|
17 | graphicatt "" |
---|
18 | setaxesatt "$axedefatt" |
---|
19 | |
---|
20 | set path "/sps/baoradio/AmasNancay/AST" |
---|
21 | |
---|
22 | if ( $gain == "0" ) then |
---|
23 | openppf ${path}/rawOnOffDiffNoGain_${source}-${ncycles}Cycles.ppf |
---|
24 | echo "Opening file ${path}/rawOnOffDiffNoGain_${source}-${ncycles}Cycles.ppf" |
---|
25 | else |
---|
26 | openppf ${path}/rawOnOffDiff_${source}-${ncycles}Cycles.ppf |
---|
27 | echo "Opening file ${path}/rawOnOffDiff_${source}-${ncycles}Cycles.ppf" |
---|
28 | endif |
---|
29 | |
---|
30 | # Abell 85, 500 cycles |
---|
31 | if ( ${source} == "abell85" ) then |
---|
32 | set f1420low 1420.2 |
---|
33 | set f1420high 1420.6 |
---|
34 | set packVal "1 10 25 50 100" |
---|
35 | endif |
---|
36 | |
---|
37 | # Abell 1205, 600, 750 cycles |
---|
38 | if ( ${source} == "abell1205" ) then |
---|
39 | set f1420low 1420.1 |
---|
40 | set f1420high 1420.6 |
---|
41 | if ( $ncycles == 600 ) then |
---|
42 | set packVal "1 10 25 50 100 120" |
---|
43 | else |
---|
44 | set packVal "1 10 15 50 75 125 150" |
---|
45 | endif |
---|
46 | endif |
---|
47 | |
---|
48 | # Abell 2440, 210 cycles |
---|
49 | if ( ${source} == "abell2440" ) then |
---|
50 | set f1420low 1420.4 |
---|
51 | set f1420high 1420.7 |
---|
52 | set packVal "1 10 25 42" |
---|
53 | endif |
---|
54 | |
---|
55 | # All clusters, 1549 cycles |
---|
56 | if ( ${source} == "abell85-abell2440-abell1205" ) then |
---|
57 | set f1420low 1420.1 |
---|
58 | set f1420high 1420.7 |
---|
59 | set packVal "1 10 25 50 100 260" |
---|
60 | endif |
---|
61 | |
---|
62 | |
---|
63 | echo "f1420low=${f1420low}, f1420high=${f1420high}" |
---|
64 | echo "Packing values="${packVal} |
---|
65 | |
---|
66 | nbins1420 = floor((${f1420high}-${f1420low})/250*8192) |
---|
67 | #echo $nbins1420 |
---|
68 | |
---|
69 | clearscript evolAt1420Freq |
---|
70 | clearscript evolAt1420SideFreq |
---|
71 | clearscript evolAt1410a1415OffOn |
---|
72 | clearscript sigmaRaw1420Side |
---|
73 | clearscript sigmaRaw1410a1415 |
---|
74 | clearscript sigmaRawBand |
---|
75 | clearscript IntAt1420 |
---|
76 | clearscript diffOnOff |
---|
77 | ########################################### |
---|
78 | defscript evolAt1420Freq |
---|
79 | |
---|
80 | |
---|
81 | #Follow up of the intensity arround the [1420,1421]MHz frequency in different calibration conditions |
---|
82 | # NO calibration |
---|
83 | |
---|
84 | graphicatt "xylimits=0,500,-0.01,0.01" |
---|
85 | |
---|
86 | newwin 1 2 |
---|
87 | n/pl onoffevol.onoffRaw01420%cycle ! ! "blue cpts notit nsta" |
---|
88 | settitle "Raw (ON-OFF)/OFF ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles " ' ' $defatt |
---|
89 | n/pl onoffevol.onoffRaw11420%cycle ! ! "red cpts notit nsta" |
---|
90 | setaxelabels "cycle" "I[${f1420low},${f1420high}]MHz Raw (a.u)" $axedefatt |
---|
91 | |
---|
92 | |
---|
93 | newh1d hSigmaRaw0 -0.01 0.01 25 |
---|
94 | newh1d hSigmaRaw1 -0.01 0.01 25 |
---|
95 | |
---|
96 | graphicatt "" |
---|
97 | |
---|
98 | newwin 1 1 |
---|
99 | n/proj hSigmaRaw0 onoffevol.onoffRaw01420 ! ! ! "blue cpts notit" |
---|
100 | n/proj hSigmaRaw1 onoffevol.onoffRaw11420 ! ! ! "same red cpts notit" |
---|
101 | settitle "Raw (ON-OFF)/OFF ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles " ' ' $defatt |
---|
102 | setaxelabels "(a.u)" "I[${f1420low},${f1420high}]MHz Raw" $axedefatt |
---|
103 | |
---|
104 | endscript |
---|
105 | ################################################## |
---|
106 | defscript sigmaRaw1420Side |
---|
107 | |
---|
108 | c++compile rebining |
---|
109 | c++link rebining.so dorebin |
---|
110 | |
---|
111 | #col 3 = onoffRaw01420side Ch 0 |
---|
112 | #col 4 = onoffRaw11420side Ch 1 |
---|
113 | |
---|
114 | ntcol2var onoffevol 3 linCh0All |
---|
115 | line2vec vecCh0All $linCh0All |
---|
116 | |
---|
117 | ntcol2var onoffevol 4 linCh1All |
---|
118 | line2vec vecCh1All $linCh1All |
---|
119 | |
---|
120 | #packing values only valid for 500 cycles... |
---|
121 | set packVal "1 10 25 50 100" |
---|
122 | set sigmaCh0 "" |
---|
123 | set errsigCh0 "" |
---|
124 | set sigmaCh1 "" |
---|
125 | set errsigCh1 "" |
---|
126 | |
---|
127 | foreach ipack ( $packVal ) |
---|
128 | |
---|
129 | #Packing per ipack |
---|
130 | del invec |
---|
131 | del outvec |
---|
132 | cp vecCh0All invec |
---|
133 | call dorebin $ipack |
---|
134 | mean0 = ${outvec.sum}/${outvec.size} |
---|
135 | sigma0 = sqrt(${outvec.sumsq}/${outvec.size}-${mean0}*${mean0}) |
---|
136 | errsig0 = ${sigma0}/sqrt(2*${outvec.size}) |
---|
137 | set sigmaCh0 "${sigmaCh0} ${sigma0}" |
---|
138 | set errsigCh0 "${errsigCh0} ${errsig0}" |
---|
139 | # |
---|
140 | del invec |
---|
141 | del outvec |
---|
142 | cp vecCh1All invec |
---|
143 | call dorebin $ipack |
---|
144 | mean1 = ${outvec.sum}/${outvec.size} |
---|
145 | sigma1 = sqrt(${outvec.sumsq}/${outvec.size}-${mean1}*${mean1}) |
---|
146 | errsig1 = ${sigma1}/sqrt(2*${outvec.size}) |
---|
147 | set sigmaCh1 "${sigmaCh1} ${sigma1}" |
---|
148 | set errsigCh1 "${errsigCh1} ${errsig1}" |
---|
149 | end |
---|
150 | |
---|
151 | |
---|
152 | newnt nt0 x y ey |
---|
153 | newnt nt1 x y ey |
---|
154 | |
---|
155 | set x0 ( $packVal ) |
---|
156 | set y0 ( $sigmaCh0 ) |
---|
157 | set ey0 ( $errsigCh0 ) |
---|
158 | |
---|
159 | set x1 ( $packVal ) |
---|
160 | set y1 ( $sigmaCh1 ) |
---|
161 | set ey1 ( $errsigCh1 ) |
---|
162 | |
---|
163 | for i 0:$#x0 |
---|
164 | line2nt nt0 $x0[i] $y0[i] $ey0[i] |
---|
165 | line2nt nt1 $x1[i] $y1[i] $ey1[i] |
---|
166 | end |
---|
167 | |
---|
168 | |
---|
169 | newwin 1 1 |
---|
170 | plot2de nt0 x y 0 ey 1 "blue marker=fcircle,9 notit nsta" |
---|
171 | plot2de nt1 x y 0 ey 1 "same red marker=fcircle,9 notit nsta" |
---|
172 | n = ${#x0}-1 |
---|
173 | func $y0[0]/sqrt(x) $x0[0] $x0[n] 100 "same" |
---|
174 | settitle "Sigma [1418,1419]U[1422,1423]MHz ${source} Ch 0 (blue) Ch 1 (red)" ' ' $defatt |
---|
175 | setaxelabels "num of cycles" "Sigma (a.u)" $axedefatt |
---|
176 | |
---|
177 | endscript |
---|
178 | ################################################## |
---|
179 | defscript sigmaRaw1410a1415 |
---|
180 | |
---|
181 | c++compile rebining |
---|
182 | c++link rebining.so dorebin |
---|
183 | |
---|
184 | |
---|
185 | #col 5 = onoffRaw0f14101415 Ch 0 |
---|
186 | #col 6 = onoffRaw1f14101415 Ch 1 |
---|
187 | |
---|
188 | ntcol2var onoffevol 5 linCh0All |
---|
189 | line2vec vecCh0All $linCh0All |
---|
190 | |
---|
191 | ntcol2var onoffevol 6 linCh1All |
---|
192 | line2vec vecCh1All $linCh1All |
---|
193 | |
---|
194 | #packing values only valid for 500 cycles... |
---|
195 | set packVal "1 10 25 50 100" |
---|
196 | set sigmaCh0 "" |
---|
197 | set errsigCh0 "" |
---|
198 | set sigmaCh1 "" |
---|
199 | set errsigCh1 "" |
---|
200 | |
---|
201 | |
---|
202 | foreach ipack ( $packVal ) |
---|
203 | |
---|
204 | #Packing per ipack |
---|
205 | del invec |
---|
206 | del outvec |
---|
207 | cp vecCh0All invec |
---|
208 | call dorebin $ipack |
---|
209 | mean0 = ${outvec.sum}/${outvec.size} |
---|
210 | sigma0 = sqrt(${outvec.sumsq}/${outvec.size}-${mean0}*${mean0}) |
---|
211 | errsig0 = ${sigma0}/sqrt(2*${outvec.size}) |
---|
212 | set sigmaCh0 "${sigmaCh0} ${sigma0}" |
---|
213 | set errsigCh0 "${errsigCh0} ${errsig0}" |
---|
214 | # |
---|
215 | del invec |
---|
216 | del outvec |
---|
217 | cp vecCh1All invec |
---|
218 | call dorebin $ipack |
---|
219 | mean1 = ${outvec.sum}/${outvec.size} |
---|
220 | sigma1 = sqrt(${outvec.sumsq}/${outvec.size}-${mean1}*${mean1}) |
---|
221 | errsig1 = ${sigma1}/sqrt(2*${outvec.size}) |
---|
222 | set sigmaCh1 "${sigmaCh1} ${sigma1}" |
---|
223 | set errsigCh1 "${errsigCh1} ${errsig1}" |
---|
224 | end |
---|
225 | |
---|
226 | |
---|
227 | newnt nt0 x y ey |
---|
228 | newnt nt1 x y ey |
---|
229 | |
---|
230 | set x0 ( $packVal ) |
---|
231 | set y0 ( $sigmaCh0 ) |
---|
232 | set ey0 ( $errsigCh0 ) |
---|
233 | |
---|
234 | set x1 ( $packVal ) |
---|
235 | set y1 ( $sigmaCh1 ) |
---|
236 | set ey1 ( $errsigCh1 ) |
---|
237 | |
---|
238 | for i 0:$#x0 |
---|
239 | line2nt nt0 $x0[i] $y0[i] $ey0[i] |
---|
240 | line2nt nt1 $x1[i] $y1[i] $ey1[i] |
---|
241 | end |
---|
242 | |
---|
243 | |
---|
244 | newwin 1 1 |
---|
245 | plot2de nt0 x y 0 ey 1 "blue marker=fcircle,9 notit nsta" |
---|
246 | plot2de nt1 x y 0 ey 1 "same red marker=fcircle,9 notit nsta" |
---|
247 | n = ${#x0}-1 |
---|
248 | func $y0[0]/sqrt(x) $x0[0] $x0[n] 100 "same" |
---|
249 | settitle "Sigma [1410,1415]MHz ${source} Ch 0 (blue) Ch 1 (red)" ' ' $defatt |
---|
250 | setaxelabels "num of cycles" "Sigma (a.u)" $axedefatt |
---|
251 | |
---|
252 | endscript |
---|
253 | ########################################### |
---|
254 | # Old function sigmaRaw1400a1420 |
---|
255 | defscript sigmaRawBand |
---|
256 | # flow,fhigh = frequency limits for integration band |
---|
257 | # offFilt = 1 we divide on-off by filtered Off |
---|
258 | |
---|
259 | set flow $1 |
---|
260 | set fhigh $2 |
---|
261 | set offFilt $3 |
---|
262 | set nclusters $4 |
---|
263 | graphicatt "" |
---|
264 | |
---|
265 | if ( $nclusters == 1 ) then |
---|
266 | ## Individual clusters (update of mergeAnaFiles.cc on 09/01/2012) |
---|
267 | ## mergeAnaFiles.cc -> meanRawDiffOnOffCycles -> rawOnOffDiff_[source]-[n]Cycles.ppf |
---|
268 | ## Frequency bands [1405,1415], [1405,1410], [1410,1415] MHz |
---|
269 | ## [1405,1415]: col 11,12 = onoffRaw[0,1]f14051415 Ch[0,1] (ON-OFF)/OFF_filt |
---|
270 | ## [1405,1410]: col 13,14 = onoffRaw[0,1]f14051410 Ch[0,1] |
---|
271 | ## [1410,1415]: col 5, 6 = onoffRaw[0,1]f14101415 Ch[0,1] |
---|
272 | ## [1405,1415]: col 15,16 = diffonoffRaw[0,1]f14051415 Ch[0,1] (ON-OFF) |
---|
273 | ## [1405,1410]: col 17,18 = diffonoffRaw[0,1]f14051410 Ch[0,1] |
---|
274 | ## [1410,1415]: col 19,20 = diffonoffRaw[0,1]f14101415 Ch[0,1] |
---|
275 | if ( $flow == 1405 ) then |
---|
276 | if ( $fhigh == 1415 ) then |
---|
277 | if ( $offFilt == 1 ) then |
---|
278 | set col0 11 |
---|
279 | set col1 12 |
---|
280 | else |
---|
281 | set col0 15 |
---|
282 | set col1 16 |
---|
283 | endif |
---|
284 | endif |
---|
285 | if ( $fhigh == 1410 ) then |
---|
286 | if ( $offFilt == 1 ) then |
---|
287 | set col0 13 |
---|
288 | set col1 14 |
---|
289 | else |
---|
290 | set col0 17 |
---|
291 | set col1 18 |
---|
292 | endif |
---|
293 | endif |
---|
294 | endif |
---|
295 | if ( $flow == 1410 ) then |
---|
296 | if ( $fhigh == 1415 ) then |
---|
297 | if ( $offFilt == 1 ) then |
---|
298 | set col0 5 |
---|
299 | set col1 6 |
---|
300 | else |
---|
301 | set col0 19 |
---|
302 | set col1 20 |
---|
303 | endif |
---|
304 | endif |
---|
305 | endif |
---|
306 | |
---|
307 | ntcol2var onoffevol $col0 linCh0All |
---|
308 | line2vec vecCh0All $linCh0All |
---|
309 | ntcol2var onoffevol $col1 linCh1All |
---|
310 | line2vec vecCh1All $linCh1All |
---|
311 | else |
---|
312 | ## Execute if analysing All Clusters abell85-abell2440-abell1205 |
---|
313 | ## mergeAnaFiles.cc -> MeanRawDiffOnOffAllClusters -> rawOnOffDiff_[sources]-[n]Cycles.ppf |
---|
314 | ## Shifts the distribution of each cluster to mean~0, to avoid |
---|
315 | ## offset problems when regrouping values |
---|
316 | ## col 5,6 = onoffRaw0f14101415 Ch 0,1 [1410,1415]MHz |
---|
317 | ## col 7,8 = onoffRaw1f141014125 Ch 0,1 [1410,1412.5]MHz |
---|
318 | ## col 9,10 = onoffRaw1f14101411 Ch 0,1 [1410,1411]MHz |
---|
319 | |
---|
320 | if ( $flow == 1410 ) then |
---|
321 | if ( $fhigh == 1415 ) then |
---|
322 | set col0 5 |
---|
323 | set col1 6 |
---|
324 | endif |
---|
325 | if ( $fhigh == 14125 ) then |
---|
326 | set col0 7 |
---|
327 | set col1 8 |
---|
328 | endif |
---|
329 | if ( $fhigh == 1411 ) then |
---|
330 | set col0 9 |
---|
331 | set col1 10 |
---|
332 | endif |
---|
333 | endif |
---|
334 | echo Analysing ntuple columns $col0, $col1 |
---|
335 | |
---|
336 | ntcol2var onoffevol $col0 linCh0All |
---|
337 | line2vec invecCh0All $linCh0All |
---|
338 | ntcol2var onoffevol $col1 linCh1All |
---|
339 | line2vec invecCh1All $linCh1All |
---|
340 | |
---|
341 | del v85 v2440 v1205 |
---|
342 | exptovec v85 onoffevol cycletot-1 srcID==85 |
---|
343 | set v85_first ${v85.min} |
---|
344 | set v85_last ${v85.max} |
---|
345 | exptovec v2440 onoffevol cycletot-1 srcID==2440 |
---|
346 | set v2440_first ${v2440.min} |
---|
347 | set v2440_last ${v2440.max} |
---|
348 | exptovec v1205 onoffevol cycletot-1 srcID==1205 |
---|
349 | set v1205_first ${v1205.min} |
---|
350 | set v1205_last ${v1205.max} |
---|
351 | |
---|
352 | del vecCh085 vecCh02440 vecCh01205 vecCh185 vecCh12440 vecCh11205 vecCh0All vecCh1All |
---|
353 | h/copy invecCh0All vecCh085 ${v85_first}:${v85_last} |
---|
354 | h/copy invecCh0All vecCh02440 $v2440_first:$v2440_last |
---|
355 | h/copy invecCh0All vecCh01205 $v1205_first:$v1205_last |
---|
356 | h/copy invecCh1All vecCh185 $v85_first:$v85_last |
---|
357 | h/copy invecCh1All vecCh12440 $v2440_first:$v2440_last |
---|
358 | h/copy invecCh1All vecCh11205 $v1205_first:$v1205_last |
---|
359 | |
---|
360 | c++exec double m,s; int l=-1; \ |
---|
361 | MeanSigma(vecCh085,m,s) ; vecCh085 -= m;\ |
---|
362 | MeanSigma(vecCh02440,m,s); vecCh02440 -= m;\ |
---|
363 | MeanSigma(vecCh01205,m,s); vecCh01205 -= m;\ |
---|
364 | MeanSigma(vecCh185,m,s) ; vecCh185 -= m;\ |
---|
365 | MeanSigma(vecCh12440,m,s); vecCh12440 -= m;\ |
---|
366 | MeanSigma(vecCh11205,m,s); vecCh11205 -= m;\ |
---|
367 | TVector<r_8> vecCh0All(invecCh0All.NElts()); KeepObj(vecCh0All); \ |
---|
368 | TVector<r_8> vecCh1All(invecCh1All.NElts()); KeepObj(vecCh1All); \ |
---|
369 | for (int i=0;i<vecCh085.NElts();i++){l++;vecCh0All(l)=vecCh085(i);vecCh1All(l)=vecCh185(i);}\ |
---|
370 | for (int j=0;j<vecCh02440.NElts();j++){l++;vecCh0All(l)=vecCh02440(j);vecCh1All(l)=vecCh12440(j);}\ |
---|
371 | for (int k=0;k<vecCh01205.NElts();k++){l++;vecCh0All(l)=vecCh01205(k);vecCh1All(l)=vecCh11205(k);} |
---|
372 | ## End All Clusters |
---|
373 | endif |
---|
374 | |
---|
375 | set sigmaCh0 "" |
---|
376 | set errsigCh0 "" |
---|
377 | set sigmaCh1 "" |
---|
378 | set errsigCh1 "" |
---|
379 | |
---|
380 | c++compile rebining |
---|
381 | c++link rebining.so dorebin |
---|
382 | |
---|
383 | foreach ipack ( $packVal ) |
---|
384 | |
---|
385 | #Packing per ipack |
---|
386 | del invec |
---|
387 | del outvec |
---|
388 | cp vecCh0All invec |
---|
389 | call dorebin $ipack |
---|
390 | mean0 = ${outvec.sum}/${outvec.size} |
---|
391 | sigma0 = sqrt(${outvec.sumsq}/${outvec.size}-${mean0}*${mean0}) |
---|
392 | errsig0 = ${sigma0}/sqrt(2*${outvec.size}) |
---|
393 | set sigmaCh0 "${sigmaCh0} ${sigma0}" |
---|
394 | set errsigCh0 "${errsigCh0} ${errsig0}" |
---|
395 | # |
---|
396 | del invec |
---|
397 | del outvec |
---|
398 | cp vecCh1All invec |
---|
399 | call dorebin $ipack |
---|
400 | mean1 = ${outvec.sum}/${outvec.size} |
---|
401 | sigma1 = sqrt(${outvec.sumsq}/${outvec.size}-${mean1}*${mean1}) |
---|
402 | errsig1 = ${sigma1}/sqrt(2*${outvec.size}) |
---|
403 | set sigmaCh1 "${sigmaCh1} ${sigma1}" |
---|
404 | set errsigCh1 "${errsigCh1} ${errsig1}" |
---|
405 | end |
---|
406 | |
---|
407 | newnt nt0 x y ey |
---|
408 | newnt nt1 x y ey |
---|
409 | |
---|
410 | set x0 ( $packVal ) |
---|
411 | set y0 ( $sigmaCh0 ) |
---|
412 | set ey0 ( $errsigCh0 ) |
---|
413 | |
---|
414 | set x1 ( $packVal ) |
---|
415 | set y1 ( $sigmaCh1 ) |
---|
416 | set ey1 ( $errsigCh1 ) |
---|
417 | |
---|
418 | for i 0:$#x0 |
---|
419 | line2nt nt0 $x0[i] $y0[i] $ey0[i] |
---|
420 | line2nt nt1 $x1[i] $y1[i] $ey1[i] |
---|
421 | end |
---|
422 | |
---|
423 | newwin 1 1 |
---|
424 | plot2de nt0 x y 0 ey 1 "blue marker=fcircle,9 notit nsta" |
---|
425 | plot2de nt1 x y 0 ey 1 "same red marker=fcircle,9 notit nsta" |
---|
426 | n = ${#x0}-1 |
---|
427 | func $y0[0]/sqrt(x) $x0[0] $x0[n] 100 "same" |
---|
428 | settitle "Sigma [$flow,$fhigh]MHz ${source} Ch 0 (blue) Ch 1 (red)" ' ' $defatt |
---|
429 | setaxelabels "num of cycles" "Sigma (a.u)" $axedefatt |
---|
430 | |
---|
431 | del h0 h1 |
---|
432 | set xmin -0.01 |
---|
433 | set xmax 0.01 |
---|
434 | newh1d h0 $xmin $xmax 200 |
---|
435 | newh1d h1 $xmin $xmax 200 |
---|
436 | if ( $offFilt == 0 ) then |
---|
437 | if ( $gain == 0 ) then |
---|
438 | del h0 h1 |
---|
439 | newh1d h0 -0.0001 0.0001 200 |
---|
440 | newh1d h1 -0.0001 0.0001 200 |
---|
441 | endif |
---|
442 | newwin 1 1 |
---|
443 | n/proj h0 onoffevol.diffonoffRaw0f$flow$fhigh ! ! ! "blue notit" |
---|
444 | n/proj h1 onoffevol.diffonoffRaw1f$flow$fhigh ! ! ! "same red notit" |
---|
445 | settitle "diffonoffRaw [$flow,$fhigh]MHz ${source} Ch 0 (blue) Ch 1 (red)" ' ' $defatt |
---|
446 | newwin 1 1 |
---|
447 | n/pl onoffevol.diffonoffRaw1f$flow$fhigh%cycle ! ! "cpts red notit" |
---|
448 | n/pl onoffevol.diffonoffRaw0f$flow$fhigh%cycle ! ! "cpts same blue notit" |
---|
449 | settitle "diffonoffRaw [$flow,$fhigh]MHz ${source} Ch 0 (blue) Ch 1 (red)" ' ' $defatt |
---|
450 | else |
---|
451 | newwin 1 1 |
---|
452 | n/proj h0 onoffevol.onoffRaw0f$flow$fhigh ! ! ! "cpts blue notit" |
---|
453 | n/proj h1 onoffevol.onoffRaw1f$flow$fhigh ! ! ! "cpts same red notit" |
---|
454 | settitle "onoffRaw [$flow,$fhigh]MHz ${source} Ch 0 (blue) Ch 1 (red)" ' ' $defatt |
---|
455 | newwin 1 1 |
---|
456 | n/pl onoffevol.onoffRaw0f$flow$fhigh%cycle ! ! "cpts blue notit" |
---|
457 | n/pl onoffevol.onoffRaw1f$flow$fhigh%cycle ! ! "cpts same red notit" |
---|
458 | settitle "onoffRaw [$flow,$fhigh]MHz ${source} Ch 0 (blue) Ch 1 (red)" ' ' $defatt |
---|
459 | endif |
---|
460 | |
---|
461 | endscript |
---|
462 | ########################################## |
---|
463 | defscript evolAt1400a1415OffOn |
---|
464 | |
---|
465 | graphicatt "xylimits=0,${ncycles},0.99,1.02" |
---|
466 | |
---|
467 | newwin 1 1 |
---|
468 | n/pl onoffevol.offRaw0f14001415%cycle ! ! "blue cpts notit nsta" |
---|
469 | n/pl onoffevol.offRaw1f14001415%cycle ! ! "same red cpts notit nsta" |
---|
470 | n/pl onoffevol.onRaw0f14001415%cycle ! ! "same cyan cpts notit nsta" |
---|
471 | n/pl onoffevol.onRaw1f14001415%cycle ! ! "same orange cpts notit nsta" |
---|
472 | settitle "Raw OFF and ON ${source} Ch 0 (blue/cyan) Ch 1 (red/orange) ${ncycles}cycles " ' ' $defatt |
---|
473 | setaxelabels "cycle" "I[1400,1415]MHz Raw (a.u)" $axedefatt |
---|
474 | |
---|
475 | endscript |
---|
476 | ########################################## |
---|
477 | defscript evolAt1410a1415OffOn |
---|
478 | |
---|
479 | graphicatt "xylimits=0,${ncycles},0.99,1.02" |
---|
480 | |
---|
481 | newwin 1 1 |
---|
482 | n/pl onoffevol.offRaw0f14101415%cycle ! ! "blue cpts notit nsta" |
---|
483 | n/pl onoffevol.offRaw1f14101415%cycle ! ! "same red cpts notit nsta" |
---|
484 | n/pl onoffevol.onRaw0f14101415%cycle ! ! "same cyan cpts notit nsta" |
---|
485 | n/pl onoffevol.onRaw1f14101415%cycle ! ! "same orange cpts notit nsta" |
---|
486 | settitle "Raw (OFF,ON)/OFF ${source} Ch 0 (blue/cyan) Ch 1 (red/orange) ${ncycles}cycles " ' ' $defatt |
---|
487 | setaxelabels "cycle" "I[1410,1415]MHz Raw (a.u)" $axedefatt |
---|
488 | |
---|
489 | graphicatt "xylimits=0,${ncycles},-0.005,0.005" |
---|
490 | newwin 1 1 |
---|
491 | n/pl onoffevol.(onRaw0f14101415-offRaw0f14101415)%cycle ! ! "blue cpts notit nsta" |
---|
492 | n/pl onoffevol.(onRaw1f14101415-offRaw1f14101415)%cycle ! ! "same red cpts notit nsta" |
---|
493 | settitle "Raw (ON-OFF)/OFF ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles " ' ' $defatt |
---|
494 | setaxelabels "cycle" "DI [1410,1415]MHz Raw (a.u)" $axedefatt |
---|
495 | |
---|
496 | endscript |
---|
497 | ########################################### |
---|
498 | defscript evolAt1420SideFreq |
---|
499 | |
---|
500 | |
---|
501 | #Follow up of the intensity arround the [${f1420low},${f1420high}]MHz frequency in different calibration conditions |
---|
502 | # NO calibration |
---|
503 | |
---|
504 | |
---|
505 | graphicatt "xylimits=0,500,-0.01,0.01" |
---|
506 | |
---|
507 | newwin 1 2 |
---|
508 | n/pl onoffevol.onoffRaw01420side%cycle ! ! "blue cpts notit nsta" |
---|
509 | settitle "Raw (ON-OFF)/OFF ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles " ' ' $defatt |
---|
510 | n/pl onoffevol.onoffRaw11420side%cycle ! ! "red cpts notit nsta" |
---|
511 | setaxelabels "cycle" "I[1418,1419]U[1422,1423]MHz Raw (a.u)" $axedefatt |
---|
512 | |
---|
513 | |
---|
514 | newh1d hSigmaSideRaw0 -0.01 0.01 25 |
---|
515 | newh1d hSigmaSideRaw1 -0.01 0.01 25 |
---|
516 | |
---|
517 | graphicatt "" |
---|
518 | |
---|
519 | newwin 1 1 |
---|
520 | n/proj hSigmaSideRaw0 onoffevol.onoffRaw01420side ! ! ! "blue cpts notit" |
---|
521 | n/proj hSigmaSideRaw1 onoffevol.onoffRaw11420side ! ! ! "same red cpts notit" |
---|
522 | settitle "Raw (ON-OFF)/OFF ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles " ' ' $defatt |
---|
523 | setaxelabels "(a.u)" "I[1418,1419]U[1422,1423]MHz Raw" $axedefatt |
---|
524 | |
---|
525 | endscript |
---|
526 | ########################################### |
---|
527 | defscript IntAt1420 |
---|
528 | |
---|
529 | |
---|
530 | #Follow up of the intensity arround the [${f1420low},${f1420high}]MHz |
---|
531 | #frequency in different calibration conditions with baseline removed |
---|
532 | # NO calibration |
---|
533 | |
---|
534 | graphicatt "xylimits=0,500,-0.1,0.1" |
---|
535 | |
---|
536 | newwin 1 2 |
---|
537 | n/pl onoffevol.${nbins1420}*(onoffRaw01420-onoffRaw01420side)%cycle ! ! "blue cpts notit nsta" |
---|
538 | settitle "Raw (ON-OFF)/OFF ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles " ' ' $defatt |
---|
539 | n/pl onoffevol.${nbins1420}*(onoffRaw11420-onoffRaw11420side)%cycle ! ! "red cpts notit nsta" |
---|
540 | setaxelabels "cycle" "I 1420MHz Raw (a.u)" $axedefatt |
---|
541 | |
---|
542 | |
---|
543 | |
---|
544 | newh1d h1420IntRaw0 -0.1 0.1 25 |
---|
545 | newh1d h1420IntRaw1 -0.1 0.1 25 |
---|
546 | |
---|
547 | graphicatt "" |
---|
548 | |
---|
549 | newwin 1 1 |
---|
550 | n/proj h1420IntRaw0 onoffevol.${nbins1420}*(onoffRaw01420-onoffRaw01420side) ! ! ! "blue cpts notit" |
---|
551 | n/proj h1420IntRaw1 onoffevol.${nbins1420}*(onoffRaw11420-onoffRaw11420side) ! ! ! "same red cpts notit" |
---|
552 | settitle "Raw (ON-OFF)/OFF ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles " ' ' $defatt |
---|
553 | setaxelabels "(a.u)" "I 1420MHz Raw" $axedefatt |
---|
554 | |
---|
555 | endscript |
---|
556 | ################################################## |
---|
557 | defscript diffOnOff |
---|
558 | |
---|
559 | graphicatt "xylimits=1250,1500,-0.01,0.01" |
---|
560 | |
---|
561 | del s0 s1 |
---|
562 | objaoper meanOvOffNoCalib row 0 s0 |
---|
563 | objaoper meanOvOffNoCalib row 1 s1 |
---|
564 | |
---|
565 | newwin |
---|
566 | plot2d s0 (n/8192)*250+1250 val n>0 "cpts blue notit nsta" |
---|
567 | plot2d s1 (n/8192)*250+1250 val n>0 "same cpts red notit nsta" |
---|
568 | settitle "plot Raw (ON-OFF)/OFF ${source} ${ncycles} cycles, Ch 0 (blue) Ch 1 (red)" |
---|
569 | setaxelabels "Freq. (MHz)" "I (a.u)" |
---|
570 | |
---|
571 | del stot |
---|
572 | c++exec TVector<r_4> stot=s0+s1; stot/=2.; KeepObj(stot); |
---|
573 | |
---|
574 | newwin |
---|
575 | plot2d stot (n/8192)*250+1250 val n>0 "cpts blue notit nsta" |
---|
576 | settitle "Mean Raw (ON-OFF)/OFF ${source} ${ncycles} cycles" |
---|
577 | setaxelabels "Freq. (MHz)" "I (a.u)" |
---|
578 | endscript |
---|
579 | ################################################## |
---|