-
Notifications
You must be signed in to change notification settings - Fork 0
/
testit.sh
executable file
·59 lines (49 loc) · 1.56 KB
/
testit.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/bin/bash
set -x
mkdir -p testit
tiers=(orig gauss)
for domain in real fake
do
taps=""
for tier in ${tiers[*]}
do
taps+="{\"$tier\":\"testit/${domain}-frames-${tier}.npz\"}"
done
if [ -f testit/depos.npz ] ; then
echo "depos already generated"
else
wirecell-gen depo-lines \
--seed 1234 \
--tracks 100 \
--sets 1 \
--diagonal '16000.0*mm,6100.0*mm,7000.0*mm' \
--corner '-8000.0*mm,0.0*mm,0.0*mm' \
--output testit/depos.npz || exit
fi
if [ -f testit/${domain}-frames-orig-apa0.npz ] ; then
echo "wire-cell has run already for $domain"
else
wire-cell \
-l stdout -L debug -P cfg\
-A input=testit/depos.npz \
--tla-code taps=$taps \
-A wires=data/wires/wires.json.bz2 \
-A resps_sim=data/resps/${domain}-resps.json.bz2 \
-A resps_sigproc=data/resps/fake-resps.json.bz2 \
-A thread=multi \
-A noisef=protodune-noise-spectra-v1.json.bz2 \
-c cfg/main-depos-sigproc.jsonnet || exit
fi
for tier in orig gauss
do
for apaid in 0 1 2 3 4 5
do
tag=${tier}${apaid}
wirecell-gen \
plot-sim \
testit/${domain}-frames-${tier}-apa${apaid}.npz \
-p frames -b 0,2560 --tag ${tier}${apaid} \
testit/${domain}-frames-${tier}-apa${apaid}.png || exit
done
done
done