Loading [MathJax]/extensions/TeX/AMSsymbols.js
LALInference 4.1.9.1-3a66518
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
LALInferenceBurstRoutines.c File Reference

Prototypes

static void semi_major_minor_from_e (double e, double *a, double *b)
 
int XLALGetBurstApproximantFromString (const CHAR *inString)
 XLAL function to determine burst approximant from a string. More...
 
int XLALCheckBurstApproximantFromString (const CHAR *inString)
 
int XLALSimBurstImplementedTDApproximants (BurstApproximant approximant)
 
int XLALSimBurstImplementedFDApproximants (BurstApproximant approximant)
 Checks whether the given approximant is implemented in lalsimulation's XLALSimInspiralChooseFDWaveform(). More...
 
int XLALSimBurstChooseFDWaveform (COMPLEX16FrequencySeries **hptilde, COMPLEX16FrequencySeries **hctilde, REAL8 deltaF, REAL8 deltaT, REAL8 f0, REAL8 q, REAL8 tau, REAL8 f_min, REAL8 f_max, REAL8 hrss, REAL8 polar_angle, REAL8 polar_ecc, LALSimBurstExtraParam *extraParams, BurstApproximant approximant)
 
int XLALSimBurstChooseTDWaveform (REAL8TimeSeries **hplus, REAL8TimeSeries **hcross, REAL8 deltaT, REAL8 f0, REAL8 q, REAL8 tau, REAL8 f_min, REAL8 f_max, REAL8 hrss, REAL8 polar_angle, REAL8 polar_ecc, LALSimBurstExtraParam *extraParams, BurstApproximant approximant)
 
charXLALGetStringFromBurstApproximant (BurstApproximant bapproximant)
 XLAL function to determine string from approximant enum. More...
 
int XLALInferenceBurstSineGaussian (REAL8TimeSeries **hplus, REAL8TimeSeries **hcross, REAL8 Q, REAL8 centre_frequency, REAL8 hrss, REAL8 eccentricity, REAL8 phase, REAL8 delta_t)
 Input: More...
 
int XLALInferenceBurstSineGaussianF (COMPLEX16FrequencySeries **hplus, COMPLEX16FrequencySeries **hcross, REAL8 Q, REAL8 centre_frequency, REAL8 hrss, REAL8 eccentricity, REAL8 phase, REAL8 deltaF, REAL8 deltaT)
 
int XLALInferenceBurstSineGaussianFFast (COMPLEX16FrequencySeries **hplus, COMPLEX16FrequencySeries **hcross, REAL8 Q, REAL8 centre_frequency, REAL8 hrss, REAL8 eccentricity, REAL8 phase, REAL8 deltaF, REAL8 deltaT)
 
int XLALInferenceBurstGaussian (REAL8TimeSeries **hplus, REAL8TimeSeries **hcross, REAL8 duration, REAL8 hrss, REAL8 eccentricity, REAL8 polarization, REAL8 delta_t)
 
int XLALInferenceBurstGaussianF (COMPLEX16FrequencySeries **hplus, COMPLEX16FrequencySeries **hcross, REAL8 duration, REAL8 hrss, REAL8 phase, REAL8 deltaF, REAL8 deltaT)
 
int XLALInferenceBurstDampedSinusoid (REAL8TimeSeries **hplus, REAL8TimeSeries **hcross, REAL8 Q, REAL8 centre_frequency, REAL8 hrss, REAL8 eccentricity, REAL8 phase, REAL8 delta_t)
 
int XLALInferenceBurstDampedSinusoidF (COMPLEX16FrequencySeries **hplus, COMPLEX16FrequencySeries **hcross, REAL8 Q, REAL8 centre_frequency, REAL8 hrss, REAL8 eccentricity, REAL8 phase, REAL8 deltaF, REAL8 deltaT)
 
static CacheVariableDiffersBitmask CacheArgsDifferenceBitmask (LALSimBurstWaveformCache *cache, REAL8 deltaT, REAL8 deltaF, REAL8 f0, REAL8 q, REAL8 tau, REAL8 f_min, REAL8 f_max, REAL8 hrss, REAL8 polar_angle, REAL8 polar_ecc, LALSimBurstExtraParam *extraParams, BurstApproximant approximant)
 Function to compare the requested arguments to those stored in the cache, returns a bitmask which determines if a cached waveform can be recycled. More...
 
