LALSimulation  5.4.0.1-fe68b98
fix_reference_frequency_macro.h
Go to the documentation of this file.
1 /*This defines a macro to fix the reference frequency, depending on the waveform model */
2 
3 /*
4  * certain approximants adopt the convention that f_ref=0 refers to the start
5  * of the waveform while other approximants adopt the convention that f_ref=0
6  * refers to the end of the waveform. in the former case, this routine will
7  * return the explicit value of f_ref, which will be f_min.
8  */
9 
10 #define FIX_REFERENCE_FREQUENCY(f_ref, f_min, approximant) \
11  if (f_ref == 0) \
12  switch (approximant) { \
13  case SpinTaylorT1: \
14  case SpinTaylorT5: \
15  case SpinTaylorT3: \
16  case SpinTaylorT4: \
17  case SpinTaylorT5Fourier: \
18  case SpinTaylorT4Fourier: \
19  case SpinTaylorF2: \
20  case IMRPhenomP: \
21  case IMRPhenomPv2: \
22  case IMRPhenomPv3: \
23  case IMRPhenomPv3HM: \
24  case IMRPhenomPv2_NRTidal: \
25  case IMRPhenomPv2_NRTidalv2: \
26  case IMRPhenomXP: \
27  case IMRPhenomXP_NRTidalv2: \
28  case IMRPhenomXPHM: \
29  case NRSur4d2s: \
30  case IMRPhenomT: \
31  case IMRPhenomTHM: \
32  case IMRPhenomTP: \
33  case IMRPhenomTPHM: \
34  case IMRPhenomXO4a: \
35  case TEOBResumS: \
36  f_ref = f_min; \
37  break; \
38  default: \
39  break; \
40  }
41