Skip to content

Commit

Permalink
ignoring acceptances
Browse files Browse the repository at this point in the history
  • Loading branch information
josh0-jrg committed Sep 20, 2024
1 parent 8c2fb00 commit 8b3169f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 5 additions & 1 deletion flamedisx/lz/lz.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,10 @@ def add_extra_columns(self, d):
# Different interaction types: flat spectra
##

GAS_CONSTANT = 8.314
N_AVAGADRO = 6.0221409e23
A_XENON = 131.293
XENON_REF_DENSITY = 2.90

@export
class LZERSource(LZSource, fd.nest.nestERSource):
Expand Down Expand Up @@ -671,7 +675,7 @@ def simulate(self, n_events, fix_truth=None, full_annotate=False,
df = df.join(df_time)

lz_source.add_extra_columns(df)
df['acceptance'] = df['fv_acceptance'].values * df['resistor_acceptance'].values * df['timestamp_acceptance'].values
df['acceptance'] = np.ones_like(df['fv_acceptance'].values * df['resistor_acceptance'].values * df['timestamp_acceptance'].values)

df['cs1'] = df['cs1_phd'] * (1 + lz_source.double_pe_fraction)
df['cs2'] = 10**df['log10_cs2_phd'] * (1 + lz_source.double_pe_fraction)
Expand Down
8 changes: 3 additions & 5 deletions flamedisx/nest/config/lz_SR3.ini
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,9 @@ s2Fano_config = 4.0
;not sure about this
s2_thr_config = 570.58 ;

S1_noise_config = 0.
S2_noise_config = 0.083
;which one of these?
;noiseLinear[0] = 0.083; //noise terms tuned to preSR3 3H widths
;noiseLinear[1] = 0.;
S1_noise_config = 0.083 ; see the note
S2_noise_config = 0.




Expand Down

0 comments on commit 8b3169f

Please sign in to comment.