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

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

improve analysis (jec)

File size: 5.9 KB
Line 
1defscript evolAtCalibFreq
2
3
4#Follow up of the intensity arround the Calib frequency in different calibration conditions
5# NO calibration
6# Calibration coeff. mean per Run
7# Calibration coeff. per cycles
8
9set fcalib $1
10
11
12newwin 1 2
13n/pl onoffevol.onoffRaw0%cycle ! ! "blue cpts notit nsta"
14settitle "Raw ON-OFF  ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles " ' ' $defatt
15n/pl onoffevol.onoffRaw1%cycle ! ! "red cpts notit nsta"
16setaxelabels "cycle" "I[${fcalib}MHz/6.25MHz] Raw (a.u)" $axedefatt
17
18newwin 1 2
19n/proj hRaw0 onoffevol.onoffRaw0 ! ! ! "blue cpts notit"
20settitle "Raw ON-OFF  ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles " ' ' $defatt
21n/proj hRaw1 onoffevol.onoffRaw1 ! ! ! "red cpts notit"
22settitle "I[${fcalib}MHz/6.25MHz] Raw (a.u)"
23
24
25       
26newwin 1 2
27n/pl onoffevol.onoffRun0%cycle ! ! "blue cpts notit nsta"
28settitle "ON-OFF Calib Run ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt
29n/pl onoffevol.onoffRun1%cycle ! ! "red cpts notit nsta"
30setaxelabels "cycle" "I[${fcalib}MHz/6.25MHz] Run (a.u)" $axedefatt
31
32
33newwin 1 2
34n/proj hRun0 onoffevol.onoffRun0 ! ! ! "blue cpts notit"
35settitle "ON-OFF Calib Run ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt
36n/proj hRun1 onoffevol.onoffRun1 ! ! ! "red cpts notit"
37settitle "I[${fcalib}MHz/6.25MHz] Run (a.u)"
38
39
40newwin 1 2
41n/pl onoffevol.onoffCycle0%cycle ! ! "blue cpts notit nsta"
42settitle "ON-OFF Calib Cycle ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt
43n/pl onoffevol.onoffCycle1%cycle ! ! "red cpts notit nsta"
44setaxelabels "cycle" "I[${fcalib}MHz/6.25MHz] Cycle (a.u)" $axedefatt
45
46newwin 1 2
47n/proj hCycle0 onoffevol.onoffCycle0 ! ! ! "blue cpts notit"
48settitle "ON-OFF Calib Cycle ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt
49n/proj hCycle1 onoffevol.onoffCycle1 ! ! ! "red cpts notit"
50settitle "I[${fcalib}MHz/6.25MHz] Cycle (a.u)"
51
52
53endscript
54###########################################
55defscript evolAt1420Freq
56
57
58#Follow up of the intensity arround the (1420.4 +/- 2) MHz frequency in different calibration conditions
59# NO calibration
60# Calibration coeff. mean per Run
61# Calibration coeff. per cycles
62
63
64graphicatt "xylimits=0,500,-0.01,0.01"
65
66newwin 1 2
67n/pl onoffevol.onoffRaw01420%cycle ! ! "blue cpts notit nsta"
68settitle "Raw ON-OFF  ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles " ' ' $defatt
69n/pl onoffevol.onoffRaw11420%cycle ! ! "red cpts notit nsta"
70setaxelabels "cycle" "I[1420.4MHz +/- 2MHz] Raw (a.u)" $axedefatt
71
72
73newwin 1 2
74n/pl onoffevol.onoffRun01420%cycle ! ! "blue cpts notit nsta"
75settitle "ON-OFF Calib Run ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt
76n/pl onoffevol.onoffRun11420%cycle ! ! "red cpts notit nsta"
77setaxelabels "cycle" "I[1420.4MHz +/- 2MHz] Run (a.u)" $axedefatt
78
79
80newwin 1 2
81n/pl onoffevol.onoffCycle01420%cycle ! ! "blue cpts notit nsta"
82settitle "ON-OFF Calib Cycle ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt
83n/pl onoffevol.onoffCycle11420%cycle ! ! "red cpts notit nsta"
84setaxelabels "cycle" "I[1420.4MHz +/- 2MHz] Cycle (a.u)" $axedefatt
85
86
87newh1d hSigmaRaw0 -0.02 0.02 50
88newh1d hSigmaRaw1 -0.02 0.02 50
89newh1d hSigmaRun0 -0.02 0.02 50
90newh1d hSigmaRun1 -0.02 0.02 50
91newh1d hSigmaCycl0 -0.02 0.02 50
92newh1d hSigmaCycl1 -0.02 0.02 50
93
94graphicatt ""
95
96newwin 1 1
97n/proj hSigmaRaw0 onoffevol.onoffRaw01420 ! ! ! "blue cpts notit"
98n/proj hSigmaRaw1 onoffevol.onoffRaw11420 ! ! ! "same red cpts notit"
99settitle "Raw ON-OFF  ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles " ' ' $defatt
100setaxelabels "(a.u)" "I[1420.4MHz +/- 2MHz] Raw" $axedefatt
101
102newwin 1 1
103n/proj hSigmaRun0 onoffevol.onoffRun01420 ! ! ! "blue cpts notit"
104n/proj hSigmaRun1 onoffevol.onoffRun11420 ! ! ! "same red cpts notit"
105settitle "ON-OFF Calib Run ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt
106setaxelabels "(a.u)" "I[1420.4MHz +/- 2MHz] Run" $axedefatt
107
108
109newwin 1 1
110n/proj hSigmaCycl0 onoffevol.onoffCycle01420 ! ! ! "blue cpts notit"
111n/proj hSigmaCycl1 onoffevol.onoffCycle11420 ! ! ! "same red cpts notit"
112settitle "ON-OFF Calib Cycle ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt
113setaxelabels "(a.u)" "I[1420.4MHz +/- 2MHz] Cycle" $axedefatt
114
115
116endscript
117##################################################
118defscript diffOnOff
119
120#
121#Display the ON-OFF over the whole freq. range in diffrent Calib. conditions
122# NO calibration
123# Calibration coeff. mean per Run
124# Calibration coeff. per cycles
125#
126
127
128
129graphicatt "xylimits=1250,1500,-0.01,0.01"
130del snocal0 snocal1
131objaoper meanNoCalib row 0 snocal0
132objaoper meanNoCalib row 1 snocal1
133newwin 1 1
134plot2d snocal0 (n/8192)*250+1250 val n>0 "blue cpts notit nsta"
135plot2d snocal1 (n/8192)*250+1250 val n>0 "red same cpts notit nsta"
136settitle "Raw ON-OFF  ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt
137setaxelabels "Freq. (MHz)" "I (a.u)" $axedefatt
138
139del sruncal0 sruncal1
140objaoper meanPerRunCalib row 0 sruncal0
141objaoper meanPerRunCalib row 1 sruncal1
142newwin 1 1
143plot2d sruncal0 (n/8192)*250+1250 val n>0 "blue cpts notit nsta"
144plot2d sruncal1 (n/8192)*250+1250 val n>0 "red same cpts notit nsta"
145settitle "ON-OFF Calib Run  ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt
146setaxelabels "Freq. (MHz)" "I (a.u)" $axedefatt
147
148newwin 1 1
149del scyclecal0 scyclecal1
150objaoper meanPerCycleCalib row 0 scyclecal0
151objaoper meanPerCycleCalib row 1 scyclecal1
152plot2d scyclecal0 (n/8192)*250+1250 val n>0 "blue cpts notit nsta"
153plot2d scyclecal1 (n/8192)*250+1250 val n>0 "red same cpts notit nsta"
154settitle "ON-OFF Calib Cycle  ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt
155setaxelabels "Freq. (MHz)" "I (a.u)" $axedefatt
156
157
158endscript
159
160
161
162
163#Main
164#use minuscule for source label
165
166set source  $1
167set ncycles $2
168set fcalib $3
169
170openppf onoffsurvey_${source}-${ncycles}Cycles.ppf
171print onoffevol
172
173set defatt "font=helvetica,bold,20 fixedfonsize"
174set axedefatt  "font=helvetica,bold,30 fixedfonsize grid"
175
176set defatt ""
177set axedefatt  "grid"
178
179graphicatt ""
180setaxesatt ""
181
182
183
184#diffOnOff
185
186
187evolAt1420Freq
Note: See TracBrowser for help on using the repository browser.