Loading [MathJax]/extensions/TeX/AMSsymbols.js
LALPulsar 7.1.1.1-5e288d3
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
TwoSpectTypes.h
Go to the documentation of this file.
1/*
2* Copyright (C) 2010, 2011, 2014 Evan Goetz
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 __TWOSPECTTYPES_H__
21#define __TWOSPECTTYPES_H__
22
23#include <lal/LALStdlib.h>
24#include <lal/AVFactories.h>
25#include <lal/DetectorStates.h>
26#include <lal/PulsarDataTypes.h>
27#include <lal/VectorMath.h>
28
29#include <gsl/gsl_rng.h>
30
31extern FILE *LOG;
32
33typedef struct {
35 REAL8 Tobs;
36 REAL8 Tsft;
37 REAL8 SFToverlap;
38 REAL8 t0;
39 REAL8 fmin;
40 REAL8 fspan;
42 LALStringVector *avesqrtSh;
43 INT4 blksize;
44 CHAR *outdirectory;
45 CHAR *outfilename;
46 CHAR *configCopy;
47 CHAR *ULfilename;
48 CHAR *candidatesFilename;
49 CHAR *inputSFTs;
50 CHAR *ephemEarth;
51 CHAR *ephemSun;
52 BOOLEAN gaussNoiseWithSFTgaps;
53 CHAR *templatebankfile;
54 REAL8 Pmin;
55 REAL8 Pmax;
56 REAL8 dfmin;
57 REAL8 dfmax;
58 CHAR *skyRegion;
59 CHAR *skyRegionFile;
60 REAL8 linPolAngle;
61 INT4 harmonicNumToSearch;
62 INT4 periodHarmToCheck;
63 INT4 periodFracToCheck;
64 BOOLEAN templateSearch;
65 BOOLEAN templateSearchFixedDf;
66 LALStringVector *templateSearchDf;
67 REAL8 templateSearchP;
68 REAL8 templateSearchAsini;
69 REAL8 templateSearchAsiniSigma;
70 REAL8 assumeNScosi;
71 REAL8 assumeNSpsi;
72 REAL8 assumeNSGWfreq;
73 REAL8 assumeNSorbitP;
74 REAL8 assumeNSasini;
75 LIGOTimeGPS assumeNSorbitTp;
76 LIGOTimeGPS assumeNSrefTime;
77 INT4 cosiSignCoherent;
78 INT4 ihsfactor;
79 REAL8 ihsfar;
80 REAL8 ihsfom;
81 REAL8 ihsfomfar;
82 INT4 keepOnlyTopNumIHS;
83 REAL8 tmplfar;
84 INT4 minTemplateLength;
85 INT4 maxTemplateLength;
86 REAL8 ULfmin;
87 REAL8 ULfspan;
88 REAL8 ULminimumDeltaf;
89 REAL8 ULmaximumDeltaf;
90 BOOLEAN allULvalsPerSkyLoc;
92 REAL8 lineDetection;
93 INT4 FFTplanFlag;
94 BOOLEAN fastchisqinv;
95 INT4 vectorMath;
96 BOOLEAN followUpOutsideULrange;
97 LALStringVector *timestampsFile;
98 LALStringVector *segmentFile;
100 REAL8 injFmin;
101 REAL8 injBand;
102 INT4 injRandSeed;
103 BOOLEAN weightedIHS;
104 BOOLEAN signalOnly;
105 BOOLEAN templateTest;
106 REAL8 templateTestF;
107 REAL8 templateTestP;
108 REAL8 templateTestDf;
110 INT4 ULsolver;
111 REAL8 dopplerMultiplier;
112 BOOLEAN IHSonly;
113 BOOLEAN noNotchHarmonics;
114 BOOLEAN calcRthreshold;
115 BOOLEAN antennaOff;
116 BOOLEAN noiseWeightOff;
117 BOOLEAN gaussTemplatesOnly;
118 BOOLEAN ULoff;
119 BOOLEAN printSFTtimes;
120 BOOLEAN printData;
121 BOOLEAN BrentsMethod;
122 CHAR *saveRvalues;
123 CHAR *printSignalData;
124 CHAR *printMarginalizedSignalData;
126 BOOLEAN chooseSeed;
128
129typedef struct {
134typedef struct {
138typedef struct {
142typedef struct {
148
149typedef struct {
150 REAL4VectorAligned *ffdata; //Doubly Fourier transformed data
157
158typedef struct {
159 REAL8 fsig; /* 0 value means candidate not valid */
171} candidate;
172
173typedef struct {
178
179typedef struct {
190
191typedef struct {
200} UpperLimit;
201
202typedef struct {
206
207typedef struct {
215
216typedef struct {
219} ihsVals;
220
221typedef struct {
230
231typedef struct {
237} farStruct;
238
239typedef struct {
241 INT4Vector *pixellocations; //pixel locations
246
247typedef struct {
254
255#endif
#define IFO
INT4Vector * markBadSFTs(const REAL4VectorAligned *tfdata, const UserInput_t *params)
Mark the non-Gaussian SFTs using K-S and Kuiper's tests.
FILE * LOG
Definition: TwoSpect.c:55
INT4 bruteForceTemplateTest(candidateVector **output, const candidate input, const TwoSpectParamSpaceSearchVals *paramspace, const UserInput_t *params, const REAL4VectorAligned *ffdata, const REAL4VectorAligned *aveNoise, const REAL4VectorAligned *aveTFnoisePerFbinRatio, const REAL4FFTPlan *secondFFTplan, const gsl_rng *rng, const BOOLEAN useExactTemplates)
A brute force template search to test templates around a candidate.
Definition: candidates.c:429
unsigned char BOOLEAN
double REAL8
char CHAR
uint32_t UINT4
int32_t INT4
float REAL4
double t0
REAL4VectorAligned ** data
INT4Vector * pixellocations
REAL4VectorAligned * templatedata
TwoSpectTemplate ** data
REAL8Vector * fsig
REAL8Vector * effSNRval
REAL8Vector * moddepth
REAL8Vector * ULval
REAL8Vector * period
REAL8 normalization
UpperLimit * data
alignedREAL8Vector ** data
INT4 templateVectorIndex
REAL8 moddepth
BOOLEAN lineContamination
REAL8 normalization
INT4 proberrcode
REAL8 period
candidate * data
REAL4 distSigma
INT4 farerrcode
REAL4 distMean
REAL4VectorAligned * topRvalues
REAL8 ffnormalization
REAL4VectorAligned * ffdata
REAL8 tfnormalization
INT4Vector * locationsForEachFbin
REAL4VectorAligned * maxima
INT4Vector * locations
REAL4VectorAligned * maximaForEachFbin
REAL4VectorAligned * foms
REAL4 ihs
REAL4VectorAligned * ihsfomdistMean
REAL4VectorAligned * ihsdistMean
REAL4VectorAligned * expectedIHSVector
REAL4VectorAligned * ihsfomdistSigma
REAL4VectorAligned * ihsfar
REAL4VectorAligned * ihsdistSigma
REAL4VectorAligned * fomfarthresh