[191] | 1 | #!/bin/bash |
---|
| 2 | ##export fname=scurves_PC_inj_run16 |
---|
| 3 | #export fname=data_s_curves_run50 |
---|
| 4 | #export fname=data_s_curves_run75 |
---|
| 5 | #export fname=data_s_curves_run78 |
---|
| 6 | #export fname=data_s_curves_run79 |
---|
| 7 | #export fname=data_s_curves_run81 |
---|
| 8 | #export fname=data_s_curves_run82 |
---|
| 9 | #export fname=data_s_curves_run83 |
---|
| 10 | #export fname=data_s_curves_run90 |
---|
[193] | 11 | #export fname=data_s_curves_run91 |
---|
| 12 | export fname=data_s_curves_run104 |
---|
[191] | 13 | #export fname=$@ #standard input |
---|
| 14 | #export fname_o=gain-900V_$fname.txt |
---|
| 15 | #export fname_o=gain-1000V-diffFit_$fname-ASIC_C-th150.txt |
---|
| 16 | #export fname_o=gain-1000V-halfMax11000_$fname.txt |
---|
| 17 | #export fname_o=gain-1000V-mean_$fname.txt |
---|
| 18 | #export fname_o=gain-1000V-sfit-ASIC_D-th170-it0.txt |
---|
| 19 | #export fname_o=gain-1000V-sfit-ASIC_C-th120_th180-it0.txt |
---|
| 20 | #export fname_o=gain-1000V-sfit-T2_ASIC_C-th220-it0.txt |
---|
| 21 | #export fname_o=gain-1000V-sfit-T2_ASIC_D-th130-it0.txt |
---|
| 22 | #export fname_o=gain-1000V-sfit-T2_ASIC_C-th240-it1.txt |
---|
| 23 | #export fname_o=gain-1000V-sfit-T2_ASIC_D-th200-it1.txt |
---|
| 24 | #export fname_o=gain-1000V-sfit-T1_ASIC_C-th170-it1.txt |
---|
| 25 | #export fname_o=gain-1000V-sfit-T1_ASIC_C-th180_th150-ch17-it3.txt |
---|
[193] | 26 | #export fname_o=gain-1000V-sfit-T1_ASIC_C-th200-it3.txt |
---|
| 27 | export fname_o=gain-run_104-T1_ASIC_C-it0.txt |
---|
[191] | 28 | |
---|
| 29 | |
---|
| 30 | for j in `seq 0 127`; do echo "0"; done > ${fname_o} #ASIC_C only/and ASIC_D |
---|
| 31 | #for j in `seq 0 191`; do echo "0"; done > ${fname_o} #only ASIC_D |
---|
| 32 | |
---|
| 33 | cd ${fname}_C |
---|
[207] | 34 | grep OUT_TABLE gain-output.dat > gain-output-extract.dat |
---|
[191] | 35 | #cat tmp2.dat |awk '{print($3)}' >> ../${fname_o} #dacHalf |
---|
| 36 | #cat tmp2.dat |awk '{print($4)}' >> ../${fname_o} #differential |
---|
[207] | 37 | cat gain-output-extract.dat |awk '{print($6)}' >> ../${fname_o} #scurve_fit |
---|
[191] | 38 | cd ../ |
---|
| 39 | #cd ${fname}_D |
---|
| 40 | #grep OUT_TABLE tmp-v6-th200-it1.data > tmp-v6-th200-it1.dat |
---|
| 41 | #cat tmp2.dat |awk '{print($3)}' >> ../${fname_o} #dacHalf |
---|
| 42 | #cat tmp2.dat |awk '{print($5)}' >> ../${fname_o} #differential |
---|
| 43 | #cat tmp-v6-th200-it1.dat |awk '{print($6)}' >> ../${fname_o} #scurve_fit |
---|
| 44 | #cd ../ |
---|
| 45 | |
---|
| 46 | #for j in `seq 0 127`; do echo "0"; done >> ./${fname_o} #ASIC_D only/and ASIC_C |
---|
| 47 | for j in `seq 0 191`; do echo "0"; done >> ./${fname_o} #only ASIC_C |
---|