3 # Quick and dirty processing of new field responses. This is bv-specific.
14 local infile=$1 ; shift
17 if [ $type = "wnormed" ] ; then
18 norm=-1 # by average collection integral
20 if [ $type = "half" ] ; then
21 norm=0.5 # roughly fix Garfield's factor of ~2
24 local base=$(echo $(basename $infile .tar.gz) | tr '_' '-')
25 local destdir=$(dirname $infile)
28 local datastub="${datadir}/${base}-${type}"
29 local plotstub="${datadir}/../plots/${base}-${type}"
34 wirecell-sigproc convert-garfield -n $norm -s $speed -o $origin $infile "${datastub}.json.bz2"
36 wirecell-sigproc plot-garfield-exhaustive -n $norm $infile "${plotstub}-exhaustive.pdf"
38 wirecell-sigproc plot-garfield-track-response -n $norm -s 0 $infile "${plotstub}-current.pdf"
39 wirecell-sigproc plot-garfield-track-response -n $norm -a 0 $infile "${plotstub}-voltage.pdf"
40 wirecell-sigproc plot-garfield-track-response -n $norm $infile "${plotstub}-adc.pdf"
49 datadir=/opt/bviren/wct-dev/share/wirecell/data
50 for sample in ub_10 ub_10_uv_ground ub_10_vy_ground
52 file="${sample}.tar.gz"
53 for thing in absolute wnormed half
55 log="$sample-$thing.log"
57 do_one "${datadir}/${file}" $thing > $log 2>&1 &