-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update S2Width Cut #96
Conversation
Update the S2Width Cut, which is formulated according to Chi2 distribution. [Note](https://xe1t-wiki.lngs.infn.it/doku.php?id=xenon:xenon1t:sim:notes:tzhu:width_cut_tuning#toy_fax_simulation)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this instead be implemented in sciencerun0.py
then inherited in sciencerun1.py
?
(Also, please fix codacy
issues.)
Update SR0 S2 width using the chi2 model, also update S1SingleScatter, since it's using the S2Width Cut
1) Make all science run dependent variables as class attributes of S2Width, so that they can be called by self dot, and doing so without a explicit class constructor. 2) By doing 1) we can make S2Width class a class attribute of S1SingleScatter, which carries all the run dependent variables as its own class attributes. 3) So that in sciencerun1 lichens, we can simply inherit the sr0 classes (and becomes their own class) and reassign those few class attributes, and no need for changing any methods.
lax/lichens/sciencerun1.py
Outdated
SigmaToR50 = 1.349 | ||
|
||
class S1SingleScatter(sciencerun0.S1SingleScatter): | ||
from scipy.stats import chi2 | ||
version = 3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Increment S1SingleScatter
version?
lax/lichens/sciencerun1.py
Outdated
v_drift = 1.335 * (units.um) / units.ns | ||
scg = 21.3 # s2_secondary_sc_gain in pax config | ||
scw = 229.58 # s2_secondary_sc_width median | ||
SigmaToR50 = 1.349 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line necessary if you're not changing it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, they are just overwriting the sr0 values here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Request from @skazama to check against a wall leakage background control sample (provided by @AlexElykov?), and re-optimize accordingly if necessary.
The wall leakage background data provided by @jingqiangye have no specific feature in this cut space. As well as in S1/S2 pattern, S2 single scatter, S2 area fraction top. |
Update the S2Width Cut, which is formulated according to Chi2 distribution.
Note
Fixes #81
Fixes #105