static int StoreTDHCache (LALSimBurstWaveformCache *cache, REAL8TimeSeries *hplus, REAL8TimeSeries *hcross, REAL8 deltaT, REAL8 f0, REAL8 q, REAL8 tau, REAL8 f_min, REAL8 f_max, REAL8 hrss, REAL8 polar_angle, REAL8 polar_ecc, LALSimBurstExtraParam *extraParams, BurstApproximant approximant)
 Store the output TD hplus and hcross in the cache. More...
 
static int StoreFDHCache (LALSimBurstWaveformCache *cache, COMPLEX16FrequencySeries *hptilde, COMPLEX16FrequencySeries *hctilde, REAL8 deltaF, REAL8 deltaT, REAL8 f0, REAL8 q, REAL8 tau, REAL8 f_min, REAL8 f_max, REAL8 hrss, REAL8 polar_angle, REAL8 polar_ecc, LALSimBurstExtraParam *extraParams, BurstApproximant approximant)
 Store the output FD hptilde and hctilde in cache. More...
 
int XLALSimBurstChooseTDWaveformFromCache (REAL8TimeSeries **hplus, REAL8TimeSeries **hcross, REAL8 deltaT, REAL8 f0, REAL8 q, REAL8 tau, REAL8 f_min, REAL8 f_max, REAL8 hrss, REAL8 polar_angle, REAL8 polar_ecc, LALSimBurstExtraParam *extraParams, BurstApproximant approximant, LALSimBurstWaveformCache *cache)
 Chooses between different approximants when requesting a waveform to be generated Returns the waveform in the time domain. More...
 
int XLALSimBurstChooseFDWaveformFromCache (COMPLEX16FrequencySeries **hptilde, COMPLEX16FrequencySeries **hctilde, REAL8 deltaF, REAL8 deltaT, REAL8 f0, REAL8 q, REAL8 tau, REAL8 f_min, REAL8 f_max, REAL8 hrss, REAL8 polar_angle, REAL8 polar_ecc, LALSimBurstExtraParam *extraParams, BurstApproximant approximant, LALSimBurstWaveformCache *cache)
 Chooses between different approximants when requesting a waveform to be generated Returns the waveform in the frequency domain. More...
 
LALSimBurstWaveformCacheXLALCreateSimBurstWaveformCache (void)
 Construct and initialize a waveform cache. More...
 
void XLALDestroySimBurstWaveformCache (LALSimBurstWaveformCache *cache)
 Destroy a waveform cache. More...
 
LALSimBurstExtraParamXLALSimBurstCreateExtraParam (const char *name, double value)
 Function that creates the head node of the test GR parameters linked list. More...
 
int XLALSimBurstAddExtraParam (LALSimBurstExtraParam **parameter, const char *name, double value)
 Function that adds a parameter to the test GR parameters linked list. More...
 
int XLALSimBurstSetExtraParam (LALSimBurstExtraParam *parameter, const char *name, const double value)
 Function that sets the value of the desired parameter in the extra burst parameters linked list to 'value'. More...
 
double XLALSimBurstGetExtraParam (const LALSimBurstExtraParam *parameter, const char *name)
 Function that returns the value of the desired parameters in the extra burst parameters linked list. More...
 
int XLALSimBurstExtraParamExists (const LALSimBurstExtraParam *parameter, const char *name)
 Function that checks whether the requested parameter exists within the burst extra parameters linked list. More...
 
int XLALSimBurstPrintExtraParam (FILE *fp, LALSimBurstExtraParam *parameter)
 Function that prints the whole test burst extra parameters linked list. More...
 
void XLALSimBurstDestroyExtraParam (LALSimBurstExtraParam *parameter)
 Function that destroys the whole burst extra params linked list. More...
 

Go to the source code of this file.

Macros

#define LAL_PI_1_2   1.7724538509055160272981674833411451 /* sqrt of PI */
 
#define LAL_PI_1_4   1.3313353638003897127975349179502808 /* PI^1/4 */
 
#define LAL_4RT2   1.1892071150027210667174999705604759 /* 2^(1/4) */
 
#define FRTH_2_Pi   0.8932438417380023314010427521746490 /* (2/Pi)^(1/4)*/
 
#define FRTH_2_times_PI   1.5832334870861595385799030344545584 /* (2*Pi)^(1/4)*/
 
