Changeset 628 for BAORadio


Ignore:
Timestamp:
Jan 13, 2012, 11:41:42 AM (12 years ago)
Author:
torrento
Message:

Minor changes (hist limits, packVal for A1205, A2440)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BAORadio/AmasNancay/trunk/etude_mergeAna.pic

    r613 r628  
    5959set fcalib $1
    6060
    61 
    6261newwin 1 2
    6362n/pl onoffevol.onoffRaw0%cycle ! ! "blue cpts notit nsta"
     
    106105
    107106
    108 #Follow up of the intensity arround the [1420,1421]MHz frequency in different calibration conditions
     107#Follow up of the intensity around the [1420,1421]MHz frequency in different calibration conditions
    109108# NO calibration
    110109# Calibration coeff. mean per Run
     
    134133setaxelabels "cycle" "I[${f1420low},${f1420high}]MHz Cycle (a.u)" $axedefatt
    135134
    136 
    137 newh1d hSigmaRaw0 -0.01 0.01 25
    138 newh1d hSigmaRaw1 -0.01 0.01 25
    139 newh1d hSigmaRun0 -0.01 0.01 25
    140 newh1d hSigmaRun1 -0.01 0.01 25
    141 newh1d hSigmaCycl0 -0.01 0.01 25
    142 newh1d hSigmaCycl1 -0.01 0.01 25
     135set low -0.02
     136set high 0.02
     137newh1d hSigmaRaw0 ${low} ${high} 25
     138newh1d hSigmaRaw1 ${low} ${high} 25
     139newh1d hSigmaRun0 ${low} ${high} 25
     140newh1d hSigmaRun1 ${low} ${high} 25
     141newh1d hSigmaCycl0 ${low} ${high} 25
     142newh1d hSigmaCycl1 ${low} ${high} 25
    143143
    144144graphicatt ""
     
    236236setaxelabels "num of cycles" "Sigma (a.u)" $axedefatt
    237237
    238 
    239 
    240 endscript
     238endscript
     239
    241240##################################################
    242241defscript sigmaRaw1400a1420
    243242
    244 c++compile rebining
    245 c++link rebining.so dorebin
    246 
    247 
    248 #col 19 = onoffRaw0f14001420   Ch 0
    249 #col 20 = onoffRaw1f14001420  Ch 1
     243## mergeAnaFiles.cc -> CalibBAODiffOnOffCycles -> onoffsurvey_[source]-[n]Cycles.ppf
     244##col 19 = onoffRaw0f14001420  Ch 0
     245##col 20 = onoffRaw1f14001420  Ch 1
    250246
    251247ntcol2var onoffevol 19 linCh0All
    252248line2vec vecCh0All $linCh0All
    253 
    254249ntcol2var onoffevol 20 linCh1All
    255250line2vec vecCh1All $linCh1All
    256251
     252graphicatt ""
    257253set sigmaCh0 ""
    258254set errsigCh0 ""
     
    260256set errsigCh1 ""
    261257
     258c++compile rebining
     259c++link rebining.so dorebin
    262260
    263261foreach ipack ( $packVal )
     
    285283end
    286284
    287 
    288285newnt nt0 x y ey
    289286newnt nt1 x y ey
     
    296293set y1 ( $sigmaCh1 )
    297294set ey1 ( $errsigCh1 )
    298        
     295
    299296for i 0:$#x0
    300297 line2nt nt0 $x0[i] $y0[i] $ey0[i]
    301298 line2nt nt1 $x1[i] $y1[i] $ey1[i]
    302299end
    303 
    304300
    305301newwin 1 1
     
    311307setaxelabels "num of cycles" "Sigma (a.u)" $axedefatt
    312308
    313 
    314 
    315 endscript
     309newwin 1 1
     310plot2de nt1 x y 0 ey 1 "red marker=fcircle,9 notit nsta"     
     311plot2de nt0 x y 0 ey 1 "same blue  marker=fcircle,9 notit nsta"
     312n = ${#x0}-1
     313func $y0[0]/sqrt(x) $x0[0] $x0[n]  100 "same"
     314settitle "Sigma [1400,1420]MHz ${source} Ch 0 (blue) Ch 1 (red)" ' ' $defatt
     315setaxelabels "num of cycles" "Sigma (a.u)" $axedefatt
     316
     317newwin 1 1
     318n/pl onoffevol.onoffRaw0f14001420 ! ! "cpts blue notit"
     319n/pl onoffevol.onoffRaw1f14001420 ! ! "cpts same red notit"
     320settitle "onoffRaw [1400,1420]MHz ${source} Ch 0 (blue) Ch 1 (red)" ' ' $defatt
     321newwin 1 1
     322n/pl onoffevol.onoffRaw0f14001420%cycle ! ! "cpts blue notit"
     323n/pl onoffevol.onoffRaw1f14001420%cycle ! ! "cpts same red notit"
     324settitle "onoffRaw [1400,1420]MHz ${source} Ch 0 (blue) Ch 1 (red)" ' ' $defatt
     325
     326endscript
     327
    316328###########################################
    317329defscript evolAt1410a1415OffOn
     
    410422# Calibration coeff. per cycles
    411423
    412 
    413424graphicatt "xylimits=0,${ncycles},-0.1,0.1"
    414425
     
    455466setaxelabels "(a.u)" "I 1420MHz Run" $axedefatt
    456467
    457 
    458 
    459468newwin 1 1
    460469n/proj h1420IntCycl0 onoffevol.${nbins1420}*(onoffCycle01420-onoffCycle01420side) ! ! ! "blue cpts notit"
     
    462471settitle "ON-OFF Calib Cycle ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt
    463472setaxelabels "(a.u)" "I 1420MHz Cycle" $axedefatt
    464 
    465 
    466473
    467474endscript
     
    476483#
    477484
    478 graphicatt ""
     485# ON/OFF, OFF/OFF
     486
    479487del sonovoff0 sonovoff1
    480488objaoper meanOnovOffNoCalib row 0 sonovoff0
     
    493501setaxelabels "Freq. (MHz)" "I (a.u)" $axedefatt
    494502
    495 
     503# (ON-OFF)/OFF
    496504graphicatt "xylimits=1250,1500,-0.01,0.01"
    497505del sonoffovoff0 sonoffovoff1
     
    504512setaxelabels "Freq. (MHz)" "I (a.u)" $axedefatt
    505513
    506 graphicatt "xylimits=1250,1500,-0.01,0.01"
    507 del snocal0 snocal1
    508 objaoper meanNoCalib row 0 snocal0
    509 objaoper meanNoCalib row 1 snocal1
    510 newwin 1 1
    511 plot2d snocal0 (n/8192)*250+1250 val n>0 "blue cpts notit nsta"
    512 plot2d snocal1 (n/8192)*250+1250 val n>0 "red same cpts notit nsta"
    513 settitle "Raw ON-OFF  ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt
    514 setaxelabels "Freq. (MHz)" "I (a.u)" $axedefatt
     514# (ON-OFF)
     515#graphicatt "xylimits=1250,1500,-0.01,0.01"
     516#del snocal0 snocal1
     517#objaoper meanNoCalib row 0 snocal0
     518#objaoper meanNoCalib row 1 snocal1
     519#newwin 1 1
     520#plot2d snocal0 (n/8192)*250+1250 val n>0 "blue cpts notit nsta"
     521#plot2d snocal1 (n/8192)*250+1250 val n>0 "red same cpts notit nsta"
     522#settitle "Raw ON-OFF  ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt
     523#setaxelabels "Freq. (MHz)" "I (a.u)" $axedefatt
    515524
    516525#del sruncal0 sruncal1
     
    541550#use minuscule for source label
    542551
    543 openppf ${path}/onoffsurvey_${source}-${ncycles}Cycles.ppf
    544 print onoffevol
    545 
    546 #openppf ${path}/rawOnOffDiff_${source}-${ncycles}Cycles.ppf
    547 #ls
     552#openppf ${path}/onoffsurvey_${source}-${ncycles}Cycles.ppf
     553#print onoffevol
     554
     555openppf ${path}/rawOnOffDiff_${source}-${ncycles}Cycles.ppf
     556ls
    548557
    549558set defatt "font=helvetica,bold,20 fixedfonsize"
     
    557566
    558567
    559 #diffOnOff
     568diffOnOff
    560569#evolAt1420Freq
    561570#evolAt1420SideFreq
Note: See TracChangeset for help on using the changeset viewer.