Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions larndsim/config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module0:
# Path to light LUT at NERSC
# Web portal: https://portal.nersc.gov/project/dune/data/2x2/simulation/larndsim_data/light_LUT/
# Alternatively low granularity Mod0 based light LUT in larndsim, lightLUT.npz
LIGHT_LUT: /dvs_ro/cfs/cdirs/dune/www/data/2x2/simulation/larndsim_data/light_LUT/lightLUT_Mod0_06052024_time_norm.npz
LIGHT_LUT: /dvs_ro/cfs/cdirs/dune/www/data/2x2/simulation/larndsim_data/light_LUT/lightLUT_Mod0_06052024_time_norm_swapped_y.npz
LIGHT_DET_NOISE: light_noise-module0.npy
LIGHT_SIMULATED: True

Expand All @@ -20,7 +20,7 @@ module0:
# Path to light LUT at NERSC
# Web portal: https://portal.nersc.gov/project/dune/data/2x2/simulation/larndsim_data/light_LUT/
# Alternatively low granularity Mod0 based light LUT in larndsim, lightLUT.npz
LIGHT_LUT: /dvs_ro/cfs/cdirs/dune/www/data/2x2/simulation/larndsim_data/light_LUT/lightLUT_Mod123_06052024_time_norm.npz
LIGHT_LUT: /dvs_ro/cfs/cdirs/dune/www/data/2x2/simulation/larndsim_data/light_LUT/lightLUT_Mod123_06052024_time_norm_swapped_y.npz
LIGHT_DET_NOISE: 4Mod_LNoise_Mod1_2fftx192_MR5-ish.npy
LIGHT_SIMULATED: True
MOD2MOD_VARIATION: False
Expand Down Expand Up @@ -53,7 +53,7 @@ module0:
# Web portal: https://portal.nersc.gov/project/dune/data/2x2/simulation/larndsim_data/light_LUT/
# Alternatively low granularity Mod0 based light LUT in larndsim, lightLUT.npz
# LIGHT_LUT: [/sdf/data/neutrino/2x2/light_lut/lightLUT_Mod0_06052024_time_norm.npz, /sdf/data/neutrino/2x2/light_lut/lightLUT_Mod123_06052024_time_norm.npz]
LIGHT_LUT: [/dvs_ro/cfs/cdirs/dune/www/data/2x2/simulation/larndsim_data/light_LUT/lightLUT_Mod0_06052024_time_norm.npz, /dvs_ro/cfs/cdirs/dune/www/data/2x2/simulation/larndsim_data/light_LUT/lightLUT_Mod123_06052024_time_norm.npz]
LIGHT_LUT: [/dvs_ro/cfs/cdirs/dune/www/data/2x2/simulation/larndsim_data/light_LUT/lightLUT_Mod0_06052024_time_norm_swapped_y.npz, /dvs_ro/cfs/cdirs/dune/www/data/2x2/simulation/larndsim_data/light_LUT/lightLUT_Mod123_06052024_time_norm_swapped_y.npz]
LIGHT_LUT_ID: [0, 1, 1, 1]
MOD2MOD_VARIATION: True

Expand Down
2 changes: 1 addition & 1 deletion larndsim/lightLUT.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def get_voxel(pos, itpc, lut_vox_div):
# rather than the xMin side as means of rotating the x component
i = int((x_max - pos[0])/(x_max - x_min) * lut_vox_div[0])

j = int((y_max - pos[1])/(y_max - y_min) * lut_vox_div[1])
j = int((pos[1] - y_min)/(y_max - y_min) * lut_vox_div[1])
k = int((pos[2] - z_min)/(z_max - z_min) * lut_vox_div[2])

i = min(lut_vox_div[0] - 1, max(0, i))
Expand Down
Loading