#define LAL_SQRT_PI   1.7724538509055160272981674833411451 /* sqrt of PI */
 

Enumerations

enum  CacheVariableDiffersBitmask { NO_DIFFERENCE = 0 , INTRINSIC = 1 , HRSS = 2 }
 Bitmask enumerating which parameters have changed, to determine if the requested waveform can be transformed from a cached waveform or if it must be generated from scratch. More...
 

Macro Definition Documentation

◆ LAL_PI_1_2

#define LAL_PI_1_2   1.7724538509055160272981674833411451 /* sqrt of PI */

Definition at line 43 of file LALInferenceBurstRoutines.c.

◆ LAL_PI_1_4

#define LAL_PI_1_4   1.3313353638003897127975349179502808 /* PI^1/4 */

Definition at line 44 of file LALInferenceBurstRoutines.c.

◆ LAL_4RT2

#define LAL_4RT2   1.1892071150027210667174999705604759 /* 2^(1/4) */

Definition at line 45 of file LALInferenceBurstRoutines.c.

◆ FRTH_2_Pi

#define FRTH_2_Pi   0.8932438417380023314010427521746490 /* (2/Pi)^(1/4)*/

Definition at line 46 of file LALInferenceBurstRoutines.c.

◆ FRTH_2_times_PI

#define FRTH_2_times_PI   1.5832334870861595385799030344545584 /* (2*Pi)^(1/4)*/

Definition at line 47 of file LALInferenceBurstRoutines.c.

◆ LAL_SQRT_PI

#define LAL_SQRT_PI   1.7724538509055160272981674833411451 /* sqrt of PI */

Definition at line 48 of file LALInferenceBurstRoutines.c.

Enumeration Type Documentation

◆ CacheVariableDiffersBitmask

Bitmask enumerating which parameters have changed, to determine if the requested waveform can be transformed from a cached waveform or if it must be generated from scratch.

Enumerator
NO_DIFFERENCE 
INTRINSIC 
HRSS 

Definition at line 995 of file LALInferenceBurstRoutines.c.

Function Documentation

◆ semi_major_minor_from_e()

static void semi_major_minor_from_e ( double  e,
double *  a,
double *  b 
)
static

Definition at line 57 of file LALInferenceBurstRoutines.c.

◆ XLALGetBurstApproximantFromString()

int XLALGetBurstApproximantFromString ( const CHAR inString)

XLAL function to determine burst approximant from a string.

The string need not match exactly, only contain a member of the BurstApproximant enum.

Definition at line 65 of file LALInferenceBurstRoutines.c.

◆ XLALCheckBurstApproximantFromString()

int XLALCheckBurstApproximantFromString ( const CHAR inString)

Definition at line 101 of file LALInferenceBurstRoutines.c.

◆ XLALSimBurstImplementedTDApproximants()

int XLALSimBurstImplementedTDApproximants ( BurstApproximant  approximant)
Parameters
approximantBurst approximant (see enum in LALSimBurst.h)

Definition at line 123 of file LALInferenceBurstRoutines.c.

◆ XLALSimBurstImplementedFDApproximants()

int XLALSimBurstImplementedFDApproximants ( BurstApproximant  approximant)

Checks whether the given approximant is implemented in lalsimulation's XLALSimInspiralChooseFDWaveform().

returns 1 if the approximant is implemented, 0 otherwise.

Parameters
approximantBurst approximant (see enum in LALSimBurst.h)

Definition at line 144 of file LALInferenceBurstRoutines.c.

◆ XLALSimBurstChooseFDWaveform()

int XLALSimBurstChooseFDWaveform ( COMPLEX16FrequencySeries **  hptilde,
COMPLEX16FrequencySeries **  hctilde,
REAL8  deltaF,
REAL8  deltaT,
REAL8  f0,
REAL8  q,
REAL8  tau,
REAL8  f_min,
REAL8  f_max,
REAL8  hrss,
REAL8  polar_angle,
REAL8  polar_ecc,
LALSimBurstExtraParam extraParams,
BurstApproximant  approximant 
)
Parameters
hptildeFD plus polarization
hctildeFD cross polarization
deltaFsampling interval (Hz)
deltaTtime step corresponding to consec
f0central frequency (Hz)
qQ (==sqrt(2) \(\pi\) f0 tau ) [dless]
tauDuration [s]
f_minstarting GW frequency (Hz)
f_maxending GW frequency (Hz) (0 for Nyquist)
hrsshrss [strain]
polar_anglePolar_ellipse_angle as defined in the burst table. Together with polar_ellipse_eccentricity below will fix the ratio of + vs x amplitude.
polar_eccSee above
extraParamsLinked list of extra burst parameters. Pass in NULL (or None in python) to neglect these
approximantBurst approximant

