Loading [MathJax]/extensions/TeX/AMSsymbols.js
LALInspiral 5.0.3.1-5e288d3
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
LALInspiralLongestTemplateInBank.c
Go to the documentation of this file.
1/*
2* Copyright (C) 2007 B.S. Sathyaprakash
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 <lal/LALInspiralBank.h>
21
22/**
23 * \ingroup LALInspiralBank_h
24 * \brief Function to find the longest template in a template bank.
25 * \author Sathyaprakash, B.S.
26 *
27 * Given the parameters of a template bank find the longest template
28 * in the bank. This is done by looking at the duration for which
29 * a signal corresponding to smallest masses lasts. One simply calls
30 * the \c LALInspiralWaveLength code for a system consisting
31 * of two stars each of mass <tt>mMin.</tt>
32 */
33void
35 (
37 UINT4 *templateLength,
38 InspiralCoarseBankIn *coarseIn
39 )
40{
41
42 InspiralTemplate param;
45 ASSERT (coarseIn, status, LALINSPIRALBANKH_ENULL, LALINSPIRALBANKH_MSGENULL);
46 param.startTime = 0.0;
47 param.startPhase = 0.0;
48 param.nStartPad = 0;
49 param.nEndPad = 0;
50 param.ieta = 1;
51 param.Theta = 0.;
52 param.OmegaS = 0.;
53 param.mass1 = coarseIn->mMin;
54 param.mass2 = coarseIn->mMin;
55 param.fLower = coarseIn->fLower;
56 param.fCutoff = coarseIn->fUpper;
57 param.tSampling = coarseIn->tSampling;
58 param.signalAmplitude = 1.;
59 param.order = coarseIn->order;
60 param.approximant = coarseIn->approximant;
61 param.massChoice = m1Andm2;
62 LALInspiralParameterCalc (status->statusPtr, &param);
64 *templateLength = 0;
65 LALInspiralWaveLength (status->statusPtr, templateLength, param);
69}
void LALInspiralWaveLength(LALStatus *status, UINT4 *n, InspiralTemplate params)
void LALInspiralParameterCalc(LALStatus *status, InspiralTemplate *params)
#define CHECKSTATUSPTR(statusptr)
#define ATTATCHSTATUSPTR(statusptr)
#define ASSERT(assertion, statusptr, code, mesg)
#define DETATCHSTATUSPTR(statusptr)
#define INITSTATUS(statusptr)
#define RETURN(statusptr)
uint32_t UINT4
@ m1Andm2
component masses
Definition: LALInspiral.h:179
#define LALINSPIRALBANKH_ENULL
Null pointer.
void LALInspiralLongestTemplateInBank(LALStatus *status, UINT4 *templateLength, InspiralCoarseBankIn *coarseIn)
Function to find the longest template in a template bank.
Input for choosing a template bank.
REAL8 mMin
minimum mass of components to search for
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.
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 mass1
Mass of the primary in solar mass (input/output)
Definition: LALInspiral.h:211
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 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 mass2
Mass of the secondary in solar mass (mass1 need not be larger than mass2 (input/output)
Definition: LALInspiral.h:212
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