From 2c51b338b49c5c161f79eb716520f463b3f34e15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Ram=C3=ADrez=20Garc=C3=ADa?= Date: Wed, 8 Dec 2021 14:12:18 +0100 Subject: [PATCH] Rename s2_aft_sigma config --- wfsim/core/s2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wfsim/core/s2.py b/wfsim/core/s2.py index bd01ae92..e6437db6 100644 --- a/wfsim/core/s2.py +++ b/wfsim/core/s2.py @@ -447,7 +447,7 @@ def photon_channels(n_electron, z_obs, positions, _photon_timings, _instruction, return _photon_timings, _photon_channels aft = config['s2_mean_area_fraction_top'] - aft_random = config.get('randomize_fraction_of_s2_top_array_photons', 0.0118) + aft_sigma = config.get('s2_aft_sigma', 0.0118) aft_skewness = config.get('s2_aft_skewness', -1.433) channels = np.arange(config['n_tpc_pmts']).astype(np.int64) @@ -478,7 +478,7 @@ def photon_channels(n_electron, z_obs, positions, _photon_timings, _instruction, if aft > 0: # Redistribute pattern with user specified aft _aft = aft * (1 + skewnorm.rvs(loc=0, - scale=aft_random, + scale=aft_sigma, a=aft_skewness)) _aft = np.clip(_aft, 0, 1) pat[top_index] = pat[top_index] / pat[top_index].sum() * _aft