Definition at line 168 of file LALInferenceBurstRoutines.c.

◆ XLALSimBurstChooseTDWaveform()

int XLALSimBurstChooseTDWaveform ( REAL8TimeSeries **  hplus,
REAL8TimeSeries **  hcross,
REAL8  deltaT,
REAL8  f0,
REAL8  q,
REAL8  tau,
REAL8  f_min,
REAL8  f_max,
REAL8  hrss,
REAL8  polar_angle,
REAL8  polar_ecc,
LALSimBurstExtraParam extraParams,
BurstApproximant  approximant 
)
Parameters
hplus+-polarization waveform
hcrossx-polarization waveform
deltaTtime step corresponding to consec
f0central frequency (Hz)
qQ (==sqrt(2) \(\pi\) f0 tau ) [dless]
tauDuration [s]
f_minstarting GW frequency (Hz)
f_maxending GW frequency (Hz) (0 for Nyquist)
hrsshrss [strain]
polar_anglePolar_ellipse_angle as defined in the burst table. Together with polar_ellipse_eccentricity below will fix the ratio of + vs x amplitude.
polar_eccSee above
extraParamsLinked list of non-GR parameters. Pass in NULL (or None in python) to neglect these
approximantBurst approximant

Definition at line 245 of file LALInferenceBurstRoutines.c.

◆ XLALGetStringFromBurstApproximant()

char * XLALGetStringFromBurstApproximant ( BurstApproximant  bapproximant)

XLAL function to determine string from approximant enum.

This function needs to be updated when new approximants are added.

Definition at line 315 of file LALInferenceBurstRoutines.c.

◆ XLALInferenceBurstSineGaussian()

int XLALInferenceBurstSineGaussian ( REAL8TimeSeries **  hplus,
REAL8TimeSeries **  hcross,
REAL8  Q,
REAL8  centre_frequency,
REAL8  hrss,
REAL8  eccentricity,
REAL8  phase,
REAL8  delta_t 
)

Input:

Enumeration to specify time or frequency domain.

Q: the "Q" of the waveform. The Gaussian envelope is \(exp(-1/2 t^{2} / \sigma_{t}^{2})\) where \(\sigma_{t} = Q / (2 \pi f)\). High Q --> long duration.

centre_frequency: the frequency of the sinusoidal oscillations that get multiplied by the Gaussian envelope.

hrss: the root-sum-squares strain of the waveform (summed over both polarizations). See K. Riles, LIGO-T040055-00.pdf.

eccentricity: 0 --> circularly polarized, 1 --> linearly polarized.

polarization: the angle from the + axis to the major axis of the waveform ellipsoid. with the eccentricity set to 1 (output is linearly polarized): 0 --> output contains + polarization only; pi/2 --> output contains x polarization only. with the eccentricity set to 0 (output is circularly polarized), the polarization parameter is irrelevant.

Output:

h+ and hx time series containing a cosine-Gaussian in the + polarization and a sine-Gaussian in the x polarization. The Gaussian envelope peaks in both at t = 0 as defined by epoch and deltaT. Note that a Tukey window with tapers covering 50% of the time series is applied to make the waveform go to 0 smoothly at the start and end.

Definition at line 381 of file LALInferenceBurstRoutines.c.

◆ XLALInferenceBurstSineGaussianF()

int XLALInferenceBurstSineGaussianF ( COMPLEX16FrequencySeries **  hplus,
COMPLEX16FrequencySeries **  hcross,
REAL8  Q,
REAL8  centre_frequency,
REAL8  hrss,
REAL8  eccentricity,
REAL8  phase,
REAL8  deltaF,
REAL8  deltaT 
)

Definition at line 454 of file LALInferenceBurstRoutines.c.

◆ XLALInferenceBurstSineGaussianFFast()

int XLALInferenceBurstSineGaussianFFast ( COMPLEX16FrequencySeries **  hplus,
COMPLEX16FrequencySeries **  hcross,
REAL8  Q,
REAL8  centre_frequency,
REAL8  hrss,
REAL8  eccentricity,
REAL8  phase,
REAL8  deltaF,
REAL8  deltaT 
)

