21#include <lal/LALStdlib.h>
22#include <lal/LALConstants.h>
23#include <lal/GeneratePPNInspiral.h>
24#include <lal/SkyCoordinates.h>
26#define LAL_DGALCORE_SI (2.62e20)
97 GENERATEPPNINSPIRALH_MSGENUL );
99 GENERATEPPNINSPIRALH_MSGENUL );
102 mTot = input->
m1 + input->
m2;
105 GENERATEPPNINSPIRALH_MSGEMBAD );
115 if ( fabs(
y ) > max )
117 if ( fabs( z ) > max )
121 GENERATEPPNINSPIRALH_MSGEDBAD );
126 d = sqrt(
x*
x +
y*
y + z*z );
133 &direction ), stat );
134 output->position = direction;
173 output->inc = acos( inc );
177 output->eta = (input->
m1/mTot)*(input->
m2/mTot);
#define ABORT(statusptr, code, mesg)
#define CHECKSTATUSPTR(statusptr)
#define ENDFAIL(statusptr)
#define TRY(func, statusptr)
#define ATTATCHSTATUSPTR(statusptr)
#define ASSERT(assertion, statusptr, code, mesg)
#define DETATCHSTATUSPTR(statusptr)
#define INITSTATUS(statusptr)
#define RETURN(statusptr)
#define BEGINFAIL(statusptr)
void LALGalacticToEquatorial(LALStatus *stat, SkyPosition *output, SkyPosition *input)
#define GENERATEPPNINSPIRALH_EDBAD
Bad distance.
#define GENERATEPPNINSPIRALH_EMBAD
Bad masses.
#define GENERATEPPNINSPIRALH_ENUL
Unexpected null pointer in arguments.
void LALGetInspiralParams(LALStatus *stat, PPNParamStruc *output, GalacticInspiralParamStruc *input, RandomParams *params)
Computes the input parameters for a PPN inspiral.
void LALCreateRandomParams(LALStatus *status, RandomParams **params, INT4 seed)
void LALUniformDeviate(LALStatus *status, REAL4 *deviate, RandomParams *params)
void LALDestroyRandomParams(LALStatus *status, RandomParams **params)
COORDINATESYSTEM_GALACTIC
This structure stores the position and mass parameters of a galactic inspiral event.
REAL4 lGal
The Galactocentric Galactic longitude of the system (ie the Galactic longitude of the direction from ...
REAL4 z
The distance of the system from the Galactic plane, in kpc.
REAL4 rho
The distance of the binary system from the Galactic axis, in kpc.
REAL4 m2
The masses of the binary components, in solar masses.
struct tagLALStatus * statusPtr
This structure stores the parameters for constructing a restricted post-Newtonian waveform.
char output[FILENAME_MAX]