opt nstat opt nfit set ltyp 1 set pmci set mtyp ve/cr error_adc(30) R 30*15. ve/cr res_5_om(36) I 36*0 ve/cr res_5_a(36) R 36*0. ve/cr res_5_b(36) R 36*0. ve/cr res_5_c(36) R 36*0. ve/cr res_5_d(36) R 36*0. ve/cr res_5_e(36) R 36*0. ve/cr res_5_ll(36) R 36*0. ve/cr res_5_ul(36) R 36*0. ve/cr res_6_om(36) I 36*0 ve/cr res_6_a(36) R 36*0. ve/cr res_6_b(36) R 36*0. ve/cr res_6_c(36) R 36*0. ve/cr res_6_d(36) R 36*0. ve/cr res_6_e(36) R 36*0. ve/cr res_6_ll(36) R 36*0. ve/cr res_6_ul(36) R 36*0. ve/cr res_7_om(36) I 36*0 ve/cr res_7_a(36) R 36*0. ve/cr res_7_b(36) R 36*0. ve/cr res_7_c(36) R 36*0. ve/cr res_7_d(36) R 36*0. ve/cr res_7_e(36) R 36*0. ve/cr res_7_ll(36) R 36*0. ve/cr res_7_ul(36) R 36*0. ve/cr res_8_om(36) I 36*0 ve/cr res_8_a(36) R 36*0. ve/cr res_8_b(36) R 36*0. ve/cr res_8_c(36) R 36*0. ve/cr res_8_d(36) R 36*0. ve/cr res_8_e(36) R 36*0. ve/cr res_8_ll(36) R 36*0. ve/cr res_8_ul(36) R 36*0. ve/cr res_9_om(36) I 36*0 ve/cr res_9_a(36) R 36*0. ve/cr res_9_b(36) R 36*0. ve/cr res_9_c(36) R 36*0. ve/cr res_9_d(36) R 36*0. ve/cr res_9_e(36) R 36*0. ve/cr res_9_ll(36) R 36*0. ve/cr res_9_ul(36) R 36*0. ve/cr res_10_om(36) I 36*0 ve/cr res_10_a(36) R 36*0. ve/cr res_10_b(36) R 36*0. ve/cr res_10_c(36) R 36*0. ve/cr res_10_d(36) R 36*0. ve/cr res_10_e(36) R 36*0. ve/cr res_10_ll(36) R 36*0. ve/cr res_10_ul(36) R 36*0. * The below hybrid designations come from a list of hybrid OM's. * Ex: for string 5, the first OM position is a hybrid (1), the * second position is standard (0), etc. By the end of string 5, * the last 25 OM's are standards (0). NOTE: in the finished * .result file, hybrid is designated as 0.0, while standards * are designated as 1.0. ve/cr hybrids_5(36) I 1 0 1 0 1 0 1 0 1 0 1 25*0 ve/cr hybrids_6(36) I 1 0 1 0 1 0 1 0 1 0 1 25*0 ve/cr hybrids_7(36) I 31*0 1 0 0 0 1 ve/cr hybrids_8(36) I 1 0 1 0 1 0 1 0 1 0 1 25*0 ve/cr hybrids_9(36) I 36*0 ve/cr hybrids_10(36) I 36*0 * OPEN THE HBOOK FILE *hi/file 1 test4.small.out.partcalib.string10.hbook ntuple/chain -blah ntuple/chain 'blah' /home/aheffwong/crosstalk/hbook/ab_2002_170_5781_011.data.mu.min_bias.string9.hbook ntuple/chain 'blah' /home/aheffwong/crosstalk/hbook/ab_2002_170_5781_012.data.mu.min_bias.string9.hbook ntuple/chain 'blah' /home/aheffwong/crosstalk/hbook/ab_2002_170_5781_087.data.mu.min_bias.string9.hbook ntuple/chain 'blah' /home/aheffwong/crosstalk/hbook/ab_2002_170_5781_088.data.mu.min_bias.string9.hbook ntuple/chain 'blah' /home/aheffwong/crosstalk/hbook/ab_2002_277_5895_005.data.mu.min_bias.string9.hbook ntuple/chain 'blah' /home/aheffwong/crosstalk/hbook/ab_2002_277_5895_105.data.mu.min_bias.string9.hbook * WE ITERATE OVER STRING AND OM NUMBERS for string in '9' *'5' '6' '7' '8' '9' '10' for pos in _ '01' '02' '03' '04' '05' '06' '07' '08' '09' '10' _ '11' '12' '13' '14' '15' '16' '17' '18' '19' '20' _ '21' '22' '23' '24' '25' '26' '27' '28' '29' '30' _ '31' '32' '33' '34' '35' '36' * DETERMINE BASIC INFO ABOUT THE OM is_hybrid=$EVAL(hybrids_[string]([pos])) om=$EVAL(([string]-5)*36+86+[pos]) *om=[pos] title 'ADC-TOT FIT string'//$EVAL([string])//' OM'//$EVAL([om])//' POS'//$EVAL([pos]) mess POS [pos] OM [om] STRING [string]man.string[string].adc_tot_fit.result * WE WANT TO FIND THE PEAK OF TDC TO CLEAN THE DATA 1d 30 '' 132 0. 33000. nt/proj 30 //blah/100.time ch=[pos].and.0