[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 |
---|
[208] | 13 | #export fname=data_s_curves_run105 |
---|
[191] | 14 | #export fname=$@ #standard input |
---|
| 15 | #export fname_o=gain-900V_$fname.txt |
---|
| 16 | #export fname_o=gain-1000V-diffFit_$fname-ASIC_C-th150.txt |
---|
| 17 | #export fname_o=gain-1000V-halfMax11000_$fname.txt |
---|
| 18 | #export fname_o=gain-1000V-mean_$fname.txt |
---|
| 19 | #export fname_o=gain-1000V-sfit-ASIC_D-th170-it0.txt |
---|
| 20 | #export fname_o=gain-1000V-sfit-ASIC_C-th120_th180-it0.txt |
---|
| 21 | #export fname_o=gain-1000V-sfit-T2_ASIC_C-th220-it0.txt |
---|
| 22 | #export fname_o=gain-1000V-sfit-T2_ASIC_D-th130-it0.txt |
---|
| 23 | #export fname_o=gain-1000V-sfit-T2_ASIC_C-th240-it1.txt |
---|
| 24 | #export fname_o=gain-1000V-sfit-T2_ASIC_D-th200-it1.txt |
---|
| 25 | #export fname_o=gain-1000V-sfit-T1_ASIC_C-th170-it1.txt |
---|
| 26 | #export fname_o=gain-1000V-sfit-T1_ASIC_C-th180_th150-ch17-it3.txt |
---|
[193] | 27 | #export fname_o=gain-1000V-sfit-T1_ASIC_C-th200-it3.txt |
---|
[208] | 28 | export fname_o=gain-run_104-T1_ASIC_D-it1.txt |
---|
[191] | 29 | |
---|
| 30 | |
---|
[208] | 31 | #for j in `seq 0 127`; do echo "0"; done > ${fname_o} #ASIC_C only/and ASIC_D |
---|
| 32 | for j in `seq 0 191`; do echo "0"; done > ${fname_o} #only ASIC_D |
---|
[191] | 33 | |
---|
[208] | 34 | #cd ${fname}_C |
---|
| 35 | #grep OUT_TABLE gain-output.dat > gain-output-extract.dat |
---|
| 36 | #cat tmp2.dat |awk '{print($3)}' >> ../${fname_o} #dacHalf |
---|
| 37 | #cat tmp2.dat |awk '{print($4)}' >> ../${fname_o} #differential |
---|
| 38 | #cat gain-output-extract.dat |awk '{print($6)}' >> ../${fname_o} #scurve_fit |
---|
| 39 | #cd ../ |
---|
| 40 | cd ${fname}_D |
---|
[207] | 41 | grep OUT_TABLE gain-output.dat > gain-output-extract.dat |
---|
[191] | 42 | #cat tmp2.dat |awk '{print($3)}' >> ../${fname_o} #dacHalf |
---|
[208] | 43 | #cat tmp2.dat |awk '{print($5)}' >> ../${fname_o} #differential |
---|
[207] | 44 | cat gain-output-extract.dat |awk '{print($6)}' >> ../${fname_o} #scurve_fit |
---|
[191] | 45 | cd ../ |
---|
| 46 | |
---|
[208] | 47 | for j in `seq 0 127`; do echo "0"; done >> ./${fname_o} #ASIC_D only/and ASIC_C |
---|
| 48 | #for j in `seq 0 191`; do echo "0"; done >> ./${fname_o} #only ASIC_C |
---|