LALPulsar  6.1.0.1-fe68b98
LISAspecifics.c File Reference

LISA-specific implementations for Fstat/continuous-wave searches on LISA TDI observables. More...

Prototypes

int XLALgetLISAtwoArmRAAIFO (CmplxDetectorTensor *detT, const DetectorArm *detArmA, const DetectorArm *detArmB, const FreqSkypos_t *freq_skypos)
 return a rigid-adiabatic-approximation (RAA) two-arm IFO detector tensor for LISA, given 'armA' and 'armB' This implements LISA RAA-tensor using spacecraft-orbits described by Eq. More...
 
static REAL4 safe_sinc (REAL4 x)
 Unnormalized sinc(x) = sin(x) / x. More...
 
BOOLEAN XLALisLISAdetector (const LALDetector *det)
 Return true if 'det' is a LISA LALDetector struct. More...
 
int XLALregisterLISAdetectors (const CHAR prefixLetter)
 Set up the LALDetector structs representing LISA X, Y, Z TDI observables. More...
 
int XLALprecomputeLISAarms (DetectorState *detState)
 Precompute the arm-geometry for LISA, which is later used for assembling the RAA detector-tensor (which depends on frequency and skyposition. More...
 
int XLALgetLISADetectorTensorLWL (SymmTensor3 *detT, const Detector3Arms detArms, CHAR channelNum)
 
int XLALgetLISADetectorTensorRAA (CmplxDetectorTensor *detT, const Detector3Arms detArms, CHAR channelNum, const FreqSkypos_t *freq_skypos)
 

Detailed Description

LISA-specific implementations for Fstat/continuous-wave searches on LISA TDI observables.

Author
R. Prix, J. T. Whelan

Definition in file LISAspecifics.c.

Go to the source code of this file.

Macros

#define TRUE   (1==1)
 
#define FALSE   (1==0)
 
#define SCALAR(u, v)   ((u)[0]*(v)[0] + (u)[1]*(v)[1] + (u)[2]*(v)[2])
 Simple Euklidean scalar product for two 3-dim vectors in cartesian coords. More...
 
#define SQ(x)   ( (x) * (x) )
 
#define GPS2REAL8(gps)   (1.0 * (gps).gpsSeconds + 1.e-9 * (gps).gpsNanoSeconds )
 
#define LAL_SQRT1_3   0.5773502691896257645091487805019575
 1/sqrt(3) More...
 
#define SINC_SAFETY   1e-5
 

Macro Definition Documentation

◆ TRUE

#define TRUE   (1==1)

Definition at line 38 of file LISAspecifics.c.

◆ FALSE

#define FALSE   (1==0)

Definition at line 39 of file LISAspecifics.c.

◆ SCALAR

#define SCALAR (   u,
 
)    ((u)[0]*(v)[0] + (u)[1]*(v)[1] + (u)[2]*(v)[2])

Simple Euklidean scalar product for two 3-dim vectors in cartesian coords.

Definition at line 43 of file LISAspecifics.c.

◆ SQ

#define SQ (   x)    ( (x) * (x) )

Definition at line 44 of file LISAspecifics.c.

◆ GPS2REAL8

#define GPS2REAL8 (   gps)    (1.0 * (gps).gpsSeconds + 1.e-9 * (gps).gpsNanoSeconds )

Definition at line 45 of file LISAspecifics.c.

◆ LAL_SQRT1_3

#define LAL_SQRT1_3   0.5773502691896257645091487805019575

1/sqrt(3)

Definition at line 46 of file LISAspecifics.c.

◆ SINC_SAFETY

#define SINC_SAFETY   1e-5

Definition at line 660 of file LISAspecifics.c.

Function Documentation

◆ XLALgetLISAtwoArmRAAIFO()

int XLALgetLISAtwoArmRAAIFO ( CmplxDetectorTensor detT,
const DetectorArm detArmA,
const DetectorArm detArmB,
const FreqSkypos_t freq_skypos 
)

return a rigid-adiabatic-approximation (RAA) two-arm IFO detector tensor for LISA, given 'armA' and 'armB' This implements LISA RAA-tensor using spacecraft-orbits described by Eq.

(2.1) in LISA-MLCD 'challenge1.pdf' document, see http://astrogravs.nasa.gov/docs/mldc/round1.html

RETURN 0 = OK, -1 = ERROR

Note
: armA=0 means "arm 1" in TDI notation, therefore the enums LISA_ARM1, LISA_ARM2, LISA_ARM3 should be used to avoid confusion.
Parameters
[out]detT: two-arm IFO detector-tensor
[in]detArmAprecomputed detector-arm 'A'
[in]detArmBprecomputed detector-arm 'B'
[in]freq_skyposprecomputed frequency and skypos info

Definition at line 585 of file LISAspecifics.c.

◆ safe_sinc()

static REAL4 safe_sinc ( REAL4  x)
static

Unnormalized sinc(x) = sin(x) / x.

Correctly handle the limit x->0 where sinc(x) = 1

Definition at line 665 of file LISAspecifics.c.

◆ XLALisLISAdetector()

BOOLEAN XLALisLISAdetector ( const LALDetector det)

Return true if 'det' is a LISA LALDetector struct.

Definition at line 65 of file LISAspecifics.c.

◆ XLALregisterLISAdetectors()

int XLALregisterLISAdetectors ( const CHAR  prefixLetter)

Set up the LALDetector structs representing LISA X, Y, Z TDI observables.

Detectors will be registered with prefixes beginning with 'prefixLetter'.

Definition at line 75 of file LISAspecifics.c.

◆ XLALprecomputeLISAarms()

int XLALprecomputeLISAarms ( DetectorState detState)

Precompute the arm-geometry for LISA, which is later used for assembling the RAA detector-tensor (which depends on frequency and skyposition.

Definition at line 150 of file LISAspecifics.c.

◆ XLALgetLISADetectorTensorLWL()

int XLALgetLISADetectorTensorLWL ( SymmTensor3 detT,
const Detector3Arms  detArms,
CHAR  channelNum 
)
Parameters
[out]detT: LISA LWL detector-tensor
[in]detArmsprecomputed detector-arms
channelNumchannel-number (as a char) '1', '2', '3' ..

Definition at line 235 of file LISAspecifics.c.

◆ XLALgetLISADetectorTensorRAA()

int XLALgetLISADetectorTensorRAA ( CmplxDetectorTensor detT,
const Detector3Arms  detArms,
CHAR  channelNum,
const FreqSkypos_t freq_skypos 
)
Parameters
[out]detT: LISA LWL detector-tensor
[in]detArmsprecomputed detector-arms
[in]channelNumchannel-number (as a char) '1', '2', '3' ..
[in]freq_skyposprecompute frequency and skypos info

Definition at line 392 of file LISAspecifics.c.