Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

Rename s2_aft_sigma config #284

Merged
merged 1 commit into from
Dec 10, 2021
Merged
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
4 changes: 2 additions & 2 deletions wfsim/core/s2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down