Definition at line 558 of file LALInferenceBurstRoutines.c.

◆ XLALInferenceBurstGaussian()

int XLALInferenceBurstGaussian ( REAL8TimeSeries **  hplus,
REAL8TimeSeries **  hcross,
REAL8  duration,
REAL8  hrss,
REAL8  eccentricity,
REAL8  polarization,
REAL8  delta_t 
)

Definition at line 663 of file LALInferenceBurstRoutines.c.

◆ XLALInferenceBurstGaussianF()

int XLALInferenceBurstGaussianF ( COMPLEX16FrequencySeries **  hplus,
COMPLEX16FrequencySeries **  hcross,
REAL8  duration,
REAL8  hrss,
REAL8  phase,
REAL8  deltaF,
REAL8  deltaT 
)

Definition at line 726 of file LALInferenceBurstRoutines.c.

◆ XLALInferenceBurstDampedSinusoid()

int XLALInferenceBurstDampedSinusoid ( REAL8TimeSeries **  hplus,
REAL8TimeSeries **  hcross,
REAL8  Q,
REAL8  centre_frequency,
REAL8  hrss,
REAL8  eccentricity,
REAL8  phase,
REAL8  delta_t 
)

Definition at line 803 of file LALInferenceBurstRoutines.c.

◆ XLALInferenceBurstDampedSinusoidF()

int XLALInferenceBurstDampedSinusoidF ( COMPLEX16FrequencySeries **  hplus,
COMPLEX16FrequencySeries **  hcross,
REAL8  Q,
REAL8  centre_frequency,
REAL8  hrss,
REAL8  eccentricity,
REAL8  phase,
REAL8  deltaF,
REAL8  deltaT 
)

Definition at line 871 of file LALInferenceBurstRoutines.c.

◆ CacheArgsDifferenceBitmask()

static CacheVariableDiffersBitmask CacheArgsDifferenceBitmask ( LALSimBurstWaveformCache cache,
REAL8  deltaT,
REAL8  deltaF,
REAL8  f0,
REAL8  q,
REAL8  tau,
REAL8  f_min,
REAL8  f_max,
REAL8  hrss,
REAL8  polar_angle,
REAL8  polar_ecc,
LALSimBurstExtraParam extraParams,
BurstApproximant  approximant 
)
static

Function to compare the requested arguments to those stored in the cache, returns a bitmask which determines if a cached waveform can be recycled.

Parameters
cachewaveform cache structure; use NULL for no caching
deltaTtime steps
deltaFfrequency steps
f0central frequency (Hz)
qQ (==sqrt(2) \(\pi\) f0 tau ) [dless]
tauDuration [s]
f_minstarting GW frequency (Hz)
f_maxending GW frequency (Hz) (0 for Nyquist)
hrsshrss [strain]
polar_anglePolar_ellipse_angle as defined in the burst table. Together with polar_ellipse_eccentricity below will fix the ratio of + vs x amplitude
polar_eccSee above
extraParamsLinked list of non-GR parameters. Pass in NULL (or None in python) to neglect these
approximantBurst approximant

Definition at line 1291 of file LALInferenceBurstRoutines.c.

◆ StoreTDHCache()

static int StoreTDHCache ( LALSimBurstWaveformCache cache,
REAL8TimeSeries hplus,
REAL8TimeSeries hcross,
REAL8  deltaT,
REAL8  f0,
REAL8  q,
REAL8  tau,
REAL8  f_min,
REAL8  f_max,
REAL8  hrss,
REAL8  polar_angle,
REAL8  polar_ecc,
LALSimBurstExtraParam extraParams,
BurstApproximant  approximant 
)
static

Store the output TD hplus and hcross in the cache.

Parameters
cachethe cache
hplusthe plus polarisation time series
hcrossthe cross polarisation time series
deltaTtime step corresponding to consec
f0central frequency (Hz)
qQ (==sqrt(2) \(\pi\) f0 tau ) [dless]
tauDuration [s]
f_minstarting GW frequency (Hz)
f_maxending GW frequency (Hz) (0 for Nyquist)
hrsshrss [strain]
polar_anglePolar_ellipse_angle as defined in the burst table. Together with polar_ellipse_eccentricity below will fix the ratio of + vs x amplitude.
polar_eccSee above
extraParamsLinked list of non-GR parameters. Pass in NULL (or None in python) to neglect these
approximantBurst approximant

