Skip to content

Commit

Permalink
Add MC input configs
Browse files Browse the repository at this point in the history
  • Loading branch information
samuel fogarty authored and samuel fogarty committed Jun 7, 2023
1 parent 520fb53 commit bd59d98
Show file tree
Hide file tree
Showing 10 changed files with 91 additions and 0 deletions.
35 changes: 35 additions & 0 deletions reco/input_config/2x2_MC.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
### 2x2 MC input configuration

# detector name
detector = '2x2'
data_type = 'MC'

# required filepaths
input_packets_filename = '/Users/samuelfogarty/Desktop/mod0files.nosync/2x2_MC/MiniRun3_1E19_RHC.larnd_v2.00000.LARNDSIM.h5'
output_events_filename = input_packets_filename.split('.h5')[0] + '_events.h5'
detector_dict_path = 'layout/2x2_multi_tile_layout-2.3.16.pkl'
detprop_path = 'detector_properties/2x2.yaml'

# toggles
do_match_of_charge_to_light = False
use_disabled_channels_list = False
use_ped_config_files = False

# light
light_time_steps = 256
nchannels_adc1 = 58
nchannels_adc2 = 58
clock_correction_factor = 0.625
ADC_drift_slope_0 = 0. # sn 175780172 (#314C)
ADC_drift_slope_1 = 0. # sn 175854781 (#54BD)

# charge
PACMAN_clock_correction1 = [0., 0.]
PACMAN_clock_correction2 = [0., 0.]

# matching
ext_trig_matching_tolerance_unix = 1
ext_trig_matching_tolerance_PPS = 1e3 # ns
from consts import drift_distance, v_drift
charge_light_matching_PPS_window = int(drift_distance / v_drift * 1e3)
charge_light_matching_unix_window = 1
51 changes: 51 additions & 0 deletions reco/input_config/SingleCube.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
### SingleCube input configuration

# detector name
detector = 'SingleCube'
data_type = 'data'

# required filepaths
input_packets_filename = '/Users/samuelfogarty/Documents/SingleCube/datalog_2023_01_20_04_29_36_MST.h5'
output_events_filename = input_packets_filename.split('.h5')[0] + '_events_SingleCube.h5'
detector_dict_path = 'layout/single_tile_layout-2.0.1.pkl'
detprop_path = 'detector_properties/SingleCube.yaml'

# optional filepaths, set to None to bypass. Can alternatively just toggle them on/off below.
adc_folder = '/Users/samuelfogarty/Desktop/mod0files.nosync/'
input_light_filename_1 = '0a7a314c_20210406_005022.data'
input_light_filename_2 = '0a7b54bd_20210406_005022.data'
disabled_channels_list = None
pedestal_file = 'pedestal/CSUSingleCube_tile-id-3-pedestal_2022_12_19_14_31_54_MST_evd_ped.json'
config_file = 'config/CSUSingleCube_config_23-06-05_13-59-25.json'

# toggles
do_match_of_charge_to_light = False
use_disabled_channels_list = False
use_ped_config_files = True

# data selection
nSec_start_packets = 1
nSec_end_packets = -1
nSec_start_light = nSec_start_packets
nSec_end_light = nSec_end_packets

# charge
PACMAN_clock_correction1 = [-9.597, 4.0021e-6]
PACMAN_clock_correction2 = [-9.329, 1.1770e-6]
PACMAN_clock_correction = True
timestamp_cut = True

# light
light_time_steps = 256
nchannels_adc1 = 58
nchannels_adc2 = 58
clock_correction_factor = 0.625
ADC_drift_slope_0 = -1.18e-7 # sn 175780172 (#314C)
ADC_drift_slope_1 = 1.18e-7 # sn 175854781 (#54BD)

# matching
ext_trig_matching_tolerance_unix = 1
ext_trig_matching_tolerance_PPS = 1e3 # ns
from consts import drift_distance, v_drift
charge_light_matching_PPS_window = int(drift_distance / v_drift * 1e3)
charge_light_matching_unix_window = 1
Binary file not shown.
Binary file not shown.
Binary file modified reco/input_config/__pycache__/module0_MC.cpython-39.pyc
Binary file not shown.
1 change: 1 addition & 0 deletions reco/input_config/module0.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
input_packets_filename = '/Users/samuelfogarty/Desktop/mod0files.nosync/datalog_2021_04_06_00_50_23_CEST.h5'
output_events_filename = input_packets_filename.split('.h5')[0] + '_events_module0.h5'
detector_dict_path = 'layout/module0_multi_tile_layout-2.3.16.pkl'
detprop_path = 'detector_properties/module0.yaml'

# optional filepaths, set to None to bypass. Can alternatively just toggle them on/off below.
adc_folder = '/Users/samuelfogarty/Desktop/mod0files.nosync/'
Expand Down
1 change: 1 addition & 0 deletions reco/input_config/module0_MC.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
input_packets_filename = '/Users/samuelfogarty/Desktop/mod0files.nosync/mod0_MC/larndsim.6ke-m0.5ke.143.h5'
output_events_filename = input_packets_filename.split('.h5')[0] + '_events.h5'
detector_dict_path = 'layout/module0_multi_tile_layout-2.3.16.pkl'
detprop_path = 'detector_properties/module0.yaml'

# toggles
do_match_of_charge_to_light = False
Expand Down
1 change: 1 addition & 0 deletions reco/input_config/module1.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
input_packets_filename = '/Users/samuelfogarty/Desktop/mod0files.nosync/datalog_2021_04_06_00_50_23_CEST.h5'
output_events_filename = input_packets_filename.split('.h5')[0] + '_events.h5'
detector_dict_path = 'layout/module1_layout-2.3.16.pkl'
detprop_path = 'detector_properties/module0.yaml'

# optional filepaths, set to None to bypass. Can alternatively just toggle them on/off below.
adc_folder = '/Users/samuelfogarty/Desktop/mod0files.nosync/'
Expand Down
1 change: 1 addition & 0 deletions reco/input_config/module2.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
input_packets_filename = '/Users/samuelfogarty/Desktop/mod0files.nosync/datalog_2021_04_06_00_50_23_CEST.h5'
output_events_filename = input_packets_filename.split('.h5')[0] + '_events_module0.h5'
detector_dict_path = 'layout/module2_multi_tile_layout-2022_11_18_04_35_CET.pkl'
detprop_path = 'detector_properties/module0.yaml'

# optional filepaths, set to None to bypass. Can alternatively just toggle them on/off below.
adc_folder = '/Users/samuelfogarty/Desktop/mod0files.nosync/'
Expand Down
1 change: 1 addition & 0 deletions reco/input_config/module3.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
input_packets_filename = '/Users/samuelfogarty/Desktop/mod0files.nosync/datalog_2021_04_06_00_50_23_CEST.h5'
output_events_filename = input_packets_filename.split('.h5')[0] + '_events.h5'
detector_dict_path = 'layout/module3_multi_tile_layout.pkl'
detprop_path = 'detector_properties/module0.yaml'

# optional filepaths, set to None to bypass. Can alternatively just toggle them on/off below.
adc_folder = '/Users/samuelfogarty/Desktop/mod0files.nosync/'
Expand Down

0 comments on commit bd59d98

Please sign in to comment.