source: JEM-EUSO/equalization_gain/trunk/src/makeGainTable.sh @ 207

Last change on this file since 207 was 207, checked in by dagoret, 11 years ago

modif makeGainTable

File size: 2.0 KB
Line 
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
11#export fname=data_s_curves_run91
12export fname=data_s_curves_run104
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
26#export fname_o=gain-1000V-sfit-T1_ASIC_C-th200-it3.txt
27export fname_o=gain-run_104-T1_ASIC_C-it0.txt
28
29
30for 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
33cd ${fname}_C
34grep OUT_TABLE gain-output.dat > gain-output-extract.dat
35#cat tmp2.dat |awk '{print($3)}' >> ../${fname_o} #dacHalf
36#cat tmp2.dat |awk '{print($4)}' >> ../${fname_o} #differential
37cat gain-output-extract.dat |awk '{print($6)}' >> ../${fname_o} #scurve_fit
38cd ../
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
47for j in `seq 0 191`; do echo "0"; done >> ./${fname_o} #only ASIC_C
Note: See TracBrowser for help on using the repository browser.