22#include <lal/LALInspiralBank.h>
105 REAL8 x0, x1, Dx0, Dx1, dx0, dx1, x0FineMin, x1FineMin;
106 INT4 i, j, validPars, bins0, bins1;
153 bins0 = (int)(Dx0/dx0) + 1;
154 bins1 = (int)(Dx1/dx1) + 1;
156 x0FineMin = x0 - (float) bins0/2. * dx0;
157 x1FineMin = x1 - (float) bins1/2. * dx1;
159 bankPars->
x1 = x1FineMin;
160 for(
i=0;
i<=bins1;
i++) {
161 bankPars->
x0 = x0FineMin;
162 for(j=0; j<=bins0; j++) {
178 (*outlist)[*nlist].params = *tempPars;
181 bankPars->
x0+=bankPars->
dx0;
183 bankPars->
x1+=bankPars->
dx1;
185 if (tempPars!=NULL)
LALFree(tempPars);
186 if (bankPars!=NULL)
LALFree(bankPars);
#define ABORT(statusptr, code, mesg)
#define CHECKSTATUSPTR(statusptr)
#define ATTATCHSTATUSPTR(statusptr)
#define ASSERT(assertion, statusptr, code, mesg)
#define DETATCHSTATUSPTR(statusptr)
#define INITSTATUS(statusptr)
#define RETURN(statusptr)
void LALInspiralUpdateParams(LALStatus *status, InspiralBankParams *bankParams, InspiralMetric metric, REAL8 minimalMatch)
Function to update the parameters used in creating a coarse bank based on a square lattice.
void LALInspiralCreateFineBank(LALStatus *status, InspiralTemplateList **outlist, INT4 *nlist, InspiralFineBankIn fineIn)
Function to create a fine grid of templates.
#define LALINSPIRALBANKH_ENULL
Null pointer.
void LALInspiralValidTemplate(LALStatus *status, INT4 *valid, InspiralBankParams bankParams, InspiralCoarseBankIn coarseIn)
Function which checks whether or not a given template should be kept in the template list.
void LALInspiralComputeParams(LALStatus *status, InspiralTemplate *pars, InspiralBankParams bankParams, InspiralCoarseBankIn coarseIn)
This function takes as input , and (the lower frequency of the detectors sensitivity),...
#define LALINSPIRALBANKH_ESIZE
Invalid input range.
#define LALINSPIRALBANKH_EMEM
Memory allocation failure.
@ Tau0Tau2
space of chirptimes
@ Tau0Tau3
space of chirptimes
This is a structure needed in the inner workings of the LALInspiralCreateCoarseBank code.
REAL8 x1
the second coordinate, chosen to be either or
REAL8 dx0
increment in the x0-direction
REAL8 dx1
increment in the x1-direction
REAL8 x0
the first coordinate, chosen to be always
REAL8 mmFine
Fine grid minimal match.
REAL8 mmCoarse
Coarse grid minimal match.
CoordinateSpace space
enum that decides whether to use or in constructing the template bank
Structure needed by the function LALInspiralCreateFineBank.
InspiralCoarseBankIn coarseIn
input structure that contains useful necessary parameters to construct a fine-mesh
InspiralTemplateList templateList
A list containing all the fine-mesh templates.
The inspiral waveform parameter structure containing information about the waveform to be generated.
REAL8 t2
first post-Newtonian chirp time in seconds (input/output)
REAL8 t3
1.5 post-Newtonian chirp time in seconds (input/output)
REAL8 t0
Newtonain chirp time in seconds (input/output)
A grid of inspiral templates (ie a template list).
InspiralTemplate params
Value of the parameters at the lattice point.
InspiralMetric metric
metric at the lattice point