Skip to content
Snippets Groups Projects
Commit 6697c1f0 authored by BenVK's avatar BenVK
Browse files

added a second threshold to control what is a double count in centroid_one

parent 8026e420
No related branches found
No related tags found
1 merge request!239New/Updated Centroiding Methods
......@@ -230,6 +230,7 @@ class hRIXS:
# centroid
THRESHOLD = None # pixel counts above which a hit candidate is assumed
STD_THRESHOLD = 3.5 # same as THRESHOLD, in standard deviations
DBL_THRESHOLD = 7.5 # factor used for double hits in centroid_one
CURVE_A = 0 # curvature parameters as determined elsewhere
CURVE_B = 0
......@@ -354,7 +355,7 @@ class hRIXS:
threshold = self.THRESHOLD
# Threshold for double photons chosen to be the same ratio to single
# photons as found in the ESRF method
SpotHIGH=7.5*threshold
SpotHIGH=self.DBL_THRESHOLD*threshold
if self.AVOID_DBL:
SpotHIGH = 100000
middle = corners[1:-1, 1:-1]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment