Loading [MathJax]/extensions/TeX/AMSsymbols.js
LALInspiral 5.0.3.1-8a6b96f
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
LALInspiralSetParams.c
Go to the documentation of this file.
1/*
2* Copyright (C) 2007 David Churches, Duncan Brown, Jolien Creighton, Thomas Cokelaer
3*
4* This program is free software; you can redistribute it and/or modify
5* it under the terms of the GNU General Public License as published by
6* the Free Software Foundation; either version 2 of the License, or
7* (at your option) any later version.
8*
9* This program is distributed in the hope that it will be useful,
10* but WITHOUT ANY WARRANTY; without even the implied warranty of
11* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12* GNU General Public License for more details.
13*
14* You should have received a copy of the GNU General Public License
15* along with with program; see the file COPYING. If not, write to the
16* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
17* MA 02110-1301 USA
18*/
19
20#include <stdio.h>
21#include <lal/LALInspiralBank.h>
22
23/**
24 * \ingroup LALInspiralBank_h
25 * \brief A routine that fills an \c InspiralTemplate structure based on the values in the \c InspiralCoarseBankIn structure.
26 * \author Churches, D. K and Sathyaprakash, B.S.
27 *
28 * This function takes as an input a structure of type
29 * \c InspiralCoarseBankIn and it fills up the
30 * elements of a structure of type \c InspiralTemplate.
31 * The function sets the fields
32 * \c massChoice, \c ieta, \c signalAmplitude,
33 * \c tSampling, \c fLower, \c fCutoff,
34 * \c order,
35 * \c approximant, \c nStartPad, \c nEndPad.
36 */
37void LALInspiralSetParams(LALStatus *status, /**< LAL status pointer */
38 InspiralTemplate *tempPars, /**< [out] Output */
39 InspiralCoarseBankIn coarseIn /**< [in] Input */
40 )
41{
42
45 ASSERT (tempPars, status, LALINSPIRALBANKH_ENULL, LALINSPIRALBANKH_MSGENULL);
46 ASSERT ((INT4)coarseIn.space >= 0, status, LALINSPIRALBANKH_ESIZE, LALINSPIRALBANKH_MSGESIZE);
47 ASSERT ((INT4)coarseIn.space <= 1, status, LALINSPIRALBANKH_ESIZE, LALINSPIRALBANKH_MSGESIZE);
48
49 switch (coarseIn.space) {
50 case Tau0Tau2:
51 tempPars->massChoice = t02;
52 break;
53 case Tau0Tau3:
54 tempPars->massChoice = t03;
55 break;
56 default: /* JC: DEFAULT CASE ADDED HERE */
57 ABORT( status, 9999, "Default case in switch." );
58 }
59
60 tempPars->ieta = 1;
61 tempPars->signalAmplitude = 1.;
62 tempPars->tSampling = coarseIn.tSampling;
63 tempPars->fLower = coarseIn.fLower;
64 tempPars->fCutoff = coarseIn.fUpper;
65 tempPars->order = coarseIn.order;
66 tempPars->approximant = coarseIn.approximant;
67 tempPars->nStartPad = 0;
68 tempPars->nEndPad = 0;
69 tempPars->Theta = 0.;
70 tempPars->OmegaS = 0.;
71 tempPars->startTime = 0.;
72 tempPars->startPhase = 0.;
73 tempPars->spin1[0] = tempPars->spin1[1] = tempPars->spin1[2] = 0.;
74 tempPars->spin2[0] = tempPars->spin2[1] = tempPars->spin2[2] = 0.;
75 tempPars->inclination = 0.;
76 tempPars->eccentricity = 0.;
77
80}
#define ABORT(statusptr, code, mesg)
#define ATTATCHSTATUSPTR(statusptr)
#define ASSERT(assertion, statusptr, code, mesg)
#define DETATCHSTATUSPTR(statusptr)
#define INITSTATUS(statusptr)
#define RETURN(statusptr)
int32_t INT4
@ t03
chirptimes and , and
Definition: LALInspiral.h:185
@ t02
chirptimes and
Definition: LALInspiral.h:184
#define LALINSPIRALBANKH_ENULL
Null pointer.
void LALInspiralSetParams(LALStatus *status, InspiralTemplate *tempPars, InspiralCoarseBankIn coarseIn)
A routine that fills an InspiralTemplate structure based on the values in the InspiralCoarseBankIn st...
#define LALINSPIRALBANKH_ESIZE
Invalid input range.
@ Tau0Tau2
space of chirptimes
@ Tau0Tau3
space of chirptimes
Input for choosing a template bank.
REAL8 tSampling
Sampling rate.
LALPNOrder order
Post-Newtonian order of the waveform.
REAL8 fUpper
Upper frequency cutoff.
REAL8 fLower
Lower frequency cutoff.
Approximant approximant
Approximant of the waveform.
CoordinateSpace space
enum that decides whether to use or in constructing the template bank
The inspiral waveform parameter structure containing information about the waveform to be generated.
Definition: LALInspiral.h:205
REAL8 signalAmplitude
dimensionless amplitude of the signal (input, currently unused)
Definition: LALInspiral.h:220
REAL8 startTime
starting time of the waveform (in sec); if different from zero, the waveform will start with an insta...
Definition: LALInspiral.h:222
Approximant approximant
Post-Newtonain approximant to be used in generating the wave (input)
Definition: LALInspiral.h:208
INT4 ieta
parameter that tells whether the symmetric mass ratio should be set to zero in the PN expansions of ...
Definition: LALInspiral.h:226
INT4 nStartPad
Number of leading elements in the signal generation to be set to zero (input) If template is requeste...
Definition: LALInspiral.h:307
REAL8 inclination
Inclination of the orbit (currently not in use)
Definition: LALInspiral.h:262
REAL8 spin2[3]
Spin vector of the secondary.
Definition: LALInspiral.h:266
REAL8 Theta
The 3PN unknown flux parameter; likely to be around unity; most waveform generation routines take the...
Definition: LALInspiral.h:235
REAL8 startPhase
starting phase of the waveform in radians (input)
Definition: LALInspiral.h:221
REAL8 eccentricity
initial eccentricity of the orbit (currently not in use)
Definition: LALInspiral.h:280
REAL8 fCutoff
upper frequency cutoff in Hz to be used in generating the waveform; If the last stable orbit frequenc...
Definition: LALInspiral.h:213
INT4 nEndPad
Number of trailing bins to be set to zero, the resulting waveform will have at least this many bins z...
Definition: LALInspiral.h:312
REAL8 spin1[3]
Spin vector of the primary.
Definition: LALInspiral.h:265
LALPNOrder order
Post-Newtonain order to be used in generating the wave (input)
Definition: LALInspiral.h:209
InputMasses massChoice
The pair of (mass) parameters given (see structure defining this member for more details) (input)
Definition: LALInspiral.h:323
REAL8 fLower
lower frequency cutoff of the detector in Hz (input)
Definition: LALInspiral.h:217
REAL8 OmegaS
The 3PN (unknown) parameter; calculated to be equal to zero by Damour, Jaranowski and Schaffer (input...
Definition: LALInspiral.h:315
REAL8 tSampling
Sampling rate in Hz (input)
Definition: LALInspiral.h:218