Loading [MathJax]/extensions/TeX/AMSsymbols.js
LALApps 10.1.0.1-b246709
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
inspiral.h
Go to the documentation of this file.
1/*
2* Copyright (C) 2007 Duncan Brown, Patrick Brady
3*
4* This program is free software; you can redistribute it and/or modify
5* it under the terms of the GNU General Public License as published by
6* the Free Software Foundation; either version 2 of the License, or
7* (at your option) any later version.
8*
9* This program is distributed in the hope that it will be useful,
10* but WITHOUT ANY WARRANTY; without even the implied warranty of
11* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12* GNU General Public License for more details.
13*
14* You should have received a copy of the GNU General Public License
15* along with with program; see the file COPYING. If not, write to the
16* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
17* MA 02110-1301 USA
18*/
19
20#ifndef _LALAPPS_INSPIRAL_H
21#define _LALAPPS_INSPIRAL_H
22
23#include "config.h"
24
25#include <LALAppsVCSInfo.h>
26#include <lal/LALConfig.h>
27#include <lal/LALStdio.h>
28#include <lal/LALStdlib.h>
29#include <lal/LALError.h>
30#include <lal/LALDatatypes.h>
31#include <lal/LIGOMetadataUtils.h>
32#include <lal/LIGOMetadataTables.h>
33#include <lal/LALSimInspiral.h>
34#include <lal/AVFactories.h>
35#include <lal/NRWaveIO.h>
36#include <lal/NRWaveInject.h>
37#include <lal/LIGOLwXMLRead.h>
38#include <lal/FileIO.h>
39#include <lal/Units.h>
40#include <lal/FrequencySeries.h>
41#include <lal/TimeSeries.h>
42#include <lal/TimeFreqFFT.h>
43#include <lal/VectorOps.h>
44#include <lal/LALDetectors.h>
45#include <lal/LALFrameIO.h>
46#include <lal/LALFrStream.h>
47
48
49#ifdef __cplusplus /* C++ protection. */
50extern "C" {
51#endif
52
53
54#define INSPIRALH_ENULL 1
55#define INSPIRALH_EFILE 2
56#define INSPIRALH_ENONULL 3
57#define INSPIRALH_ENOMEM 4
58#define INSPIRALH_EVAL 5
59
60#define INSPIRALH_MSGENULL "Null pointer"
61#define INSPIRALH_MSGEFILE "Error in file-IO"
62#define INSPIRALH_MSGENONULL "Not a Null pointer"
63#define INSPIRALH_MSGENOMEM "Memory ellocation error"
64#define INSPIRALH_MSGEVAL "Invalid value"
65
66
68 REAL4 candleM1,
69 REAL4 candleM2,
70 REAL4 snr,
71 REAL8 chanDeltaT,
72 INT4 nPoints,
74 UINT4 cut);
75
78 REAL4 candleM1,
79 REAL4 candleM2,
80 REAL4 candlesnr,
81 REAL8 chanDeltaT,
82 INT4 nPoints,
84 UINT4 cut);
85
87 REAL4TimeVectorSeries **outStrain,
88 SimInspiralTable *thisinj);
89
91 REAL8TimeSeries **outPlus,
92 REAL8TimeSeries **outCross,
93 SimInspiralTable *thisinj);
94
96 REAL4TimeSeries *chan,
98 CHAR ifo[3],
100 REAL8 freqLowCutoff,
101 REAL8 snrLow,
102 REAL8 snrHigh,
103 CHAR *fnameOutXML);
104
106 REAL8TimeSeries *chan,
108 CHAR ifo[3],
109 REAL8 freqLowCutoff,
110 REAL8 snrLow,
111 REAL8 snrHigh,
112 CHAR *fname);
113
115 REAL8TimeSeries *chan,
117 CHAR ifo[3],
118 REAL8 freqLowCutoff,
119 REAL8 snrLow,
120 REAL8 snrHigh,
121 REAL8FrequencySeries *ligoPSD,
122 REAL8 ligoSnrLowFreq,
123 REAL8FrequencySeries *virgoPSD,
124 REAL8 virgoSnrLowFreq,
125 CHAR *fname);
126
127
129
132 const CHAR ifo[3]);
133
135 const CHAR ifo[3]);
136
139 REAL8 startFreq,
140 const CHAR ifo[3]);
141
143 SimInspiralTable *inj);
144
146
149 REAL8 deltaFout
150 );
151
152REAL8 calculate_lalsim_snr(SimInspiralTable *inj, char *IFOname, REAL8FrequencySeries *psd, REAL8 start_freq);
153void get_FakePsdFromString(REAL8FrequencySeries* PsdFreqSeries,char* FakePsdName, REAL8 StartFreq);
154
155
156#ifdef __cplusplus
157} /* Close C++ protection */
158#endif
159
160#endif /* Close double-include protection */
REAL8 dynRange
Definition: blindinj.c:122
double REAL8
char CHAR
uint32_t UINT4
int32_t INT4
float REAL4
Approximant
char * ifo
Definition: gwf2xml.c:57
SimInspiralTable * thisInj
Definition: inspfrinj.c:340
SimInspiralTable * injections
Definition: inspfrinj.c:339
static LALStatus status
Definition: inspinj.c:552
REAL8 calculate_lalsim_snr(SimInspiralTable *inj, char *IFOname, REAL8FrequencySeries *psd, REAL8 start_freq)
REAL8 calculate_snr_from_strain_and_psd_real8(REAL8TimeSeries *strain, REAL8FrequencySeries *psd, REAL8 startFreq, const CHAR ifo[3])
int XLALPsdFromFile(REAL8FrequencySeries **psd, const CHAR *filename)
REAL4 compute_candle_distance(REAL4 candleM1, REAL4 candleM2, REAL4 snr, REAL8 chanDeltaT, INT4 nPoints, REAL8FrequencySeries *spec, UINT4 cut)
Definition: inspiralutils.c:84
void get_FakePsdFromString(REAL8FrequencySeries *PsdFreqSeries, char *FakePsdName, REAL8 StartFreq)
void InjectNumRelWaveformsREAL8(LALStatus *status, REAL8TimeSeries *chan, SimInspiralTable *injections, CHAR ifo[3], REAL8 freqLowCutoff, REAL8 snrLow, REAL8 snrHigh, CHAR *fname)
Main function for injecting numetrical relativity waveforms.
REAL8 calculate_ligo_snr_from_strain_real8(REAL8TimeSeries *strain, const CHAR ifo[3])
REAL8 calculate_ligo_snr_from_strain(REAL4TimeVectorSeries *strain, SimInspiralTable *thisInj, const CHAR ifo[3])
REAL4 XLALCandleDistanceTD(Approximant approximant, REAL4 candleM1, REAL4 candleM2, REAL4 candlesnr, REAL8 chanDeltaT, INT4 nPoints, REAL8FrequencySeries *spec, UINT4 cut)
void AddNumRelStrainModesREAL8(LALStatus *status, REAL8TimeSeries **outPlus, REAL8TimeSeries **outCross, SimInspiralTable *thisinj)
void AddNumRelStrainModes(LALStatus *status, REAL4TimeVectorSeries **outStrain, SimInspiralTable *thisinj)
void InjectNumRelWaveforms(LALStatus *status, REAL4TimeSeries *chan, SimInspiralTable *injections, CHAR ifo[3], REAL8 dynRange, REAL8 freqLowCutoff, REAL8 snrLow, REAL8 snrHigh, CHAR *fnameOutXML)
Main function for injecting numetrical relativity waveforms.
REAL8 start_freq_from_frame_url(CHAR *url)
void InjectNumRelWaveformsUsingPSDREAL8(LALStatus *status, REAL8TimeSeries *chan, SimInspiralTable *injections, CHAR ifo[3], REAL8 freqLowCutoff, REAL8 snrLow, REAL8 snrHigh, REAL8FrequencySeries *ligoPSD, REAL8 ligoSnrLowFreq, REAL8FrequencySeries *virgoPSD, REAL8 virgoSnrLowFreq, CHAR *fname)
Main function for injecting numetrical relativity waveforms.
REAL8TimeSeries * XLALNRInjectionStrain(const char *ifo, SimInspiralTable *inj)
REAL8FrequencySeries * XLALInterpolatePSD(REAL8FrequencySeries *in, REAL8 deltaFout)
Function for interpolating PSD to a given sample rate.
CHAR fname[256]
Definition: spininj.c:211