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