source: BAORadio/AmasNancay/trunk/plotRawDiffOnOff.pic @ 633

Last change on this file since 633 was 633, checked in by campagne, 12 years ago

merging rev. jec+as

File size: 16.8 KB
Line 
1#source should be in minuscule letters
2# gain = 1 if on,off have been divided by gain
3
4set source $1
5set ncycles $2
6set gain $3
7
8#c++compile meanSigSum
9#c++link    meanSigSum.so meanSigSum
10
11set defatt "font=helvetica,bold,20 fixedfonsize"
12set axedefatt  "font=helvetica,bold,30 fixedfonsize grid"
13
14set defatt ""
15set axedefatt  "grid"
16
17graphicatt ""
18setaxesatt "$axedefatt"
19
20set path "/sps/baoradio/AmasNancay/AST"
21
22if ( $gain == "0" ) then
23  openppf ${path}/rawOnOffDiffNoGain_${source}-${ncycles}Cycles.ppf
24  echo "Opening file  ${path}/rawOnOffDiffNoGain_${source}-${ncycles}Cycles.ppf"
25else
26  openppf ${path}/rawOnOffDiff_${source}-${ncycles}Cycles.ppf
27  echo "Opening file  ${path}/rawOnOffDiff_${source}-${ncycles}Cycles.ppf"
28endif
29
30# Abell 85, 500 cycles
31if ( ${source} == "abell85" ) then
32  set f1420low 1420.2
33  set f1420high 1420.6
34  set packVal "1 10 25 50 100"
35endif
36
37# Abell 1205, 600, 750 cycles
38if ( ${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
46endif
47
48# Abell 2440, 210 cycles
49if ( ${source} == "abell2440" ) then
50  set f1420low 1420.4
51  set f1420high 1420.7
52  set packVal "1 10 25 42"
53endif
54
55# All clusters, 1549 cycles
56if ( ${source} == "abell85-abell2440-abell1205" ) then
57  set f1420low 1420.1
58  set f1420high 1420.7
59  set packVal "1 10 25 50 100 260"
60endif
61
62
63echo "f1420low=${f1420low}, f1420high=${f1420high}"
64echo "Packing values="${packVal}
65
66nbins1420 = floor((${f1420high}-${f1420low})/250*8192)
67#echo $nbins1420
68
69clearscript evolAt1420Freq
70clearscript evolAt1420SideFreq
71clearscript evolAt1410a1415OffOn
72clearscript sigmaRaw1420Side
73clearscript sigmaRaw1410a1415
74clearscript sigmaRawBand
75clearscript IntAt1420
76clearscript diffOnOff
77###########################################
78defscript evolAt1420Freq
79
80
81#Follow up of the intensity arround the [1420,1421]MHz frequency in different calibration conditions
82# NO calibration
83
84graphicatt "xylimits=0,500,-0.01,0.01"
85
86newwin 1 2
87n/pl onoffevol.onoffRaw01420%cycle ! ! "blue cpts notit nsta"
88settitle "Raw (ON-OFF)/OFF  ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles " ' ' $defatt
89n/pl onoffevol.onoffRaw11420%cycle ! ! "red cpts notit nsta"
90setaxelabels "cycle" "I[${f1420low},${f1420high}]MHz Raw (a.u)" $axedefatt
91
92
93newh1d hSigmaRaw0 -0.01 0.01 25
94newh1d hSigmaRaw1 -0.01 0.01 25
95
96graphicatt ""
97
98newwin 1 1
99n/proj hSigmaRaw0 onoffevol.onoffRaw01420 ! ! ! "blue cpts notit"
100n/proj hSigmaRaw1 onoffevol.onoffRaw11420 ! ! ! "same red cpts notit"
101settitle "Raw (ON-OFF)/OFF  ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles " ' ' $defatt
102setaxelabels "(a.u)" "I[${f1420low},${f1420high}]MHz Raw" $axedefatt
103
104endscript
105##################################################
106defscript sigmaRaw1420Side
107
108c++compile rebining
109c++link rebining.so dorebin
110
111#col 3 = onoffRaw01420side   Ch 0
112#col 4 = onoffRaw11420side   Ch 1
113
114ntcol2var onoffevol 3 linCh0All
115line2vec vecCh0All $linCh0All
116
117ntcol2var onoffevol 4 linCh1All
118line2vec vecCh1All $linCh1All
119
120#packing values only valid for 500 cycles...
121set packVal "1 10 25 50 100"
122set sigmaCh0 ""
123set errsigCh0 ""
124set sigmaCh1 ""
125set errsigCh1 ""
126
127foreach 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}"
149end
150
151
152newnt nt0 x y ey
153newnt nt1 x y ey
154
155set x0 ( $packVal )
156set y0 ( $sigmaCh0 )
157set ey0 ( $errsigCh0 )
158
159set x1 ( $packVal )
160set y1 ( $sigmaCh1 )
161set ey1 ( $errsigCh1 )
162       
163for i 0:$#x0
164 line2nt nt0 $x0[i] $y0[i] $ey0[i]
165 line2nt nt1 $x1[i] $y1[i] $ey1[i]
166end
167
168
169newwin 1 1
170plot2de nt0 x y 0 ey 1 "blue marker=fcircle,9 notit nsta"     
171plot2de nt1 x y 0 ey 1 "same red  marker=fcircle,9 notit nsta"
172n = ${#x0}-1
173func $y0[0]/sqrt(x) $x0[0] $x0[n]  100 "same"
174settitle "Sigma [1418,1419]U[1422,1423]MHz ${source} Ch 0 (blue) Ch 1 (red)" ' ' $defatt
175setaxelabels "num of cycles" "Sigma (a.u)" $axedefatt
176
177endscript
178##################################################
179defscript sigmaRaw1410a1415
180
181c++compile rebining
182c++link rebining.so dorebin
183
184
185#col 5 = onoffRaw0f14101415   Ch 0
186#col 6 = onoffRaw1f14101415  Ch 1
187
188ntcol2var onoffevol 5 linCh0All
189line2vec vecCh0All $linCh0All
190
191ntcol2var onoffevol 6 linCh1All
192line2vec vecCh1All $linCh1All
193
194#packing values only valid for 500 cycles...
195set packVal "1 10 25 50 100"
196set sigmaCh0 ""
197set errsigCh0 ""
198set sigmaCh1 ""
199set errsigCh1 ""
200
201
202foreach 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}"
224end
225
226
227newnt nt0 x y ey
228newnt nt1 x y ey
229
230set x0 ( $packVal )
231set y0 ( $sigmaCh0 )
232set ey0 ( $errsigCh0 )
233
234set x1 ( $packVal )
235set y1 ( $sigmaCh1 )
236set ey1 ( $errsigCh1 )
237       
238for i 0:$#x0
239 line2nt nt0 $x0[i] $y0[i] $ey0[i]
240 line2nt nt1 $x1[i] $y1[i] $ey1[i]
241end
242
243
244newwin 1 1
245plot2de nt0 x y 0 ey 1 "blue marker=fcircle,9 notit nsta"     
246plot2de nt1 x y 0 ey 1 "same red  marker=fcircle,9 notit nsta"
247n = ${#x0}-1
248func $y0[0]/sqrt(x) $x0[0] $x0[n]  100 "same"
249settitle "Sigma [1410,1415]MHz ${source} Ch 0 (blue) Ch 1 (red)" ' ' $defatt
250setaxelabels "num of cycles" "Sigma (a.u)" $axedefatt
251
252endscript
253###########################################
254# Old function sigmaRaw1400a1420
255defscript sigmaRawBand
256# flow,fhigh = frequency limits for integration band
257# offFilt = 1 we divide on-off by filtered Off
258
259set flow $1
260set fhigh $2
261set offFilt $3
262set nclusters $4
263graphicatt ""
264
265if ( $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
311else
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
373endif
374 
375set sigmaCh0 ""
376set errsigCh0 ""
377set sigmaCh1 ""
378set errsigCh1 ""
379
380c++compile rebining
381c++link rebining.so dorebin
382
383foreach 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}"
405end
406
407newnt nt0 x y ey
408newnt nt1 x y ey
409
410set x0 ( $packVal )
411set y0 ( $sigmaCh0 )
412set ey0 ( $errsigCh0 )
413
414set x1 ( $packVal )
415set y1 ( $sigmaCh1 )
416set ey1 ( $errsigCh1 )
417
418for i 0:$#x0
419 line2nt nt0 $x0[i] $y0[i] $ey0[i]
420 line2nt nt1 $x1[i] $y1[i] $ey1[i]
421end
422
423newwin 1 1
424plot2de nt0 x y 0 ey 1 "blue marker=fcircle,9 notit nsta"     
425plot2de nt1 x y 0 ey 1 "same red  marker=fcircle,9 notit nsta"
426n = ${#x0}-1
427func $y0[0]/sqrt(x) $x0[0] $x0[n]  100 "same"
428settitle "Sigma [$flow,$fhigh]MHz ${source} Ch 0 (blue) Ch 1 (red)" ' ' $defatt
429setaxelabels "num of cycles" "Sigma (a.u)" $axedefatt
430
431del h0 h1
432set xmin -0.01
433set xmax 0.01
434newh1d h0 $xmin $xmax 200
435newh1d h1 $xmin $xmax 200
436if ( $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
450else
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
459endif
460
461endscript
462##########################################
463defscript evolAt1400a1415OffOn
464
465graphicatt "xylimits=0,${ncycles},0.99,1.02"
466
467newwin 1 1
468n/pl onoffevol.offRaw0f14001415%cycle ! ! "blue cpts notit nsta"
469n/pl onoffevol.offRaw1f14001415%cycle ! ! "same red cpts notit nsta"
470n/pl onoffevol.onRaw0f14001415%cycle ! ! "same cyan cpts notit nsta"
471n/pl onoffevol.onRaw1f14001415%cycle ! ! "same orange cpts notit nsta"
472settitle "Raw OFF and ON  ${source} Ch 0 (blue/cyan) Ch 1 (red/orange) ${ncycles}cycles " ' ' $defatt
473setaxelabels "cycle" "I[1400,1415]MHz Raw (a.u)" $axedefatt
474
475endscript
476##########################################
477defscript evolAt1410a1415OffOn
478
479graphicatt "xylimits=0,${ncycles},0.99,1.02"
480
481newwin 1 1
482n/pl onoffevol.offRaw0f14101415%cycle ! ! "blue cpts notit nsta"
483n/pl onoffevol.offRaw1f14101415%cycle ! ! "same red cpts notit nsta"
484n/pl onoffevol.onRaw0f14101415%cycle ! ! "same cyan cpts notit nsta"
485n/pl onoffevol.onRaw1f14101415%cycle ! ! "same orange cpts notit nsta"
486settitle "Raw (OFF,ON)/OFF  ${source} Ch 0 (blue/cyan) Ch 1 (red/orange) ${ncycles}cycles " ' ' $defatt
487setaxelabels "cycle" "I[1410,1415]MHz Raw (a.u)" $axedefatt
488       
489graphicatt "xylimits=0,${ncycles},-0.005,0.005"
490newwin 1 1
491n/pl onoffevol.(onRaw0f14101415-offRaw0f14101415)%cycle ! ! "blue cpts notit nsta"
492n/pl onoffevol.(onRaw1f14101415-offRaw1f14101415)%cycle ! ! "same red cpts notit nsta"
493settitle "Raw (ON-OFF)/OFF  ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles " ' ' $defatt
494setaxelabels "cycle" "DI [1410,1415]MHz Raw (a.u)" $axedefatt
495
496endscript
497###########################################
498defscript evolAt1420SideFreq
499
500
501#Follow up of the intensity arround the [${f1420low},${f1420high}]MHz frequency in different calibration conditions
502# NO calibration
503
504
505graphicatt "xylimits=0,500,-0.01,0.01"
506
507newwin 1 2
508n/pl onoffevol.onoffRaw01420side%cycle ! ! "blue cpts notit nsta"
509settitle "Raw (ON-OFF)/OFF  ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles " ' ' $defatt
510n/pl onoffevol.onoffRaw11420side%cycle ! ! "red cpts notit nsta"
511setaxelabels "cycle" "I[1418,1419]U[1422,1423]MHz Raw (a.u)" $axedefatt
512
513
514newh1d hSigmaSideRaw0 -0.01 0.01 25
515newh1d hSigmaSideRaw1 -0.01 0.01 25
516
517graphicatt ""
518
519newwin 1 1
520n/proj hSigmaSideRaw0 onoffevol.onoffRaw01420side ! ! ! "blue cpts notit"
521n/proj hSigmaSideRaw1 onoffevol.onoffRaw11420side ! ! ! "same red cpts notit"
522settitle "Raw (ON-OFF)/OFF  ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles " ' ' $defatt
523setaxelabels "(a.u)" "I[1418,1419]U[1422,1423]MHz Raw" $axedefatt
524
525endscript
526###########################################
527defscript 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
534graphicatt "xylimits=0,500,-0.1,0.1"
535
536newwin 1 2
537n/pl onoffevol.${nbins1420}*(onoffRaw01420-onoffRaw01420side)%cycle ! ! "blue cpts notit nsta"
538settitle "Raw (ON-OFF)/OFF  ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles " ' ' $defatt
539n/pl onoffevol.${nbins1420}*(onoffRaw11420-onoffRaw11420side)%cycle ! ! "red cpts notit nsta"
540setaxelabels "cycle" "I 1420MHz Raw (a.u)" $axedefatt
541
542
543
544newh1d h1420IntRaw0 -0.1 0.1 25
545newh1d h1420IntRaw1 -0.1 0.1 25
546
547graphicatt ""
548
549newwin 1 1
550n/proj h1420IntRaw0 onoffevol.${nbins1420}*(onoffRaw01420-onoffRaw01420side) ! ! ! "blue cpts notit"
551n/proj h1420IntRaw1 onoffevol.${nbins1420}*(onoffRaw11420-onoffRaw11420side) ! ! ! "same red cpts notit"
552settitle "Raw (ON-OFF)/OFF  ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles " ' ' $defatt
553setaxelabels "(a.u)" "I 1420MHz Raw" $axedefatt
554
555endscript
556##################################################
557defscript diffOnOff
558
559graphicatt "xylimits=1250,1500,-0.01,0.01"
560
561del s0 s1
562objaoper meanOvOffNoCalib row 0 s0
563objaoper meanOvOffNoCalib row 1 s1
564
565newwin
566plot2d s0 (n/8192)*250+1250 val n>0 "cpts blue notit nsta"
567plot2d s1 (n/8192)*250+1250 val n>0 "same cpts red notit nsta"
568settitle "plot Raw (ON-OFF)/OFF ${source} ${ncycles} cycles, Ch 0 (blue) Ch 1 (red)"
569setaxelabels "Freq. (MHz)" "I (a.u)"
570
571del stot
572c++exec TVector<r_4> stot=s0+s1; stot/=2.; KeepObj(stot);
573
574newwin
575plot2d stot (n/8192)*250+1250 val n>0 "cpts blue notit nsta"
576settitle "Mean Raw (ON-OFF)/OFF ${source} ${ncycles} cycles"
577setaxelabels "Freq. (MHz)" "I (a.u)"
578endscript
579##################################################
Note: See TracBrowser for help on using the repository browser.