Loading [MathJax]/extensions/TeX/AMSsymbols.js
LALPulsar 7.1.1.1-b246709
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
ppe_models.h
Go to the documentation of this file.
1/*******************************************************************************
2 Matt Pitkin, Colin Gill, John Veitch - 2011
3 Max Isi - 2016
4
5 ppe_models.h
6
7 Header file for ppe_models.c
8
9*******************************************************************************/
10
11/*
12 Author:
13*/
14
15/**
16 * \file
17 * \ingroup lalpulsar_bin_HeterodyneSearch
18 * \author Matthew Pitkin, John Veitch, Colin Gill, Max Isi
19 *
20 * \brief Header file for the signal models functions used in parameter
21 * estimation code for known pulsar searches using the nested sampling
22 * algorithm.
23 */
24
25#ifndef _PPE_MODELS_H
26#define _PPE_MODELS_H
27
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
34/* defines */
35#define IFO_XTRA_DATA( ifo ) ( (IFOModelExtraData*) ( ifo )->extraData )
36
37/* types */
38typedef struct tagIFOModelExtraData {
39 LIGOTimeGPSVector *times; /** Vector of time stamps for time domain data */
40 EphemerisData *ephem; /** Ephemeris data */
41 TimeCorrectionData *tdat; /** Einstein delay time correction data */
42 TimeCorrectionType ttype; /** The time correction type e.g. TDB, TCB */
44
45/* global variables */
46
47/* model functions */
49
51
53
55
56void set_nonGR_model_parameters( PulsarParameters *pars, char *nonGRmodel );
57
59
62
64 EphemerisData *ephem );
65
67 REAL8Vector *bdts );
68
70
72
74
75void response_lookup_table( REAL8 t0, LALDetAndSource detNSource, INT4 timeSteps, REAL8 avedt,
77 REAL8Vector *a3, REAL8Vector *b3 );
78
79/* functions to convert between parameters */
80
82
83#ifdef __cplusplus
84}
85#endif
86
87#endif /* _PPE_MODELS_H */
TimeCorrectionType
Enumerated type denoting the time system type to be produced in the solar system barycentring routine...
Definition: LALBarycenter.h:72
double REAL8
char CHAR
int32_t INT4
LALInferenceParamVaryType
void add_variable_parameter(PulsarParameters *params, LALInferenceVariables *var, const CHAR *parname, LALInferenceParamVaryType vary)
Add a REAL8 parameter from a PulsarParameters variable into a LALInferenceVariable.
Definition: ppe_models.c:376
REAL8Vector * get_glitch_phase(PulsarParameters *pars, LIGOTimeGPSVector *datatimes, REAL8Vector *dts, REAL8Vector *bdts)
Computes the phase from the glitch model.
Definition: ppe_models.c:798
void pulsar_model(PulsarParameters *params, LALInferenceIFOModel *ifo)
Generate the model of the neutron star signal.
Definition: ppe_models.c:408
REAL8 get_phase_mismatch(REAL8Vector *phi1, REAL8Vector *phi2, LIGOTimeGPSVector *ts)
Calculate the phase mismatch between two vectors of phases.
Definition: ppe_models.c:1171
REAL8Vector * get_ssb_delay(PulsarParameters *pars, LIGOTimeGPSVector *datatimes, EphemerisData *ephem, TimeCorrectionData *tdat, TimeCorrectionType ttype, LALDetector *detector)
Computes the delay between a GPS time at Earth and the solar system barycentre.
Definition: ppe_models.c:657
REAL8Vector * get_bsb_delay(PulsarParameters *pars, LIGOTimeGPSVector *datatimes, REAL8Vector *dts, EphemerisData *ephem)
Computes the delay between a pulsar in a binary system and the barycentre of the system.
Definition: ppe_models.c:762
void response_lookup_table(REAL8 t0, LALDetAndSource detNSource, INT4 timeSteps, REAL8 avedt, REAL8Vector *a1, REAL8Vector *b1, REAL8Vector *a2, REAL8Vector *b2, REAL8Vector *a3, REAL8Vector *b3)
Creates a lookup table of the detector antenna pattern.
Definition: ppe_models.c:1285
void invert_source_params(PulsarParameters *params)
Convert sources parameters into amplitude and phase notation parameters.
Definition: ppe_models.c:1367
void get_earth_pos_vel(EarthState *earth, EphemerisData *ephem, LIGOTimeGPS *t)
Get the position and velocity of the Earth at a given time.
Definition: ppe_models.c:1215
void get_pulsar_model(LALInferenceModel *model)
Defines the pulsar model/template to use.
Definition: ppe_models.c:52
void get_amplitude_model(PulsarParameters *pars, LALInferenceIFOModel *ifo)
The amplitude model of a complex heterodyned signal from the harmonics of a rotating neutron star.
Definition: ppe_models.c:933
REAL8Vector * get_phase_model(PulsarParameters *params, LALInferenceIFOModel *ifo, REAL8 freqFactor)
The phase evolution of a source.
Definition: ppe_models.c:493
void add_pulsar_parameter(LALInferenceVariables *var, PulsarParameters *params, const CHAR *parname)
Add a REAL8 parameter from a LALInferenceVariable into a PulsarParameters variable.
Definition: ppe_models.c:359
void set_nonGR_model_parameters(PulsarParameters *pars, char *nonGRmodel)
Set amplitude parameters for specific non-GR models.
Definition: ppe_models.c:301
Header file for the parameter estimation code for known pulsar searches using the nested sampling alg...
Basic output structure of LALBarycenterEarth.c.
This structure contains all information about the center-of-mass positions of the Earth and Sun,...
TimeCorrectionData * tdat
Ephemeris data.
Definition: ppe_models.h:41
LIGOTimeGPSVector * times
Definition: ppe_models.h:39
TimeCorrectionType ttype
Einstein delay time correction data.
Definition: ppe_models.h:42
EphemerisData * ephem
Vector of time stamps for time domain data.
Definition: ppe_models.h:40
A vector of 'timestamps' of type LIGOTimeGPS.
Definition: SFTfileIO.h:188
The PulsarParameters structure to contain a set of pulsar parameters.
This structure will contain a vector of time corrections used during conversion from TT to TDB/TCB/Te...