Loading [MathJax]/extensions/TeX/AMSsymbols.js
LALInference 4.1.9.1-5e288d3
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
LALInferenceReadData.h
Go to the documentation of this file.
1/*
2 *
3 * LALInference: LAL Inference library
4 * LALInferenceReadData.h Utility functions for handling IFO data
5 *
6 * Copyright (C) 2009 Ilya Mandel, Vivien Raymond, Christian Roever, Marc van der Sluys and John Veitch
7 *
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with with program; see the file COPYING. If not, write to the
21 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
22 * MA 02110-1301 USA
23 */
24
25#ifndef LALInferenceReadData_h
26#define LALInferenceReadData_h
27
28#include <lal/LALInference.h>
29
30/**
31 * \defgroup LALInferenceReadData_h Header LALInferenceReadData.h
32 * \ingroup lalinference_general
33 * \brief Utility functions for handling IFO data
34 */
35/** @{ */
36
37/**
38 * \brief Read IFO data according to command line arguments.
39 * This function reads command line arguments and returns a \c LALInferenceIFOData linked
40 * list.
41 * \param commandLine [in] Pointer to a ProcessParamsTable containing command line arguments
42 * \return Pointer to a new \c LALInferenceIFOData linked list containing the data, or NULL upon error.
43 * \author John Veitch
44 */
45struct tagLALInferenceIFOData * LALInferenceReadData (ProcessParamsTable * commandLine);
46
47/**
48 * \brief Convenience function to inject a signal into the data, using a SimInspiralTable
49 * Injects a signal from a SimInspiralTable into a pre-existing \c IFOdata structure,
50 * based on command line arguments (see --help for details).
51 * \param commandLine [in] Pointer to a ProcessParamsTable containing command line arguments
52 * \param IFOdata [in] Pointer to an already existing IFOdata structure.
53 */
54void LALInferenceInjectInspiralSignal(struct tagLALInferenceIFOData *IFOdata, ProcessParamsTable *commandLine);
55
58
59/**
60 * \brief Fills the variable in vars with the injection values from theEventTable. Destroys contents of
61 * vars. vars cannot be NULL. Resulting variables are LALINFERENCE_PARAM_FIXED.
62 */
64
65/**
66 * \brief Function to output a sample with logL values etc for the injection, if one is made.
67 * Requires --inj, --outfile and optionally --event (if not 0).
68 */
71/** @} */
72
73#endif
void LALInferenceInjectionToVariables(SimInspiralTable *theEventTable, LALInferenceVariables *vars)
Fills the variable in vars with the injection values from theEventTable.
void LALInferenceSetupROQmodel(LALInferenceModel *model, ProcessParamsTable *commandLine)
void LALInferenceSetupROQdata(LALInferenceIFOData *IFOdata, ProcessParamsTable *commandLine)
void LALInferenceInjectFromMDC(ProcessParamsTable *commandLine, LALInferenceIFOData *IFOdata)
LALInferenceVariables * LALInferencePrintInjectionSample(LALInferenceRunState *runState)
Function to output a sample with logL values etc for the injection, if one is made.
void LALInferenceInjectInspiralSignal(struct tagLALInferenceIFOData *IFOdata, ProcessParamsTable *commandLine)
Convenience function to inject a signal into the data, using a SimInspiralTable Injects a signal from...
struct tagLALInferenceIFOData * LALInferenceReadData(ProcessParamsTable *commandLine)
Read IFO data according to command line arguments.
Structure to contain IFO data.
Definition: LALInference.h:625
Structure to constain a model and its parameters.
Definition: LALInference.h:436
Structure containing inference run state This includes pointers to the function types required to run...
Definition: LALInference.h:592
The LALInferenceVariables structure to contain a set of parameters Implemented as a linked list of LA...
Definition: LALInference.h:170