Definition at line 1329 of file LALInferenceBurstRoutines.c.

◆ StoreFDHCache()

static int StoreFDHCache ( LALSimBurstWaveformCache cache,
COMPLEX16FrequencySeries hptilde,
COMPLEX16FrequencySeries hctilde,
REAL8  deltaF,
REAL8  deltaT,
REAL8  f0,
REAL8  q,
REAL8  tau,
REAL8  f_min,
REAL8  f_max,
REAL8  hrss,
REAL8  polar_angle,
REAL8  polar_ecc,
LALSimBurstExtraParam extraParams,
BurstApproximant  approximant 
)
static

Store the output FD hptilde and hctilde in cache.

Parameters
cachethe cache
hptildethe plus polarisation frequency series
hctildethe cross polarisation frequency series
deltaFsampling interval (Hz)
deltaTtime step corresponding to consec
f0central frequency (Hz)
qQ (==sqrt(2) \(\pi\) f0 tau ) [dless]
tauDuration [s]
f_minstarting GW frequency (Hz)
f_maxending GW frequency (Hz) (0 for Nyquist)
hrsshrss [strain]
polar_anglePolar_ellipse_angle as defined in the burst table. Together with polar_ellipse_eccentricity below will fix the ratio of + vs x aplitude.
polar_eccSee above
extraParamsLinked list of extra burst parameters. Pass in NULL (or None in python) to neglect these
approximantBurst approximant

Definition at line 1395 of file LALInferenceBurstRoutines.c.

◆ XLALSimBurstChooseTDWaveformFromCache()

int XLALSimBurstChooseTDWaveformFromCache ( REAL8TimeSeries **  hplus,
REAL8TimeSeries **  hcross,
REAL8  deltaT,
REAL8  f0,
REAL8  q,
REAL8  tau,
REAL8  f_min,
REAL8  f_max,
REAL8  hrss,
REAL8  polar_angle,
REAL8  polar_ecc,
LALSimBurstExtraParam extraParams,
BurstApproximant  approximant,
LALSimBurstWaveformCache cache 
)

Chooses between different approximants when requesting a waveform to be generated Returns the waveform in the time domain.

The parameters passed must be in SI units.

This version allows caching of waveforms. The most recently generated waveform and its parameters are stored. If the next call requests a waveform that can be obtained by a simple transformation, then it is done. This bypasses the waveform generation and speeds up the code.

Parameters
hplus+-polarization waveform
hcrossx-polarization waveform
deltaTsampling interval (s)
f0central frequency [Hz]
qquality
tauduration
f_minstarting GW frequency (Hz)
f_maxmax GW frequency (Hz)
hrsshrss
polar_angleTogether with polar_ecc, controls ratio plus/cross polarization (rad)
polar_ecc(tidal deformability of mass 1) / m1^5 (dimensionless)
extraParamsLinked list of extra Parameters. Pass in NULL (or None in python) to neglect
approximantBurst approximant to use for waveform production
cachewaveform cache structure; use NULL for no caching

Definition at line 1056 of file LALInferenceBurstRoutines.c.

◆ XLALSimBurstChooseFDWaveformFromCache()

int XLALSimBurstChooseFDWaveformFromCache ( COMPLEX16FrequencySeries **  hptilde,
COMPLEX16FrequencySeries **  hctilde,
REAL8  deltaF,
REAL8  deltaT,
REAL8  f0,
REAL8  q,
REAL8  tau,
REAL8  f_min,
REAL8  f_max,
REAL8  hrss,
REAL8  polar_angle,
REAL8  polar_ecc,
LALSimBurstExtraParam extraParams,
BurstApproximant  approximant,
LALSimBurstWaveformCache cache 
)

Chooses between different approximants when requesting a waveform to be generated Returns the waveform in the frequency domain.

The parameters passed must be in SI units.

This version allows caching of waveforms. The most recently generated waveform and its parameters are stored. If the next call requests a waveform that can be obtained by a simple transformation, then it is done. This bypasses the waveform generation and speeds up the code.

