Loading [MathJax]/extensions/TeX/AMSsymbols.js
LALApps 10.1.0.1-5e288d3
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
inspinj.c File Reference

Prototypes

ProcessParamsTablenext_process_param (const char *name, const char *type, const char *fmt,...)
 
void read_mass_data (char *filename)
 
void read_time_data (char *filename)
 
void read_nr_data (char *filename)
 
void read_source_data (char *filename)
 
void sourceComplete (void)
 
void drawFromSource (REAL8 *rightAscension, REAL8 *declination, REAL8 *distance, CHAR name[LIGOMETA_SOURCE_MAX])
 
void read_IPN_grid_from_file (char *fname)
 
void drawFromIPNsim (REAL8 *rightAscension, REAL8 *declination)
 
void drawLocationFromExttrig (SimInspiralTable *table)
 
void drawMassFromSource (SimInspiralTable *table)
 
void drawMassSpinFromNR (SimInspiralTable *table)
 
void drawMassSpinFromNRNinja2 (SimInspiralTable *table)
 
void adjust_snr (SimInspiralTable *inj, REAL8 target_snr, const char *ifos)
 
void adjust_snr_real8 (SimInspiralTable *inj, REAL8 target_snr, const char *ifos)
 
REAL8 network_snr (const char *ifos, SimInspiralTable *inj)
 
REAL8 snr_in_ifo (const char *ifo, SimInspiralTable *inj)
 
REAL8 network_snr_real8 (const char *ifos, SimInspiralTable *inj)
 
REAL8 snr_in_ifo_real8 (const char *ifo, SimInspiralTable *inj)
 
REAL8 snr_in_psd_real8 (const char *ifo, REAL8FrequencySeries *psd, REAL8 start_freq, SimInspiralTable *inj)
 
REAL8 network_snr_with_psds_real8 (int num_ifos, const char **ifo_list, REAL8FrequencySeries **psds, REAL8 *start_freqs, SimInspiralTable *inj)
 
void adjust_snr_with_psds_real8 (SimInspiralTable *inj, REAL8 target_snr, int num_ifos, const char **ifo_list, REAL8FrequencySeries **psds, REAL8 *start_freqs)
 
REAL8 probability_redshift (REAL8 rshift)
 
REAL8 luminosity_distance (REAL8 rshift)
 
REAL8 mean_time_step_sfr (REAL8 zmax, REAL8 rate_local)
 
REAL8 drawRedshift (REAL8 zmin, REAL8 zmax, REAL8 pzmax)
 
REAL8 redshift_mass (REAL8 mass, REAL8 z)
 
static void scale_lalsim_distance (SimInspiralTable *inj, char **IFOnames, REAL8FrequencySeries **psds, REAL8 *start_freqs, LoudnessDistribution dDistr)
 
static REAL8 draw_uniform_snr (REAL8 snrmin, REAL8 snrmax)
 
static REAL8 draw_log10_snr (REAL8 snrmin, REAL8 snrmax)
 
static REAL8 draw_volume_snr (REAL8 snrmin, REAL8 snrmax)
 
static void print_usage (char *program)
 
int main (int argc, char *argv[])
 

Detailed Description

Name

lalapps_inspinj — produces inspiral injection data files.

Synopsis

lalapps_inspinj

[–help] –source-file sfile –mass-file mfile

[–gps-start-time tstart] [–gps-end-time tend]

[–time-step tstep] [–time-interval tinterval]

[–seed seed] [–waveform wave] [–lal-eff-dist] [–usertag tag]

[–tama-output] [–write-eff-dist]

[–ilwd]

Description

lalapps_inspinj generates a number of inspiral parameters suitable for using in a Monte Carlo injection to test the efficiency of a inspiral search. The various parameters (detailed below) are randomly chosen and are appropriate for a particular population of binary neutron stars whose spatial distribution includes the Milky Way and a number of extragalactic objects that are input in a datafile. The possible mass pairs for the binary neutron star com- panions are also specified in a (different) datafile.

The output of this program is a list of the injected events, starting at the specified start time and ending at the specified end time. One injection with random inspiral parameters will be made every specified time step, and will be randomly placed within the specified time interval. The output is written to a file name in the standard inspiral pipeline format:

HL-INJECTIONS_USERTAG_SEED-GPSSTART-DURATION.xml

where USERTAG is tag as specfied on the command line, SEED is the value of the random number seed chosen and GPSSTART and DURATION describes the GPS time interval that the file covers. The file is in the standard LIGO lightweight XML format containing a sim_inspiral table that describes the injections. In addition, an ASCII log file called injlog.txt is also written. If a –user-tag is not specified on the command line, the _USERTAG part of the filename will be omitted.

