FFUtils.h

Go to the documentation of this file.
00001 /*
00002 *  Copyright (C) 2007 Stas Babak, Bernd Machenschalk
00003 *
00004 *  This program is free software; you can redistribute it and/or modify
00005 *  it under the terms of the GNU General Public License as published by
00006 *  the Free Software Foundation; either version 2 of the License, or
00007 *  (at your option) any later version.
00008 *
00009 *  This program is distributed in the hope that it will be useful,
00010 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00011 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012 *  GNU General Public License for more details.
00013 *
00014 *  You should have received a copy of the GNU General Public License
00015 *  along with with program; see the file COPYING. If not, write to the
00016 *  Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
00017 *  MA  02111-1307  USA
00018 */
00019 
00020 #include <stdio.h>
00021 
00022 #include <lal/LALInspiral.h>
00023 #include <lal/LALInspiralBank.h>
00024 #include <lal/RealFFT.h>
00025 #include <lal/AVFactories.h>
00026 #include <lal/SeqFactories.h>
00027 
00028 #include <lal/LALConfig.h>
00029 #include <lal/LALStdio.h>
00030 #include <lal/LALStdlib.h>
00031 #include <lal/LALError.h>
00032 #include <lal/LALDatatypes.h>
00033 #include <lal/AVFactories.h>
00034 #include <lal/Window.h>
00035 #include <lal/TimeFreqFFT.h>
00036 #include <lal/IIRFilter.h>
00037 #include <lal/Date.h>
00038 #include <lal/LIGOMetadataTables.h>
00039 
00040 NRCSID (FFUTILSH,"$Id: FFUtils.h,v 1.3 2007/06/08 14:41:50 bema Exp $");
00041 
00042 
00043 
00044 
00045 #define CVS_ID_STRING      "$Id: FFUtils.h,v 1.3 2007/06/08 14:41:50 bema Exp $"
00046 #define CVS_NAME_STRING    "$Name:  $"
00047 #define CVS_REVISION       "$Revision: 1.3 $"
00048 #define CVS_SOURCE         "$Source: /usr/local/cvs/lscsoft/lal/packages/noisemodels/include/FFUtils.h,v $"
00049 #define CVS_DATE           "$Date: 2007/06/08 14:41:50 $"
00050 #define PROGRAM_NAME       "FFUtils"
00051 
00052 
00053 
00054 
00055 /*  !!!!!  Structures to define   !!!!  */
00056 
00057  
00058 
00059 RandomSignalIn
00060 
00061 
00062 
00063 
00064 /*    !!!!      functions to define    !!!!  */ 
00065 
00066 /* this function should compute the max length of template in the bank 
00067   and padd this size to the nearest power of 2 */
00068 GetMaximumTemplateSize(&status, &bankIn , &checkLength); 
00069 
00070 /* should compute the expected sensitivity (psd) using f-ns in the noise models */
00071 GetNoisePSD(&status, bankIn.shf, ifo, df);
00072 
00073 /* computes fourier trandform of the signal and template */
00074 CreateFSignal(&status, &fwdp, signal, &fSignal);
00075 CreateFTemplate(&status, &fwdp, bankCurrent, &fTemplate);
00076 
00077 /** this function suppose to compute overlap */
00078 ComputeOverlap(&status, &revp, &fSignal, &fTemplate, bankIn.shf, &match);
00079 
00080 
00081 /**** !!!!!!!! The rest has to be modified. ********/
00082 
00083 
00084 /* --- Some Error messages --- */
00085 #define BANKEFFICIENCYNEW_ENORM  0
00086 #define BANKEFFICIENCYNEW_ESUB   1
00087 #define BANKEFFICIENCYNEW_EARG   2
00088 #define BANKEFFICIENCYNEW_EVAL   3
00089 #define BANKEFFICIENCYNEW_EFILE  4
00090 #define BANKEFFICIENCYNEW_EINPUT 5
00091 #define BANKEFFICIENCYNEW_EMEM   6
00092 
00093 #define BANKEFFICIENCYNEW_MSGENORM  "Normal exit"
00094 #define BANKEFFICIENCYNEW_MSGESUB   "Subroutine failed"
00095 #define BANKEFFICIENCYNEW_MSGEARG   "Error parsing arguments"
00096 #define BANKEFFICIENCYNEW_MSGEVAL   "Input argument out of valid range"
00097 #define BANKEFFICIENCYNEW_MSGEFILE  "Could not open file"
00098 #define BANKEFFICIENCYNEW_MSGEINPUT "Error reading file"
00099 #define BANKEFFICIENCYNEW_MSGEMEM   "Out of memory"
00100 #define BANKEFFICIENCYNEW_MSGPARSER "Missing arguments ??  "
00101 
00102 
00103 
00104 
00105 
00106 
00107 
00108 
00109 

Generated on Mon Sep 8 03:06:41 2008 for LAL by  doxygen 1.5.2