-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathTowerJazz.sh
executable file
·78 lines (64 loc) · 3.53 KB
/
TowerJazz.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#! /bin/bash
export PATH="TowerJazz"
# Alignment
export ALIG=$PATH/cosmic_000768_000000.root
# Setpoint specific
#export DUT=$PATH/DUT
##export RCE=$PATH/Cosmic
#export RCE=$PATH/Cosmic_dataset2
#export RCE_MASKED=$PATH/Cosmic_dataset2-mask
#export RCE_PROCC=$PATH/Cosmic_dataset2-process
#export DUT_PROCC=$PATH/DUT-process
#export DUT=$PATH/run_804_tj_W3R15_50um_6V
#export DUT=$PATH/dut_run804
#export DUT=$PATH/dut_run804_tightenReset
#export DUT=$PATH/dut_run804_first3k
#export DUT=$PATH/dut_run804_right
export DUT=$PATH/run_953_tj_W3R13_20um_3V_1DRS_newStyle
#export DUT=$PATH/shifted
#export DUT=$PATH/inserted
#export DUT=$PATH/dut_run925
#export RCE=$PATH/cosmic_000804_000000
#export RCE=$PATH/cosmic_000946_000000 # alignment
#export RCE=$PATH/cosmic_000925_000000
export RCE=$PATH/cosmic_000953_000000
export RCE_MASKED=${RCE}-mask
export RCE_PROCC=${RCE}-process
export DUT_PROCC=${DUT}-process
#export RCE=$PATH/Cosmic
#export RCE=$PATH/Cosmic
#export RCE_MASKED=$PATH/Cosmic-mask
#export RCE_PROCC=$PATH/Cosmic-process
#new
#export RCE=$PATH/cosmic_000610
#export RCE_MASKED=$PATH/cosmic_000610
#export RCE_PROCC=$PATH/cosmic_000610-process
#export DUTCONFIG=dutTowerJazz.cfg
export DUTCONFIG=dutTowerJazz20um.cfg
echo "TowerJazz Efficiency Analysis --- 0 TILT"
echo "-------------------Apply mask"
#./Judith -c applyMask -i $RCE.root -o ${RCE_MASKED}.root -r configs/reforig_TowerJazz.cfg -t configs/globalorig_TowerJazz.cfg #-n 50000
echo "-------------------syncronization"
#./Judith -c synchronizeRMS -i ${RCE_MASKED}.root -o ${RCE_MASKED}_sync.root -I $DUT.root -O ${DUT}_sync.root -r configs/reforig_TowerJazz.cfg -d configs/$DUTCONFIG -t configs/globalorig_TowerJazz.cfg -s 0 #-n 80000
./Judith -c synchronize -i ${RCE_MASKED}.root -o ${RCE_MASKED}_sync.root -I $DUT.root -O ${DUT}_sync.root -r configs/reforig_TowerJazz.cfg -d configs/$DUTCONFIG -t configs/globalorig_TowerJazz.cfg -s 0 # -n 4000
echo "-------------------CoarseAlign telescope"
#./Judith -c coarseAlign -i $ALIG -r configs/reforig_TowerJazz.cfg -t configs/globalorig_TowerJazz.cfg -n 10T0000
echo "-------------------FineAlign telescope"
#./Judith -c fineAlign -i $ALIG -r configs/reforig_TowerJazz.cfg -t configs/globalorig_TowerJazz.cfg -n 50000 -R ${ALIG}-alignment-result.root
#
## change to the sync names
export RCE_MASKED=${RCE_MASKED}_sync
export DUT=${DUT}_sync
echo "-------------------CoarseAlign dut"
./Judith -c coarseAlignDUT -i ${RCE_MASKED}.root -I ${DUT}.root -r configs/reforig_TowerJazz.cfg -t configs/globalorig.cfg -d configs/$DUTCONFIG
#echo "-------------------FineAlign dut"
#./Judith -c fineAlignDUT -i ${RCE_MASKED}.root -I ${DUT}.root -t configs/globalorig.cfg -r configs/reforig_TowerJazz.cfg -d configs/$DUTCONFIG -R DUT-alignment-result.root -n 50000
echo "-------------------process telescope"
#./Judith -c process -i ${RCE_MASKED}.root -o ${RCE_PROCC}.root -r configs/reforig_TowerJazz.cfg -t configs/globalorig_TowerJazz.cfg -R ${RCE}-proccess-result.root #-n 50000
echo "-------------------process dut"
./Judith -c process -i ${DUT}.root -o ${DUT_PROCC}.root -r configs/$DUTCONFIG -t configs/globalorig.cfg -R ${DUT}-procress-result.root
#-n 50000
echo "-------------------Analysis telescope"
#./Judith -c analysis -i ${RCE_PROCC}.root -r configs/reforig_TowerJazz.cfg -t configs/globalorig.cfg -R ${RCE}-analysis-result.root #-n 50000
echo "-------------------Analysis dut"
./Judith -c analysisDUT -i ${RCE_PROCC}.root -I ${DUT_PROCC}.root -r configs/reforig_TowerJazz.cfg -d configs/$DUTCONFIG -t configs/globalorig_TowerJazz.cfg -R ${DUT}-analysis-result.root #-n 60000