source: BAORadio/AmasNancay/trunk/etude_mergeAna.pic @ 604

Last change on this file since 604 was 604, checked in by campagne, 13 years ago

add the ON/Filtered_OFF and OFF/Filetred_OFF (jec)

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