Options
  • –help: Print a help message.

  • –source-file sfile: Optional. Data file containing spatial distribution of extragalactic objects. Default is the file inspsrcs.dat provided by LALApps. If that file is empty, all signals are in the Milky Way.

  • –mass-file mfile: Optional. Data file containing mass pairs for the binary neutron star companions. Default is the file BNSMasses.dat provided by LALApps.

  • –gps-start-time tstart: Optional. Start time of the injection data to be created. Defaults to the start of S2, Feb 14 2003 16:00:00 UTC (GPS time 729273613)

  • –gps-end-time tend: Optional. End time of the injection data to be created. Defaults to the end of S2, Apr 14 2003 15:00:00 UTC (GPS time 734367613).

  • –time-step tstep: Optional. Sets the time step interval between injections. The injections will occur with an average spacing of tstep seconds. Defaults to \(2630/\pi\).

  • –time-interval tinterval: Optional. Sets the time interval during which an injection can occur. Injections are uniformly distributed over the interval. Setting tstep to \(6370\) and tinterval to 600 guarantees there will be one injection into each playground segment and they will be randomly distributed within the playground times - taken the fact that your gps start time coincides with start of a playground segment.

  • –seed seed: Optional. Seed the random number generator with the integer seed. Defaults to \(1\).

  • –waveform wave: Optional. The string wave will be written into the waveform column of the sim_inspiral table output. This is used by the inspiral code to determine which type of waveforms it should inject into the data. Defaults is GeneratePPNtwoPN.

  • –lal-eff-dist: Optional. If this option is specified, the effective distance will be calculated using routines from LAL. Otherwise, the default behaviour is to use an independent method contained in inspinj.c. There is good agreement between these two methods, see below for more details.

  • –user-tag string: Optional. Set the user tag for this job to be string. May also be specified on the command line as -userTag for LIGO database compatibility.

  • –tama-output: Optional. If this option is given, lalapps_inspinj also produces a text output file:

    HLT-INJECTIONS_USERTAG_SEED-GPSSTART-DURATION.txt

    which contains the following fields:

    • geocentric end time
    • Hanford end time
    • Livingston end time
    • TAMA end time
    • total mass, \(M_{\mathrm{TOT}}\)
    • mass ratio, \(\eta\)
    • distance to source (in kpc)
    • longitude
    • latitude
    • inclination
    • coalescence phase
    • polarization
    • TAMA polarization
    • end time GMST

    In the above, all times are recorded as double precision real numbers and all angles are in radians. The TAMA polarization is calculated using

    \begin{equation} \tan( \psi_{T} ) = \frac{ x \cdot T_{z} }{ y \cdot T_{z} } \, . \end{equation}

    Here x and y are the x,y axes of the radiation frame expressed in earth fixed coordinates Eq. \eqref{xrad}, Eq. \eqref{yrad}. \(T_{z}\) is a unit vector in earth fixed coordinates which is orthogonal to the two arms of the TAMA detector Eq. \eqref{tarm}. It is given by

    \begin{equation} T_{z} = ( -0.6180, +0.5272, +0.5832 ) \end{equation}

  • –write-eff-dist: Optional. If this option is given, three extra columns are added to the TAMA output file described above. They are

    • Hanford effective distance (kpc)
    • Livingston effective distance (kpc)
    • TAMA effective distance (kpc)

    These entries are added to the list immediately after TAMA end time and before total mass.

  • –ilwd: Optional. If this option is given, lalapps_inspinj also produces two ILWD-format files, injepochs.ilwd and injparams.ilwd, that contain, respectively, the GPS times suitable for inspiral injections, and the intrinsic inspiral signal parameters to be used for those injections.

    The file injepochs.ilwd contains a sequence of integer pairs representing the injection GPS time in seconds and residual nano-seconds. The file injparams.ilwd contains the intrinsic binary parameters for each injection, which is a sequence of eight real numbers representing (in order) (1) the total mass of the binary system (in solar masses), (2) the dimensionless reduced mass — reduced mass per unit total mass — in the range from 0 (extreme mass ratio) to 0.25 (equal masses), (3) the distance to the system in meters, (4) the inclination of the binary system orbit to the plane of the sky in radians, (5) the coalescence phase in radians, (6) the longitude to the direction of the source in radians, (7) the latitude to the direction of the source in radians, (8) and the polar- ization angle of the source in radians.

Example
lalapps_inspinj --seed 45\
--source-file inspsrcs.dat --mass-file BNSMasses.dat
seed

Algorithm

The algorithm for computing the effective distance will be described in some detail below. The method is to compute both the strain due to the inspiral and the detector response in the earth fixed frame. This frame is such that the z-axis points from the earth's centre to the North Pole, the x-axis points from the centre to the intersection of the equator and the prime meridian and the y-axis is chosen to complete the orthonormal basis. The coordinates of the injection are specified by longitude (or right ascension) \(\alpha\) and latitude (or declination) \(\delta\). The polarization is appropriate for transferring from the radiation to earth fixed frame. These are then converted to the earth fixed frame by

\begin{eqnarray} \theta &=& \frac{\pi}{2} - \delta \\ \phi &=& \alpha - \textrm{gmst} \, . \end{eqnarray}

Here, gmst is the Greenwich Mean sidereal time of the injection. The axes of the radiation frame (x,y,z) can be expressed in terms of the earth fixed coordinates as:

\begin{eqnarray} x(1) &=& +( \sin( \phi ) \cos( \psi ) - \sin( \psi ) \cos( \phi ) \cos( \theta ) ) \nonumber \\ x(2) &=& -( \cos( \phi ) \cos( \psi ) + \sin( \psi ) \sin( \phi ) \cos( \theta ) ) \nonumber \\ x(3) &=& \sin( \psi ) \sin( \theta ) \label{xrad}\\ y(1) &=& -( \sin( \phi ) \sin( \psi ) + \cos( \psi ) \cos( \phi ) \cos( \theta ) ) \nonumber\\ y(2) &=& +( \cos( \phi ) \sin( \psi ) - \cos( \psi ) \sin( \phi ) \cos( \theta ) ) \nonumber \\ y(3) &=& \cos( \psi ) \sin( \theta ) \label{yrad} \end{eqnarray}

Making use of these expressions, we can express the gravitational wave strain in earth fixed coordinates as

\begin{equation}\label{hij} h_{ij} = ( h^{+}(t) e^{+}_{ij} ) + (h^{\times}(t) e^{\times}_{ij}) \end{equation}

where

\begin{equation} e^{+}_{ij} = x_{i} * x_{j} - y_{i} * y_{j} \qquad \mathrm{and} \qquad e^{\times}_{ij} = x_{i} * y_{j} + y_{i} * x_{j}. \end{equation}

For the case of a binary inspiral signal, the two polarizations \(h^{+}\) and \(h^{\times}\) of the gravitational wave are given by

\begin{eqnarray} h^{+}(t) &=& \frac{A}{r} ( 1 + \cos^2 ( \iota ) ) * \cos( \Phi(t) ) \\ h^{\times}(t) &=& \frac{A}{r} * ( 2 \cos( \iota ) ) * \sin( \Phi(t) ) \end{eqnarray}

where \(A\) is a mass and frequency dependent amplitude factor, \(r\) is the physical distance at which the injection is located and \(\iota\) is the inclination angle.

Next, we can write the detector response function as

\begin{equation} d^{ij} = \left(\frac{1}{2} \right) \left( n_{x}^{i} n_{x}^{j} - n_{y}^{i} n_{y}^{j} \right) \, . \end{equation}

Here, \(n_{x}\) and \(n_{y}\) are unit vectors directed along the arms of the detector. Specifically, for the Hanford, Livingston, GEO, TAMA and Virgo detectors we use:

\begin{eqnarray} H_{x} &=& ( -0.2239, +0.7998, +0.5569 ) \nonumber \\ H_{y} &=& ( -0.9140, +0.0261, -0.4049 ) \\ L_{x} &=& ( -0.9546, -0.1416, -0.2622 ) \nonumber \\ L_{y} &=& ( +0.2977, -0.4879, -0.8205 ) \\ G_{x} &=& ( -0.6261, -0.5522, +0.5506 ) \nonumber \\ G_{y} &=& ( -0.4453, +0.8665, +0.2255 ) \\ T_{x} &=& ( +0.6490, +0.7608, +0.0000 ) \nonumber \\ T_{y} &=& ( -0.4437, +0.3785, -0.8123 ) \label{tarm} \\ V_{x} &=& ( -0.7005, +0.2085, +0.6826 ) \nonumber \\ V_{y} &=& ( -0.0538, -0.9691, +0.2408 ) \end{eqnarray}

The response of an interferometric detector with arm locations given by \(n_{x}\) and \(n_{y}\) to an inspiralling binary system described by Eq. \eqref{hij} is

\begin{eqnarray} h(t) &=& h^{+}(t) ( d^{ij} e^{+}_{ij} ) + h^{\times}(t) ( d^{ij} e^{\times}_{ij} ) \nonumber \\ &=& \left(\frac{A}{r}\right) \left[ ( 1 + \cos^2 ( \iota ) ) F_{+} \cos( \Phi(t)) + 2 \cos( \iota ) F_{\times} \sin( \Phi(t) ) \right] \, , \end{eqnarray}

where we have introduced

\begin{equation} F_{+} = d^{ij} e^{+}_{ij} \qquad \mathrm{and} \qquad F_{\times} = d^{ij} e^{\times}_{ij} \end{equation}

Finally, to calculate the effective distance, we note that the two contributions to \(h(t)\) are \(\pi/2\) radians out of phase, and hence orthogonal. Thus, we can compute the effective distance to be:

\begin{equation} D_{\mathrm{eff}} = r / \left( \frac{ (1 + \cos^2(\iota))^2 }{4} F_{+}^{2} + cos^{2}(\iota) F_{\times}^{2} \right) \end{equation}

Comparison of effective distance computed by inspinj.c and LAL routines

The algorithm to calculate effective distances described above is completely contained within inspinj.c. There is an independent method of computing effective distances can also be called by inspinj. It is contained in the LAL function LALPopulateSimInspiralSiteInfo(). This function populates the site end time and effective distance for all the interferomter sites. It makes use of LAL functionality in the tools and date packages. These same functions are used when generating the injection waveform which is added to the data stream (in lalapps_inspiral). As a check that these two calculations produce the same effective distance, lalapps_inspinj was run twice, once with the –lal-eff-dist option and once without. This figure shows the fractional difference in effective distance between the two methods for a set of injections. We see that the distances agree within 1\ occuring for the largest effective disances, i.e. close to the dead spot of the instrument. For injections which initial LIGO is sensitive to, the accuracy is few \(\times 10^{-4}\).

Environment
  • LALAPPS_DATA_PATH: Directory to look for the default mass file BNSMasses.dat and the default source file inspsrcs.dat.

Author
Jolien Creighton, Patrick Brady, Duncan Brown

Definition in file inspinj.c.

Go to the source code of this file.

Data Structures

struct  FakeGalaxy
 

Macros

#define CVS_REVISION   "$Revision$"
 
#define CVS_ID_STRING   "$Id$"
 
#define CVS_SOURCE   "$Source$"
 
#define CVS_DATE   "$Date$"
 
#define CVS_NAME_STRING   "$Name$"
 
#define PROGRAM_NAME   "inspinj"
 
#define ADD_PROCESS_PARAM(pptype, format, ppvalue)
 
#define AXIS_MAX   12
 

Variables

int vrbflg
 defined in lal/lib/std/LALError.c More...
 
lalinspiral_time_distribution tDistr
 
LoudnessDistribution dDistr
 
SkyLocationDistribution lDistr
 
MassDistribution mDistr
 
InclDistribution iDistr
 
SpinDistribution spinDistr = uniformSpinDist
 
SimInspiralTablesimTable
 
SimRingdownTablesimRingTable
 
charmassFileName = NULL
 
charnrFileName = NULL
 
charsourceFileName = NULL
 
charoutputFileName = NULL
 
charinjtimesFileName = NULL
 
charexttrigFileName = NULL
 
charIPNSkyPositionsFile = NULL
 
INT4 outCompress = 0
 
INT4 ninjaMass = 0
 
INT4 real8Ninja2 = 0
 
INT4 ninjaSNR = 0
 
INT4 haveLoudness = 0
 
REAL4 mwLuminosity = -1
 
REAL4 minD = -1
 
REAL4 maxD = -1
 
REAL4 minZ = -1
 
REAL4 maxZ = -1
 
REAL4 localRate = -1.0
 
REAL4 minSNR = -1
 
REAL4 maxSNR = -1
 
charifos = NULL
 
REAL4 minMass1 = -1
 
REAL4 maxMass1 = -1
 
REAL4 minMass2 = -1
 
REAL4 maxMass2 = -1
 
REAL4 minMtotal = -1
 
REAL4 maxMtotal = -1
 
REAL4 meanMass1 = -1.0
 
REAL4 meanMass2 = -1.0
 
REAL4 massStdev1 = -1.0
 
REAL4 massStdev2 = -1.0
 
REAL4 minMassRatio =-1.0
 
REAL4 maxMassRatio =-1.0
 
REAL4 inclStd =-1.0
 
REAL4 fixed_inc =-1.0
 
REAL4 max_inc =LAL_PI/2.0
 
int coaPhaseFixed = 0
 
REAL4 fixedCoaPhase = 0
 
REAL4 psi =-1.0
 
REAL4 longitude =181.0
 
REAL4 latitude =91.0
 
REAL4 epsAngle =1e-7
 
int spinInjections =-1
 
int spinAligned =-1
 
REAL4 minSpin1 =-1.0
 
REAL4 maxSpin1 =-1.0
 
REAL4 meanSpin1 =0.0
 
REAL4 Spin1Std =0.0
 
REAL4 minSpin2 =-1.0
 
REAL4 maxSpin2 =-1.0
 
REAL4 meanSpin2 =0.0
 
REAL4 Spin2Std =0.0
 
REAL4 minKappa1 =-1.0
 
REAL4 maxKappa1 =1.0
 
REAL4 minabsKappa1 =0.0
 
REAL4 maxabsKappa1 =1.0
 
REAL4 fixedMass1 =-1.0
 
REAL4 fixedMass2 =-1.0
 
INT4 pntMass1 =1
 
INT4 pntMass2 =1
 
REAL4 deltaMass1 =-1
 
REAL4 deltaMass2 =-1
 
INT4 bandPassInj = 0
 
LALSimInspiralApplyTaper taperInj = LAL_SIM_INSPIRAL_TAPER_NONE
 
AlignmentType alignInj = notAligned
 
REAL8 redshift
 
REAL8 single_IFO_SNR_threshold =0.0
 
char ** ifonames =NULL
 
int numifos =0
 
static LALStatus status
 
static RandomParamsrandParams =NULL
 
INT4 numExtTriggers = 0
 
ExtTriggerTableexttrigHead = NULL
 
int num_source
 
int numSkyPoints
 
int galaxynum
 
struct {
   char   name [LIGOMETA_SOURCE_MAX]
 
   REAL8   ra
 
   REAL8   dec
 
   REAL8   dist
 
   REAL8   lum
 
   REAL8   fudge
 
} * source_data
 
struct {
   char   name [LIGOMETA_SOURCE_MAX]
 
   REAL8   ra
 
   REAL8   dec
 
   REAL8   dist
 
   REAL8   lum
 
   REAL8   fudge
 
} * old_source_data
 
struct {
   char   name [LIGOMETA_SOURCE_MAX]
 
   REAL8   ra
 
   REAL8   dec
 
   REAL8   dist
 
   REAL8   lum
 
   REAL8   fudge
 
} * temparray
 
struct {
   char   name [LIGOMETA_SOURCE_MAX]
 
   REAL8   ra
 
   REAL8   dec
 
   REAL8   dist
 
   REAL8   lum
 
   REAL8   fudge
 
} * skyPoints
 
char MW_name [LIGOMETA_SOURCE_MAX] = "MW"
 
REAL8fracVec =NULL
 
REAL8ratioVec = NULL
 
REAL8 norm =0
 
int num_mass
 
struct {
   REAL8   mass1
 
   REAL8   mass2
 
} * mass_data
 
int n_times
 
LIGOTimeGPSinj_times
 
int srcComplete = 0
 
int makeCatalog = 0
 
REAL8 srcCompleteDist
 
int num_nr = 0
 
int i = 0
 
SimInspiralTable ** nrSimArray = NULL
 

Macro Definition Documentation

◆ CVS_REVISION

#define CVS_REVISION   "$Revision$"

Definition at line 391 of file inspinj.c.

◆ CVS_ID_STRING

#define CVS_ID_STRING   "$Id$"

Definition at line 392 of file inspinj.c.

◆ CVS_SOURCE

#define CVS_SOURCE   "$Source$"

Definition at line 393 of file inspinj.c.

◆ CVS_DATE

#define CVS_DATE   "$Date$"

Definition at line 394 of file inspinj.c.

◆ CVS_NAME_STRING

#define CVS_NAME_STRING   "$Name$"

Definition at line 395 of file inspinj.c.

◆ PROGRAM_NAME

#define PROGRAM_NAME   "inspinj"

Definition at line 396 of file inspinj.c.

◆ ADD_PROCESS_PARAM

