LALApps 10.1.0.1-eeff03c
GenerateRing.h
Go to the documentation of this file.
1/*
2* Copyright (C) 2007 Bernd Machenschalk, Duncan Brown
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 _GENERATERING_H
21#define _GENERATERING_H
22
23#include <lal/LALStdlib.h>
24#include <lal/SimulateCoherentGW.h>
25#include <lal/SkyCoordinates.h>
26#include <lal/LIGOMetadataTables.h>
27
28#if defined(__cplusplus)
29extern "C" {
30#elif 0
31} /* so that editors will match preceding brace */
32#endif
33
34/**
35 * \defgroup GenerateRing_h Header GenerateRing.h
36 * \ingroup lalinspiral_inject
37 * \author Goggin, L., and Brown, D. A.
38 *
39 * \brief Provides routines to generate ringdown waveforms.
40 *
41 * ### Synopsis ###
42 *
43 * \code
44 * #include <lal/GenerateRing.h>
45 * \endcode
46 *
47 * Computes the ringdown waveform with specified \f$h_{rss}\f$.
48 *
49 */
50/** @{ */
51
52/** \name Error Codes */
53/** @{ */
54#define GENERATERINGH_ENUL 1 /**< Unexpected null pointer in arguments */
55#define GENERATERINGH_EOUT 2 /**< Output field a, f, phi, or shift already exists */
56#define GENERATERINGH_EMEM 3 /**< Out of memory */
57#define GENERATERINGH_ETYP 4 /**< Waveform type not implemented */
58#define GENERATERINGH_ELEN 5 /**< Waveform length not correctly specified */
59/** @} */
60
61/** \cond DONT_DOXYGEN */
62#define GENERATERINGH_MSGENUL "Unexpected null pointer in arguments"
63#define GENERATERINGH_MSGEOUT "Output field a, f, phi, or shift already exists"
64#define GENERATERINGH_MSGEMEM "Out of memory"
65#define GENERATERINGH_MSGETYP "Waveform type not implemented"
66#define GENERATERINGH_MSGELEN "Waveform length not correctly specified"
67/** \endcond */
68
69/** UNDOCUMENTED */
70typedef enum tagSimRingType {
73
74
75/**
76 * This structure stores the parameters for constructing a burst gravitational
77 * waveform
78 */
79typedef struct tagRingParamStruc {
80 REAL8 deltaT; /**< requested sampling interval (s) */
81 CoordinateSystem system; /**< coordinate system to assume for simRingdown */
83
84/* ---------- Function prototypes. ---------- */
85
86#ifdef __GNUC__
87#define UNUSED __attribute__ ((unused))
88#else
89#define UNUSED
90#endif
91
92/** \see See \ref GenerateRing_h for documentation */
93void
97 REAL4TimeSeries UNUSED *series,
98 SimRingdownTable *simRingdown,
100 );
101
102/** \see See \ref GenerateRing_h for documentation */
103void
109 INT4 calType
110 );
111
112/** @} */
113
114#if 0
115{ /* so that editors will match succeeding brace */
116#elif defined(__cplusplus)
117}
118#endif
119
120#endif /* _GENERATERING_H */
SimRingType
UNDOCUMENTED.
Definition: GenerateRing.h:70
void LALGenerateRing(LALStatus *status, CoherentGW *output, REAL4TimeSeries UNUSED *series, SimRingdownTable *simRingdown, RingParamStruc *params)
Definition: GenerateRing.c:44
void LALRingInjectSignals(LALStatus *status, REAL4TimeSeries *series, SimRingdownTable *injections, COMPLEX8FrequencySeries *resp, INT4 calType)
Definition: GenerateRing.c:219
@ Ringdown
Definition: GenerateRing.h:71
double REAL8
int32_t INT4
CoordinateSystem
SimInspiralTable * injections
Definition: inspfrinj.c:339
static LALStatus status
Definition: inspinj.c:552
This structure stores the parameters for constructing a burst gravitational waveform.
Definition: GenerateRing.h:79
REAL8 deltaT
requested sampling interval (s)
Definition: GenerateRing.h:80
CoordinateSystem system
coordinate system to assume for simRingdown
Definition: GenerateRing.h:81
Definition: series.h:36
int output(const char *outfile, int outtype, REAL4TimeSeries *series)
Definition: view.c:603