Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GstLAL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
lscsoft
GstLAL
Commits
e301c251
Commit
e301c251
authored
11 years ago
by
Kipp Cannon
Browse files
Options
Downloads
Patches
Plain Diff
gstlal.far: auto-adjust SNR filter widths
parent
0463989b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gstlal-inspiral/python/far.py
+23
-17
23 additions, 17 deletions
gstlal-inspiral/python/far.py
with
23 additions
and
17 deletions
gstlal-inspiral/python/far.py
+
23
−
17
View file @
e301c251
...
...
@@ -379,29 +379,35 @@ class ThincaCoincParamsDistributions(snglcoinc.CoincParamsDistributions):
# FIXME: switch to new default when possible
ligo_lw_name_suffix
=
u
"
pylal_ligolw_burca_tailor_coincparamsdistributions
"
# FIXME: lower boundaries need to be adjusted to match search SNR
# threshold
# range of SNRs covered by this object
# FIXME: must ensure lower boundary matches search threshold
snr_min
=
4.
snr_max
=
100.
# binnings and filters
binnings
=
{
"
H1_snr_chi
"
:
rate
.
NDBins
((
rate
.
LogarithmicPlusOverflowBins
(
4.
,
100.
,
200
),
rate
.
LogarithmicPlusOverflowBins
(.
001
,
0.5
,
200
))),
"
H2_snr_chi
"
:
rate
.
NDBins
((
rate
.
LogarithmicPlusOverflowBins
(
4.
,
100.
,
200
),
rate
.
LogarithmicPlusOverflowBins
(.
001
,
0.5
,
200
))),
"
H1H2_snr_chi
"
:
rate
.
NDBins
((
rate
.
LogarithmicPlusOverflowBins
(
4.
,
100.
,
200
),
rate
.
LogarithmicPlusOverflowBins
(.
001
,
0.5
,
200
))),
"
L1_snr_chi
"
:
rate
.
NDBins
((
rate
.
LogarithmicPlusOverflowBins
(
4.
,
100.
,
200
),
rate
.
LogarithmicPlusOverflowBins
(.
001
,
0.5
,
200
))),
"
V1_snr_chi
"
:
rate
.
NDBins
((
rate
.
LogarithmicPlusOverflowBins
(
4.
,
100.
,
200
),
rate
.
LogarithmicPlusOverflowBins
(.
001
,
0.5
,
200
)))
"
H1_snr_chi
"
:
rate
.
NDBins
((
rate
.
LogarithmicPlusOverflowBins
(
snr_min
,
snr_max
,
200
),
rate
.
LogarithmicPlusOverflowBins
(.
001
,
0.5
,
200
))),
"
H2_snr_chi
"
:
rate
.
NDBins
((
rate
.
LogarithmicPlusOverflowBins
(
snr_min
,
snr_max
,
200
),
rate
.
LogarithmicPlusOverflowBins
(.
001
,
0.5
,
200
))),
"
H1H2_snr_chi
"
:
rate
.
NDBins
((
rate
.
LogarithmicPlusOverflowBins
(
snr_min
,
snr_max
,
200
),
rate
.
LogarithmicPlusOverflowBins
(.
001
,
0.5
,
200
))),
"
L1_snr_chi
"
:
rate
.
NDBins
((
rate
.
LogarithmicPlusOverflowBins
(
snr_min
,
snr_max
,
200
),
rate
.
LogarithmicPlusOverflowBins
(.
001
,
0.5
,
200
))),
"
V1_snr_chi
"
:
rate
.
NDBins
((
rate
.
LogarithmicPlusOverflowBins
(
snr_min
,
snr_max
,
200
),
rate
.
LogarithmicPlusOverflowBins
(.
001
,
0.5
,
200
)))
}
# FIXME the characteristic width (which is relevant for smoothing)
# should be roughly 1.41 in SNR (from Gaussian noise expectations). So
# it is tied to how many bins there are per SNR range. With 200 bins
# between 4 and 26 each bin is .11 wide in SNR. So a width of 13 bins
# corresponds to 1.43 which is close to 1.41
def
snr_chi_filter
(
bins
,
snr_width_at_8
=
math
.
sqrt
(
2
)
/
4.0
,
sigma
=
10
):
snr_bins
=
bins
[
0
]
bin_width_at_8
=
(
snr_bins
.
upper
()
-
snr_bins
.
lower
())[
snr_bins
[
8.0
]]
return
rate
.
gaussian_window
(
snr_width_at_8
/
bin_width_at_8
,
7
,
sigma
=
sigma
)
filters
=
{
"
H1_snr_chi
"
:
rate
.
gaussian_window
(
7
,
7
,
sigma
=
10
),
"
H2_snr_chi
"
:
rate
.
gaussian_window
(
7
,
7
,
sigma
=
10
),
"
H1H2_snr_chi
"
:
rate
.
gaussian_window
(
7
,
7
,
sigma
=
10
),
"
L1_snr_chi
"
:
rate
.
gaussian_window
(
7
,
7
,
sigma
=
10
),
"
V1_snr_chi
"
:
rate
.
gaussian_window
(
7
,
7
,
sigma
=
10
)
"
H1_snr_chi
"
:
snr_chi_filter
(
binnings
[
"
H1_snr_chi
"
]
),
"
H2_snr_chi
"
:
snr_chi_filter
(
binnings
[
"
H2_snr_chi
"
]
),
"
H1H2_snr_chi
"
:
snr_chi_filter
(
binnings
[
"
H1H2_snr_chi
"
]
),
"
L1_snr_chi
"
:
snr_chi_filter
(
binnings
[
"
L1_snr_chi
"
]
),
"
V1_snr_chi
"
:
snr_chi_filter
(
binnings
[
"
V1_snr_chi
"
]
)
}
del
snr_chi_filter
@staticmethod
def
coinc_params
(
events
,
offsetvector
):
instruments
=
set
(
event
.
ifo
for
event
in
events
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment