32#include <lal/XLALError.h>
33#include <lal/LALError.h>
34#include <lal/LALStdlib.h>
35#include <lal/LALStdio.h>
36#include <lal/LIGOMetadataTables.h>
37#include <lal/LIGOMetadataUtils.h>
38#include <lal/LIGOMetadataInspiralUtils.h>
40#include <lal/SkyCoordinates.h>
41#include <lal/GeneratePPNInspiral.h>
42#include <lal/DetectorSite.h>
43#include <lal/DetResponse.h>
44#include <lal/TimeDelay.h>
104 REAL4 splus, scross, cosiota;
165 detAndSource.
pSource = &source;
196 cosiota = cos(
output->inclination );
197 splus = -( 1.0 + cosiota * cosiota );
198 scross = -2.0 * cosiota;
203 &
output->geocent_end_time );
207 output->eff_dist_h /= sqrt(
213 &
output->geocent_end_time );
217 output->eff_dist_l /= sqrt(
248 REAL4 splus, scross, cosiota;
271 detAndSource.
pSource = &source;
275 *endTime =
output->geocent_end_time;
282 *effDist = 2.0 *
output->distance;
283 cosiota = cos(
output->inclination );
284 splus = -( 1.0 + cosiota * cosiota );
285 scross = -2.0 * cosiota;
289 &
output->geocent_end_time );
333 eff_dist = &(
output->eff_dist_h);
340 eff_dist = &(
output->eff_dist_l);
347 eff_dist = &(
output->eff_dist_g);
354 eff_dist = &(
output->eff_dist_t);
361 eff_dist = &(
output->eff_dist_v);
395 for(length = 0,
event = *head;
event;
event =
event->next)
399 array =
LALCalloc(length,
sizeof(*array));
400 for(
i = 0,
event = *head;
event;
event =
event->next)
404 qsort(array, length,
sizeof(*array),
405 (
int(*)(
const void *,
const void *)) comparefunc);
408 for(
i = 0;
i < length;
i++, head = &(*head)->
next)
430 if(ta > tb + epsilon)
432 if(ta < tb - epsilon)
LALDetectorIndexGEO600DIFF
LALDetectorIndexTAMA300DIFF
LALDetectorIndexVIRGODIFF
#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)
static void LALInspiralSiteTimeAndDist(LALStatus *status, SimInspiralTable *output, LALDetector *detector, LIGOTimeGPS *endTime, REAL4 *effDist, SkyPosition *skyPos)
void LALGalacticInspiralParamsToSimInspiralTable(LALStatus *status, SimInspiralTable *output, GalacticInspiralParamStruc *input, RandomParams *params)
int XLALCompareSimInspiralByGeocentEndTime(const SimInspiralTable *const *a, const SimInspiralTable *const *b)
static INT8 geocent_end_time(const SimInspiralTable *x)
void LALPopulateSimInspiralSiteInfo(LALStatus *status, SimInspiralTable *output)
void XLALSortSimInspiral(SimInspiralTable **head, int(*comparefunc)(const SimInspiralTable *const *, const SimInspiralTable *const *))
static INT8 end_time(const SnglInspiralTable *x)
const LALDetector lalCachedDetectors[LAL_NUM_DETECTORS]
void LALComputeDetAMResponse(LALStatus *status, LALDetAMResponse *pResponse, const LALDetAndSource *pDetAndSrc, const LIGOTimeGPS *gps)
void LALGetInspiralParams(LALStatus *, PPNParamStruc *output, GalacticInspiralParamStruc *input, RandomParams *params)
Computes the input parameters for a PPN inspiral.
COORDINATESYSTEM_EQUATORIAL
REAL8 XLALTimeDelayFromEarthCenter(const double detector_earthfixed_xyz_metres[3], double source_right_ascension_radians, double source_declination_radians, const LIGOTimeGPS *gpstime)
#define XLAL_IS_REAL8_FAIL_NAN(val)
REAL8 XLALGreenwichMeanSiderealTime(const LIGOTimeGPS *gpstime)
LIGOTimeGPS * XLALGPSAdd(LIGOTimeGPS *epoch, REAL8 dt)
INT8 XLALGPSToINT8NS(const LIGOTimeGPS *epoch)
This structure stores the position and mass parameters of a galactic inspiral event.
LIGOTimeGPS geocentEndTime
The geocentric end time of the inspiral event.
REAL4 m2
The masses of the binary components, in solar masses.
const LALDetector * pDetector
SkyPosition equatorialCoords
This structure stores the parameters for constructing a restricted post-Newtonian waveform.
REAL4 phi
The phase at coalescence (or arbitrary reference phase for a post -Newtonian approximation),...
REAL4 psi
polarization angle (radians)
SkyPosition position
location of source on sky
REAL4 eta
The mass ratio of the binary system; Physically this parameter must lie in the range ; values outsid...
REAL4 d
The distance to the system, in metres.
REAL4 inc
The inclination of the system to the line of sight, in radians.
struct tagSimInspiralTable * next
char output[FILENAME_MAX]