Skip to content
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

Merged
merged 10 commits into from
Dec 1, 2017
Merged

Update S2Width Cut #96

merged 10 commits into from
Dec 1, 2017

Conversation

zhut19
Copy link
Contributor

@zhut19 zhut19 commented Nov 14, 2017

Update the S2Width Cut, which is formulated according to Chi2 distribution.
Note

Fixes #81

Fixes #105

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)
Copy link
Contributor

@pdeperio pdeperio left a 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.
SigmaToR50 = 1.349

class S1SingleScatter(sciencerun0.S1SingleScatter):
from scipy.stats import chi2
version = 3
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Increment S1SingleScatter version?

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
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@pdeperio pdeperio requested review from andrewgrahambrown and removed request for adambrown1 November 16, 2017 16:43
@pdeperio pdeperio modified the milestones: v1.1.0, v1.3.0 Nov 20, 2017
Copy link
Contributor

@pdeperio pdeperio left a 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.

@zhut19
Copy link
Contributor Author

zhut19 commented Dec 1, 2017

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.
wall_leakage_cut_check

@pdeperio pdeperio merged commit 2dc80d6 into master Dec 1, 2017
@pdeperio pdeperio deleted the s2-width-sr1 branch December 1, 2017 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants