2022-09-28 15:18:04 +02:00
|
|
|
.PHONY: all
|
|
|
|
|
2023-02-03 16:22:08 +01:00
|
|
|
FIG_DIR ?= ./figures
|
2023-01-12 14:59:00 +01:00
|
|
|
|
2023-02-02 14:27:25 +01:00
|
|
|
-include config.mk
|
2022-09-28 15:18:04 +02:00
|
|
|
|
2023-02-02 14:27:25 +01:00
|
|
|
MAX_K ?= 3
|
|
|
|
CLK_DEV ?= 20
|
|
|
|
TRACE_N ?= 4096
|
|
|
|
TRACE_PRE ?= 500
|
|
|
|
NOISE_SIGMA ?= 1e4
|
|
|
|
|
|
|
|
BEAC_AMP ?= 1e3 0 0
|
|
|
|
BEAC_F ?= 51.53e-3
|
|
|
|
BEAC_DECAY ?= 0
|
|
|
|
|
|
|
|
PB_LOW ?= 0.03
|
|
|
|
PB_HIGH ?= 0.08
|
|
|
|
|
2023-02-02 14:57:55 +01:00
|
|
|
REF_ANTS ?=
|
2022-09-28 15:18:04 +02:00
|
|
|
|
2023-02-03 14:37:20 +01:00
|
|
|
N_MASK ?= 500
|
|
|
|
|
2023-02-02 17:55:37 +01:00
|
|
|
DATA_DIR ?= ./data
|
|
|
|
INPUT_DIR ?= ./ZH_airshower/
|
2023-02-02 18:09:10 +01:00
|
|
|
SEED ?= 12345
|
2023-02-02 17:55:37 +01:00
|
|
|
|
2023-02-02 14:27:25 +01:00
|
|
|
all: beacon clocks phases findks vary-fixes reconstruct
|
2022-09-28 15:18:04 +02:00
|
|
|
|
2023-02-14 16:32:25 +01:00
|
|
|
beacon: generate-beacon signal-to-noise
|
|
|
|
phases: beacon-phase clock-phase baseline-phase antenna-phase
|
|
|
|
|
|
|
|
######
|
|
|
|
|
|
|
|
generate-beacon:
|
2023-02-02 17:55:37 +01:00
|
|
|
./aa_generate_beacon.py -N ${TRACE_N} -P ${TRACE_PRE} -n ${NOISE_SIGMA} -a ${BEAC_AMP} -f ${BEAC_F} -l ${PB_LOW} -u ${PB_HIGH} -d ${BEAC_DECAY} --data-dir ${DATA_DIR} --input-fname ${INPUT_DIR} | tee ${FIG_DIR}/aa.log
|
2023-02-13 14:56:49 +01:00
|
|
|
./ab_modify_clocks.py 0 --no-save-clocks --data-dir ${DATA_DIR} | tee ${FIG_DIR}/ab.log
|
2023-02-14 16:32:25 +01:00
|
|
|
|
|
|
|
signal-to-noise:
|
2023-04-13 12:34:49 +02:00
|
|
|
./ac_show_signal_to_noise.py -l ${PB_LOW} -u ${PB_HIGH} --no-show-plots --fig-dir=${FIG_DIR} --data-dir ${DATA_DIR}
|
2023-02-02 17:55:37 +01:00
|
|
|
./view_beaconed_antenna.py 72 -p x -p y -p z -p n -p b --ft --no-show-plots --fig-dir=${FIG_DIR} --data-dir ${DATA_DIR}
|
2022-09-28 15:18:04 +02:00
|
|
|
|
2023-02-14 16:32:25 +01:00
|
|
|
#
|
2023-02-13 14:56:49 +01:00
|
|
|
new-clocks:
|
2023-02-02 18:09:10 +01:00
|
|
|
./ab_modify_clocks.py ${CLK_DEV} --seed ${SEED} --gaussian --data-dir ${DATA_DIR}
|
2022-09-28 15:18:04 +02:00
|
|
|
|
2023-02-13 14:56:49 +01:00
|
|
|
clocks:
|
|
|
|
./ab_modify_clocks.py ${CLK_DEV} --read-clocks-file --seed ${SEED} --gaussian --data-dir ${DATA_DIR}
|
|
|
|
|
|
|
|
reset-clocks:
|
|
|
|
./ab_modify_clocks.py 0 --data-dir ${DATA_DIR}
|
|
|
|
|
2023-02-14 16:32:25 +01:00
|
|
|
#
|
|
|
|
beacon-phase:
|
2023-02-03 14:37:20 +01:00
|
|
|
./ba_measure_beacon_phase.py --N-mask ${N_MASK} --no-show-plots --fig-dir=${FIG_DIR} --data-dir ${DATA_DIR}
|
2023-02-14 16:32:25 +01:00
|
|
|
|
|
|
|
clock-phase:
|
2023-02-02 17:55:37 +01:00
|
|
|
./bb_measure_clock_phase.py --no-show-plots --fig-dir=${FIG_DIR} --data-dir ${DATA_DIR}
|
2023-02-14 16:32:25 +01:00
|
|
|
|
|
|
|
baseline-phase:
|
2023-02-02 17:55:37 +01:00
|
|
|
./bc_baseline_phase_deltas.py ${REF_ANTS} --no-show-plots --fig-dir=${FIG_DIR} --data-dir ${DATA_DIR}
|
2023-02-14 16:32:25 +01:00
|
|
|
|
|
|
|
antenna-phase:
|
2023-02-02 17:55:37 +01:00
|
|
|
./bd_antenna_phase_deltas.py --no-show-plots --fig-dir=${FIG_DIR} --data-dir ${DATA_DIR}
|
2023-01-12 14:59:00 +01:00
|
|
|
|
2023-02-14 16:32:25 +01:00
|
|
|
#
|
2023-01-12 14:59:00 +01:00
|
|
|
findks:
|
2023-02-02 19:27:01 +01:00
|
|
|
./ca_period_from_shower.py --input-fname ${INPUT_DIR} --max-k ${MAX_K} --no-show-plots --fig-dir=${FIG_DIR} --data-dir ${DATA_DIR} -l ${PB_LOW} -u ${PB_HIGH}
|
2023-04-13 12:37:22 +02:00
|
|
|
|
2023-04-28 17:16:23 +02:00
|
|
|
rough-findks:
|
|
|
|
./ca_period_from_shower.py --input-fname ${INPUT_DIR} --max-k ${MAX_K} --no-show-plots --fig-dir=${FIG_DIR} --data-dir ${DATA_DIR} -l ${PB_LOW} -u ${PB_HIGH} --quick_run
|
|
|
|
|
2023-04-13 12:37:22 +02:00
|
|
|
reportks:
|
2023-02-02 17:55:37 +01:00
|
|
|
./cb_report_measured_antenna_time_offsets.py --no-show-plots --fig-dir=${FIG_DIR} --data-dir ${DATA_DIR}
|
2022-11-21 13:43:58 +01:00
|
|
|
|
2023-02-14 16:32:25 +01:00
|
|
|
#
|
2023-02-02 14:27:25 +01:00
|
|
|
vary-fixes:
|
2023-02-02 17:55:37 +01:00
|
|
|
./dc_grid_power_time_fixes.py --no-show-plots --fig-dir=${FIG_DIR} --data-dir ${DATA_DIR} --input-fname ${INPUT_DIR}
|
2022-11-21 13:43:58 +01:00
|
|
|
|
2023-02-14 16:32:25 +01:00
|
|
|
#
|
2023-01-12 14:59:00 +01:00
|
|
|
reconstruct:
|
2023-02-02 17:55:37 +01:00
|
|
|
./da_reconstruction.py --no-show-plots --fig-dir=${FIG_DIR} --data-dir ${DATA_DIR} --input-fname ${INPUT_DIR}
|
|
|
|
./db_longitudinal_figure.py --no-show-plots --fig-dir=${FIG_DIR} --data-dir ${DATA_DIR}
|
2023-02-02 14:27:25 +01:00
|
|
|
|
2022-09-28 15:18:04 +02:00
|
|
|
dist-clean:
|
2023-02-14 16:32:25 +01:00
|
|
|
rm -vf ${DATA_DIR}/
|
|
|
|
rm -vf ${FIG_DIR}/
|