26#include <lal/LALStdlib.h>
27#include <lal/LALConstants.h>
28#include <lal/LALgetopt.h>
34#define L1_DC_RESP 0.39
35#define L1_PEND_F0 0.76
42#define H2_DC_RESP 1.05
43#define H2_PEND_F0 0.74
48#define H1_DC_RESP 0.93
49#define H1_PEND_F0 0.74
53"Usage: %s [options]\n"\
54"Options [default in brackets]:\n"\
55" -h print this message\n"\
56" -V print version info\n"\
58" -L flow low frequency cutoff for response function [25.0]\n"\
59" -H fhigh high frequency cutoff for response function [3000.0]\n"\
60" -n numpoints number of points in response function [8192]\n"
62#define usage( program ) fprintf( stderr, usgfmt, program )
66int main (
int argc,
char *argv[] )
75 FILE *l1_fp = NULL, *h2_fp = NULL, *h1_fp = NULL;
78 while ( 0 < ( opt =
LALgetopt( argc, argv,
"hVvL:H:n:" ) ) )
113 l1_fp = fopen(
"L1:LSC-ETMX_response",
"w" );
114 h2_fp = fopen(
"H2:LSC-ETMX_response",
"w" );
115 h1_fp = fopen(
"H1:LSC-ETMX_response",
"w" );
116 if ( !l1_fp || !h2_fp || !h1_fp )
118 fprintf( stderr,
"error opening response function files for writing\n" );
122 fprintf( l1_fp,
"# epoch = %lli\n", 0LL );
125 fprintf( h2_fp,
"# epoch = %lli\n", 0LL );
128 fprintf( h1_fp,
"# epoch = %lli\n", 0LL );
132 for (
k = 0;
k < numpts; ++
k )
141 fprintf( l1_fp,
"%e %e\n", l1_r, 0.0 );
142 fprintf( h2_fp,
"%e %e\n", h2_r, 0.0 );
143 fprintf( h1_fp,
"%e %e\n", h1_r, 0.0 );
const LALVCSInfoList lalAppsVCSInfoList
NULL-terminated list of VCS and build information for LALApps and its dependencies
int LALgetopt(int argc, char *const *argv, const char *optstring)
int main(int argc, char *argv[])
int XLALOutputVCSInfo(FILE *fp, const LALVCSInfoList vcs_list, const int verbose, const char *prefix)