Parameters
hptilde+-polarization waveform
hctildex-polarization waveform
deltaFsampling interval (Hz)
deltaTtime step corresponding to consec
f0central frequency (Hz)
qQ (==sqrt(2) \(\pi\) f0 tau ) [dless]
tauDuration [s]
f_minstarting GW frequency (Hz)
f_maxending GW frequency (Hz) (0 for Nyquist)
hrsshrss [strain]
polar_anglePolar_ellipse_angle as defined in the burst table. Together with polar_ellipse_eccentricity below will fix the ratio of + vs x amplitude.
polar_eccSee above
extraParamsLinked list of extra burst parameters. Pass in NULL (or None in python) to neglect these
approximantBurst approximant
cachewaveform cache structure; use NULL for no caching

Definition at line 1161 of file LALInferenceBurstRoutines.c.

◆ XLALCreateSimBurstWaveformCache()

LALSimBurstWaveformCache * XLALCreateSimBurstWaveformCache ( void  )

Construct and initialize a waveform cache.

Caches are used to avoid re-computation of waveforms that differ only by simple scaling relations in extrinsic parameters.

Definition at line 1264 of file LALInferenceBurstRoutines.c.

◆ XLALDestroySimBurstWaveformCache()

void XLALDestroySimBurstWaveformCache ( LALSimBurstWaveformCache cache)

Destroy a waveform cache.

Definition at line 1275 of file LALInferenceBurstRoutines.c.

◆ XLALSimBurstCreateExtraParam()

LALSimBurstExtraParam * XLALSimBurstCreateExtraParam ( const char name,
double  value 
)

Function that creates the head node of the test GR parameters linked list.

Function that creates the head node of the extra burst parameters linked list.

It is initialized with a single parameter with given name and value

Parameters
nameName of first parameter in new linked list
valueValue of first parameter in new linked list

Definition at line 1489 of file LALInferenceBurstRoutines.c.

◆ XLALSimBurstAddExtraParam()

int XLALSimBurstAddExtraParam ( LALSimBurstExtraParam **  parameter,
const char name,
double  value 
)

Function that adds a parameter to the test GR parameters linked list.

Function that adds a parameter to the extra burst parameters linked list.

If the parameter already exists, it throws an error.

Parameters
parameterPointer to the head node of the linked list of parameters
nameParameter name
valueParameter value

Definition at line 1509 of file LALInferenceBurstRoutines.c.

◆ XLALSimBurstSetExtraParam()

int XLALSimBurstSetExtraParam ( LALSimBurstExtraParam parameter,
const char name,
const double  value 
)

Function that sets the value of the desired parameter in the extra burst parameters linked list to 'value'.

Function that sets the value of the desired parameter in the burst extra parameters linked list to 'value'.

Throws an error if the parameter is not found

Parameters
parameterLinked list to be modified
nameName of parameter to be modified
valueNew value for parameter

Definition at line 1548 of file LALInferenceBurstRoutines.c.

◆ XLALSimBurstGetExtraParam()

double XLALSimBurstGetExtraParam ( const LALSimBurstExtraParam parameter,
const char name 
)

Function that returns the value of the desired parameters in the extra burst parameters linked list.

Function that returns the value of the desired parameters in the burst extra parameters linked list.

Aborts if the parameter is not found

Parameters
parameterLinked list to retrieve from
nameName of parameter to be retrieved

Definition at line 1575 of file LALInferenceBurstRoutines.c.

◆ XLALSimBurstExtraParamExists()

int XLALSimBurstExtraParamExists ( const LALSimBurstExtraParam parameter,
const char name 
)

Function that checks whether the requested parameter exists within the burst extra parameters linked list.

Returns true (1) or false (0) accordingly

Parameters
parameterLinked list to check
nameParameter name to check for

Definition at line 1601 of file LALInferenceBurstRoutines.c.

◆ XLALSimBurstPrintExtraParam()

int XLALSimBurstPrintExtraParam ( FILE *  fp,
LALSimBurstExtraParam parameter 
)

Function that prints the whole test burst extra parameters linked list.

Function that prints the whole burst extra parameters linked list.

Parameters
fpFILE pointer to write to
parameterLinked list to print

Definition at line 1612 of file LALInferenceBurstRoutines.c.

◆ XLALSimBurstDestroyExtraParam()

void XLALSimBurstDestroyExtraParam ( LALSimBurstExtraParam parameter)

Function that destroys the whole burst extra params linked list.

Function that destroys the whole extra burst parameters linked list.

Parameters
parameterLinked list to destroy

Definition at line 1634 of file LALInferenceBurstRoutines.c.