source: JEM-EUSO/equalization_gain/trunk/src/makeDataFile.sh @ 191

Last change on this file since 191 was 191, checked in by moretto, 11 years ago

Initial import of the project

File size: 1.1 KB
Line 
1#!/bin/sh
2#export fname=data_s_curves_run100
3export fname=$@
4mkdir ${fname}_C
5mkdir ${fname}_D
6
7for j in `seq 0 63`
8do
9#cat ${fname}.lvm |awk -v arg=${j} '{print($1,$(2*64+arg+1+1))}' > ${fname}_C/${fname}-ch$j.dat
10cat ${fname}.data |awk -v arg=${j} '{print($1,$(arg+1+1))}' > ${fname}_C/${fname}-ch$j.dat
11done
12
13for j in `seq 0 63`
14do
15#cat ${fname}.lvm |awk -v arg=${j} '{print($1,$(3*64+arg+1+1))}' > ${fname}_D/${fname}-ch$j.dat
16cat ${fname}.data |awk -v arg=${j} '{print($1,$(64+arg+1+1))}' > ${fname}_D/${fname}-ch$j.dat
17done
18
19cd ${fname}_C
20#ln -s ../../../../src/PlotScurvesAll.C .
21#ln -s $srcDIR/PlotScurvesAll.C .
22ln -s $srcDIR/PlotScurvesAll-diffFit.cc PlotScurvesAll-diffFit.C
23ln -s $srcDIR/PlotScurvesAll-diffFit.h .
24ln -s $srcDIR/PlotScurvesAll-diffFitConst.h .
25ln -s $dataDIR/gain-default-ASIC_C.txt gain-org.txt
26cd ../${fname}_D
27#ln -s ../../../../src/PlotScurvesAll.C .
28#ln -s $srcDIR/PlotScurvesAll.C .
29ln -s $srcDIR/PlotScurvesAll-diffFit.cc PlotScurvesAll-diffFit.C
30ln -s $srcDIR/PlotScurvesAll-diffFit.h .
31ln -s $srcDIR/PlotScurvesAll-diffFitConst.h .
32ln -s $dataDIR/gain-default-ASIC_D.txt gain-org.txt
Note: See TracBrowser for help on using the repository browser.