#define ADD_PROCESS_PARAM (   pptype,
  format,
  ppvalue 
)
Value:
this_proc_param = this_proc_param->next = (ProcessParamsTable *) \
calloc( 1, sizeof(ProcessParamsTable) ); \
snprintf( this_proc_param->program, LIGOMETA_PROGRAM_MAX, "%s", \
snprintf( this_proc_param->param, LIGOMETA_PARAM_MAX, "--%s", \
long_options[option_index].name ); \
snprintf( this_proc_param->type, LIGOMETA_TYPE_MAX, "%s", pptype ); \
snprintf( this_proc_param->value, LIGOMETA_VALUE_MAX, format, ppvalue );
#define PROGRAM_NAME
Definition: inspinj.c:396

Definition at line 398 of file inspinj.c.

◆ AXIS_MAX

#define AXIS_MAX   12

Definition at line 414 of file inspinj.c.

Function Documentation

◆ next_process_param()

ProcessParamsTable * next_process_param ( const char name,
const char type,
const char fmt,
  ... 
)

Definition at line 924 of file inspinj.c.

◆ read_mass_data()

void read_mass_data ( char filename)

Definition at line 1125 of file inspinj.c.

◆ read_time_data()

void read_time_data ( char filename)

Definition at line 1168 of file inspinj.c.

◆ read_nr_data()

void read_nr_data ( char filename)

Definition at line 1225 of file inspinj.c.

◆ read_source_data()

void read_source_data ( char filename)

Definition at line 1274 of file inspinj.c.

◆ sourceComplete()

void sourceComplete ( void  )

Definition at line 1428 of file inspinj.c.

◆ drawFromSource()

void drawFromSource ( REAL8 rightAscension,
REAL8 declination,
REAL8 distance,
CHAR  name[LIGOMETA_SOURCE_MAX] 
)

Definition at line 1779 of file inspinj.c.

◆ read_IPN_grid_from_file()

void read_IPN_grid_from_file ( char fname)

Definition at line 1368 of file inspinj.c.

◆ drawFromIPNsim()

void drawFromIPNsim ( REAL8 rightAscension,
REAL8 declination 
)

Definition at line 1819 of file inspinj.c.

◆ drawLocationFromExttrig()

void drawLocationFromExttrig ( SimInspiralTable table)

Definition at line 1846 of file inspinj.c.

◆ drawMassFromSource()

void drawMassFromSource ( SimInspiralTable table)

Definition at line 1662 of file inspinj.c.

◆ drawMassSpinFromNR()

void drawMassSpinFromNR ( SimInspiralTable table)

Definition at line 1687 of file inspinj.c.

◆ drawMassSpinFromNRNinja2()

void drawMassSpinFromNRNinja2 ( SimInspiralTable table)

Definition at line 1699 of file inspinj.c.

◆ adjust_snr()

void adjust_snr ( SimInspiralTable inj,
REAL8  target_snr,
const char ifos 
)

Definition at line 707 of file inspinj.c.

◆ adjust_snr_real8()

void adjust_snr_real8 ( SimInspiralTable inj,
REAL8  target_snr,
const char ifos 
)

Definition at line 804 of file inspinj.c.

◆ network_snr()

REAL8 network_snr ( const char ifos,
SimInspiralTable inj 
)

Definition at line 684 of file inspinj.c.

◆ snr_in_ifo()

REAL8 snr_in_ifo ( const char ifo,
SimInspiralTable inj 
)

Definition at line 667 of file inspinj.c.

◆ network_snr_real8()

REAL8 network_snr_real8 ( const char ifos,
SimInspiralTable inj 
)

Definition at line 779 of file inspinj.c.

◆ snr_in_ifo_real8()

REAL8 snr_in_ifo_real8 ( const char ifo,
SimInspiralTable inj 
)

Definition at line 765 of file inspinj.c.

◆ snr_in_psd_real8()

REAL8 snr_in_psd_real8 ( const char ifo,
REAL8FrequencySeries psd,
REAL8  start_freq,
SimInspiralTable inj 
)

Definition at line 867 of file inspinj.c.

◆ network_snr_with_psds_real8()

REAL8 network_snr_with_psds_real8 ( int  num_ifos,
const char **  ifo_list,
REAL8FrequencySeries **  psds,
REAL8 start_freqs,
SimInspiralTable inj 
)

Definition at line 884 of file inspinj.c.

◆ adjust_snr_with_psds_real8()

void adjust_snr_with_psds_real8 ( SimInspiralTable inj,
REAL8  target_snr,
int  num_ifos,
const char **  ifo_list,
REAL8FrequencySeries **  psds,
REAL8 start_freqs 
)

Definition at line 903 of file inspinj.c.

◆ probability_redshift()

REAL8 probability_redshift ( REAL8  rshift)

Definition at line 605 of file inspinj.c.

◆ luminosity_distance()

REAL8 luminosity_distance ( REAL8  rshift)

Definition at line 616 of file inspinj.c.

◆ mean_time_step_sfr()

REAL8 mean_time_step_sfr ( REAL8  zmax,
REAL8  rate_local 
)

Definition at line 627 of file inspinj.c.

◆ drawRedshift()

REAL8 drawRedshift ( REAL8  zmin,
REAL8  zmax,
REAL8  pzmax 
)

Definition at line 639 of file inspinj.c.

◆ redshift_mass()

REAL8 redshift_mass ( REAL8  mass,
REAL8  z 
)

Definition at line 653 of file inspinj.c.

◆ scale_lalsim_distance()

static void scale_lalsim_distance ( SimInspiralTable inj,
char **  IFOnames,
REAL8FrequencySeries **  psds,
REAL8 start_freqs,
LoudnessDistribution  dDistr 
)
static

Definition at line 4534 of file inspinj.c.

◆ draw_uniform_snr()

static REAL8 draw_uniform_snr ( REAL8  snrmin,
REAL8  snrmax 
)
static

Definition at line 4659 of file inspinj.c.

◆ draw_log10_snr()

static REAL8 draw_log10_snr ( REAL8  snrmin,
REAL8  snrmax 
)
static

Definition at line 4666 of file inspinj.c.

◆ draw_volume_snr()

static REAL8 draw_volume_snr ( REAL8  snrmin,
REAL8  snrmax 
)
static

Definition at line 4650 of file inspinj.c.

◆ print_usage()

static void print_usage ( char program)
static

Definition at line 949 of file inspinj.c.

◆ main()

int main ( int  argc,
char argv[] 
)

Definition at line 1875 of file inspinj.c.

Variable Documentation

◆ vrbflg

int vrbflg
extern

defined in lal/lib/std/LALError.c

◆ tDistr

Definition at line 467 of file inspinj.c.

◆ dDistr

Definition at line 468 of file inspinj.c.

◆ lDistr

Definition at line 469 of file inspinj.c.

◆ mDistr

Definition at line 470 of file inspinj.c.

◆ iDistr

Definition at line 471 of file inspinj.c.

◆ spinDistr

Definition at line 472 of file inspinj.c.

◆ simTable

SimInspiralTable* simTable

Definition at line 474 of file inspinj.c.

◆ simRingTable

SimRingdownTable* simRingTable

Definition at line 475 of file inspinj.c.

◆ massFileName

char* massFileName = NULL

Definition at line 477 of file inspinj.c.

◆ nrFileName

char* nrFileName = NULL

Definition at line 478 of file inspinj.c.

◆ sourceFileName

char* sourceFileName = NULL

Definition at line 479 of file inspinj.c.

◆ outputFileName

char* outputFileName = NULL

Definition at line 480 of file inspinj.c.

◆ injtimesFileName

char* injtimesFileName = NULL

Definition at line 481 of file inspinj.c.

◆ exttrigFileName

char* exttrigFileName = NULL

Definition at line 482 of file inspinj.c.

◆ IPNSkyPositionsFile

char* IPNSkyPositionsFile = NULL

Definition at line 483 of file inspinj.c.

◆ outCompress

INT4 outCompress = 0

Definition at line 485 of file inspinj.c.

◆ ninjaMass

INT4 ninjaMass = 0

Definition at line 486 of file inspinj.c.

◆ real8Ninja2

INT4 real8Ninja2 = 0

Definition at line 487 of file inspinj.c.

◆ ninjaSNR

INT4 ninjaSNR = 0

Definition at line 488 of file inspinj.c.

◆ haveLoudness

INT4 haveLoudness = 0

Definition at line 489 of file inspinj.c.

◆ mwLuminosity

REAL4 mwLuminosity = -1

Definition at line 491 of file inspinj.c.

◆ minD

REAL4 minD = -1

Definition at line 492 of file inspinj.c.

◆ maxD

REAL4 maxD = -1

Definition at line 493 of file inspinj.c.

◆ minZ

REAL4 minZ = -1

Definition at line 494 of file inspinj.c.

◆ maxZ

REAL4 maxZ = -1

Definition at line 495 of file inspinj.c.

◆ localRate

REAL4 localRate = -1.0

Definition at line 496 of file inspinj.c.

◆ minSNR

REAL4 minSNR = -1

Definition at line 497 of file inspinj.c.

◆ maxSNR

REAL4 maxSNR = -1

Definition at line 498 of file inspinj.c.

◆ ifos

char* ifos = NULL

Definition at line 499 of file inspinj.c.

◆ minMass1

REAL4 minMass1 = -1

Definition at line 501 of file inspinj.c.

◆ maxMass1

REAL4 maxMass1 = -1

Definition at line 502 of file inspinj.c.

◆ minMass2

REAL4 minMass2 = -1

Definition at line 503 of file inspinj.c.

◆ maxMass2

REAL4 maxMass2 = -1

Definition at line 504 of file inspinj.c.

◆ minMtotal

REAL4 minMtotal = -1

Definition at line 505 of file inspinj.c.

◆ maxMtotal

REAL4 maxMtotal = -1

Definition at line 506 of file inspinj.c.

◆ meanMass1

REAL4 meanMass1 = -1.0

Definition at line 507 of file inspinj.c.

◆ meanMass2

REAL4 meanMass2 = -1.0

Definition at line 508 of file inspinj.c.

◆ massStdev1

REAL4 massStdev1 = -1.0

Definition at line 509 of file inspinj.c.

◆ massStdev2

REAL4 massStdev2 = -1.0

Definition at line 510 of file inspinj.c.

◆ minMassRatio

REAL4 minMassRatio =-1.0

Definition at line 511 of file inspinj.c.

◆ maxMassRatio

REAL4 maxMassRatio =-1.0

Definition at line 512 of file inspinj.c.

◆ inclStd

REAL4 inclStd =-1.0

Definition at line 514 of file inspinj.c.

◆ fixed_inc

REAL4 fixed_inc =-1.0

Definition at line 515 of file inspinj.c.

◆ max_inc

REAL4 max_inc =LAL_PI/2.0

Definition at line 516 of file inspinj.c.

◆ coaPhaseFixed

int coaPhaseFixed = 0

Definition at line 517 of file inspinj.c.

◆ fixedCoaPhase

REAL4 fixedCoaPhase = 0

Definition at line 518 of file inspinj.c.

◆ psi

REAL4 psi =-1.0

Definition at line 519 of file inspinj.c.

◆ longitude

REAL4 longitude =181.0

Definition at line 520 of file inspinj.c.

◆ latitude

REAL4 latitude =91.0

Definition at line 521 of file inspinj.c.

◆ epsAngle

REAL4 epsAngle =1e-7

Definition at line 522 of file inspinj.c.

◆ spinInjections

int spinInjections =-1

Definition at line 523 of file inspinj.c.

◆ spinAligned

int spinAligned =-1

Definition at line 524 of file inspinj.c.

◆ minSpin1

REAL4 minSpin1 =-1.0

Definition at line 525 of file inspinj.c.

◆ maxSpin1

REAL4 maxSpin1 =-1.0

Definition at line 526 of file inspinj.c.

◆ meanSpin1

REAL4 meanSpin1 =0.0

Definition at line 527 of file inspinj.c.

◆ Spin1Std

REAL4 Spin1Std =0.0

Definition at line 528 of file inspinj.c.

◆ minSpin2

REAL4 minSpin2 =-1.0

Definition at line 529 of file inspinj.c.

◆ maxSpin2

REAL4 maxSpin2 =-1.0

Definition at line 530 of file inspinj.c.

◆ meanSpin2

REAL4 meanSpin2 =0.0

Definition at line 531 of file inspinj.c.

◆ Spin2Std

REAL4 Spin2Std =0.0

Definition at line 532 of file inspinj.c.

◆ minKappa1

REAL4 minKappa1 =-1.0

Definition at line 533 of file inspinj.c.

◆ maxKappa1

REAL4 maxKappa1 =1.0

Definition at line 534 of file inspinj.c.

◆ minabsKappa1

REAL4 minabsKappa1 =0.0

Definition at line 535 of file inspinj.c.

◆ maxabsKappa1

REAL4 maxabsKappa1 =1.0

Definition at line 536 of file inspinj.c.

◆ fixedMass1

REAL4 fixedMass1 =-1.0

Definition at line 537 of file inspinj.c.

◆ fixedMass2

REAL4 fixedMass2 =-1.0

Definition at line 538 of file inspinj.c.

◆ pntMass1

INT4 pntMass1 =1

Definition at line 539 of file inspinj.c.

◆ pntMass2

INT4 pntMass2 =1

Definition at line 540 of file inspinj.c.

◆ deltaMass1

REAL4 deltaMass1 =-1

Definition at line 541 of file inspinj.c.

◆ deltaMass2

REAL4 deltaMass2 =-1

Definition at line 542 of file inspinj.c.

◆ bandPassInj

INT4 bandPassInj = 0

Definition at line 543 of file inspinj.c.

◆ taperInj

Definition at line 544 of file inspinj.c.

◆ alignInj

Definition at line 545 of file inspinj.c.

◆ redshift

REAL8 redshift

Definition at line 546 of file inspinj.c.

◆ single_IFO_SNR_threshold

REAL8 single_IFO_SNR_threshold =0.0

Definition at line 548 of file inspinj.c.

◆ ifonames

char** ifonames =NULL

Definition at line 549 of file inspinj.c.

◆ numifos

int numifos =0

Definition at line 550 of file inspinj.c.

◆ status

LALStatus status
static

Definition at line 552 of file inspinj.c.

◆ randParams

RandomParams* randParams =NULL
static

Definition at line 553 of file inspinj.c.

◆ numExtTriggers

INT4 numExtTriggers = 0

Definition at line 554 of file inspinj.c.

◆ exttrigHead

ExtTriggerTable* exttrigHead = NULL

Definition at line 555 of file inspinj.c.

◆ num_source

int num_source

Definition at line 557 of file inspinj.c.

◆ numSkyPoints

int numSkyPoints

Definition at line 558 of file inspinj.c.

◆ galaxynum

int galaxynum

Definition at line 559 of file inspinj.c.

◆ name

Definition at line 561 of file inspinj.c.

◆ ra

REAL8 ra

Definition at line 562 of file inspinj.c.

◆ dec

REAL8 dec

Definition at line 563 of file inspinj.c.

◆ dist

REAL8 dist

Definition at line 564 of file inspinj.c.

◆ lum

REAL8 lum

Definition at line 565 of file inspinj.c.

◆ fudge

REAL8 fudge

Definition at line 566 of file inspinj.c.

◆ 

struct { ... } * source_data

◆ 

struct { ... } * old_source_data

◆ 

struct { ... } * temparray

◆ 

struct { ... } * skyPoints

◆ MW_name

char MW_name[LIGOMETA_SOURCE_MAX] = "MW"

Definition at line 569 of file inspinj.c.

◆ fracVec

REAL8* fracVec =NULL

Definition at line 570 of file inspinj.c.

◆ ratioVec

REAL8* ratioVec = NULL

Definition at line 571 of file inspinj.c.

◆ norm

REAL8 norm =0

Definition at line 572 of file inspinj.c.

◆ num_mass

int num_mass

Definition at line 574 of file inspinj.c.

◆ mass1

REAL8 mass1

Definition at line 576 of file inspinj.c.

◆ mass2

REAL8 mass2

Definition at line 577 of file inspinj.c.

◆ 

struct { ... } * mass_data

◆ n_times

int n_times

Definition at line 580 of file inspinj.c.

◆ inj_times

LIGOTimeGPS* inj_times

Definition at line 581 of file inspinj.c.

◆ srcComplete

int srcComplete = 0

Definition at line 591 of file inspinj.c.

◆ makeCatalog

int makeCatalog = 0

Definition at line 592 of file inspinj.c.

◆ srcCompleteDist

REAL8 srcCompleteDist

Definition at line 593 of file inspinj.c.

◆ num_nr

int num_nr = 0

Definition at line 595 of file inspinj.c.

◆ i

int i = 0

Definition at line 596 of file inspinj.c.

◆ nrSimArray

SimInspiralTable** nrSimArray = NULL

Definition at line 597 of file inspinj.c.