122#include <lal/LALInspiralBank.h>
123#include <lal/LALNoiseModels.h>
124#include <lal/AVFactories.h>
137 INT4 i, j, clist=0, flist=0;
138 UINT4 numPSDpts = 262144;
143 fpr = fopen(
"CoarseTest.out",
"w");
151 coarseIn->
mMin = 1.0;
152 coarseIn->
mMax = 30.0;
153 coarseIn->
MMax = coarseIn->
mMax * 2.0;
168 pow(coarseIn->
MMax,2.);
172 coarseIn->
shf.
f0 = 0;
178 coarseIn->
iflso = 0.;
180 fprintf(fpr,
"#clist=%d\n",clist);
181 for (i=0;
i<clist;
i++)
183 fprintf(fpr,
"%e %e %e %e %e %e %e\n",
186 coarseList[i].params.t2,
187 coarseList[i].params.totalMass,
188 coarseList[i].params.eta,
189 coarseList[i].params.mass1,
190 coarseList[i].params.mass2);
197 for (j=0; j<clist; j+=48)
201 fprintf(fpr,
"#flist=%d\n",flist);
202 for (i=0;
i<flist;
i++) {
203 fprintf(fpr,
"%e %e %e %e %e %e %e\n",
206 fineList[i].params.t2,
207 fineList[i].params.totalMass,
208 fineList[i].params.eta,
209 fineList[i].params.mass1,
210 fineList[i].params.mass2);
212 if (fineList!=NULL)
LALFree(fineList);
218 if (fineList!=NULL)
LALFree(fineList);
219 if (coarseList!=NULL)
LALFree(coarseList);
220 if (coarseIn!=NULL)
LALFree(coarseIn);
221 if (fineIn!=NULL)
LALFree(fineIn);
void LALCheckMemoryLeaks(void)
void LALInspiralCreateFineBank(LALStatus *status, InspiralTemplateList **outlist, INT4 *nlist, InspiralFineBankIn fineIn)
Function to create a fine grid of templates.
void LALInspiralCreateCoarseBank(LALStatus *status, InspiralTemplateList **list, INT4 *nlist, InspiralCoarseBankIn bankIn)
@ MinComponentMassMaxTotalMass
@ Tau0Tau3
space of chirptimes
void LALNoiseSpectralDensity(LALStatus *status, REAL8Vector *psd, void(*NoisePsd)(LALStatus *status, REAL8 *shf, REAL8 f), REAL8 df)
void LALLIGOIPsd(LALStatus UNUSED *status, REAL8 *psd, REAL8 f)
void LALDCreateVector(LALStatus *, REAL8Vector **, UINT4)
void LALDDestroyVector(LALStatus *, REAL8Vector **)
Input for choosing a template bank.
REAL8 mmFine
Fine grid minimal match.
REAL8 mMin
minimum mass of components to search for
REAL8 mMax
maximum mass of components to search for
InspiralBankMassRange massRange
enum that determines whether templates should be chosen using fixed ranges for component masses or to...
REAL8 tSampling
Sampling rate.
GridSpacing gridSpacing
Type of gridspacing required.
REAL8FrequencySeries shf
Frequency series containing the PSD.
LALPNOrder order
Post-Newtonian order of the waveform.
INT4 iflso
iflso is an integer that tells whether to compute the moments using an upper limit defined by flso; t...
REAL8 MMax
alternatively, maximum total mass of binary to search for
REAL8 etamin
minimum value of eta in our search
REAL8 fUpper
Upper frequency cutoff.
REAL8 fLower
Lower frequency cutoff.
Approximant approximant
Approximant of the waveform.
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.
A grid of inspiral templates (ie a template list).
int main(int argc, char **argv)