Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lalsuite-archive
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
lscsoft
lalsuite-archive
Commits
bc3ac923
Commit
bc3ac923
authored
22 years ago
by
Duncan Brown
Browse files
Options
Downloads
Patches
Plain Diff
fixed code to compute effective distance to standard candle
parent
2fae0680
No related branches found
Branches containing commit
Tags
test-2002-06-26
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lal/packages/findchirp/src/FindChirpSlave.c
+11
-4
11 additions, 4 deletions
lal/packages/findchirp/src/FindChirpSlave.c
with
11 additions
and
4 deletions
lal/packages/findchirp/src/FindChirpSlave.c
+
11
−
4
View file @
bc3ac923
...
...
@@ -606,16 +606,23 @@ LALFindChirpSlave (
if
(
params
->
candlePtr
)
{
FindChirpStandardCandle
*
candle
=
params
->
candlePtr
;
REAL4
cannonDist
=
1
.
0
;
/* Mpc */
REAL4
m
=
(
REAL4
)
candle
->
tmplt
.
totalMass
;
REAL4
mu
=
(
REAL4
)
candle
->
tmplt
.
mu
;
REAL4
distNorm
=
2
.
0
*
LAL_MRSUN_SI
/
(
cannonDist
*
1e6
*
LAL_PC_SI
);
REAL4
candleTmpltNorm
=
sqrt
(
(
5
.
0
*
mu
)
/
96
.
0
)
*
pow
(
m
/
(
LAL_PI
*
LAL_PI
)
,
1
.
0
/
3
.
0
)
*
pow
(
LAL_MTSUN_SI
/
(
REAL4
)
params
->
tmpltParams
->
deltaT
,
-
1
.
0
/
6
.
0
);
candle
->
sigmasq
=
4
.
0
*
(
(
REAL4
)
params
->
tmpltParams
->
deltaT
/
(
REAL4
)
params
->
filterInput
->
fcTmplt
->
data
->
length
)
*
candleTmpltNorm
*
params
->
fcSegVec
->
data
->
segNorm
;
distNorm
*=
params
->
tmpltParams
->
dynRange
;
candleTmpltNorm
*=
candleTmpltNorm
;
candleTmpltNorm
*=
distNorm
*
distNorm
;
candle
->
sigmasq
=
4
.
0
*
(
(
REAL4
)
params
->
filterParams
->
deltaT
/
(
REAL4
)
params
->
filterParams
->
qVec
->
length
);
candle
->
sigmasq
*=
candleTmpltNorm
*
params
->
fcSegVec
->
data
->
segNorm
;
candle
->
effDistance
=
sqrt
(
candle
->
sigmasq
/
candle
->
rhosq
);
}
...
...
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