Loading [MathJax]/extensions/TeX/AMSsymbols.js
LALApps 10.1.0.1-8a6b96f
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
binj.c File Reference

Prototypes

static struct options options_defaults (void)
 
static void print_usage (void)
 
static ProcessParamsTable ** add_process_param (ProcessParamsTable **proc_param, const ProcessTable *process, const char *type, const char *param, const char *value)
 
static struct options parse_command_line (int *argc, char **argv[], const ProcessTable *process, ProcessParamsTable **paramaddpoint)
 
static int load_tisl_file_and_merge (const char *filename, ProcessTable **process_table_head, ProcessParamsTable **process_params_table_head, TimeSlide **time_slide_table_head, SearchSummaryTable **search_summary_table_head, SimBurst **sim_burst_table_head)
 
static int qsort_strcmp (char **a, char **b)
 
static int set_instruments (ProcessTable *process, TimeSlide *time_slide_table_head)
 
static double sequence_geometric_next (double low, double high, double ratio)
 
static double ran_flat_log (gsl_rng *rng, double a, double b)
 
static double ran_flat_log_discrete (gsl_rng *rng, double a, double b, double ratio)
 
static double random_string_cusp_fhigh (double flow, double fhigh, gsl_rng *rng)
 
static void random_location_and_polarization (double *ra, double *dec, double *psi, gsl_rng *rng)
 
static SimBurstrandom_string_cusp (double flow, double fhigh, double Alow, double Ahigh, gsl_rng *rng)
 
static SimBurstrandom_directed_btlwnb (double ra, double dec, double psi, double minf, double maxf, double minband, double maxband, double mindur, double maxdur, double minEoverr2, double maxEoverr2, gsl_rng *rng)
 
static SimBurstrandom_all_sky_btlwnb (double minf, double maxf, double minband, double maxband, double mindur, double maxdur, double minEoverr2, double maxEoverr2, gsl_rng *rng)
 
static double duration_from_q_and_f (double Q, double f)
 
static SimBurstrandom_all_sky_sineGaussian (double minf, double maxf, double q, double minhrsst, double maxhrsst, gsl_rng *rng)
 
static void write_xml (const char *filename, const ProcessTable *process_table_head, const ProcessParamsTable *process_params_table_head, const SearchSummaryTable *search_summary_table_head, const TimeSlide *time_slide_table_head, const SimBurst *sim_burst)
 
int main (int argc, char *argv[])
 

Go to the source code of this file.

Data Structures

struct  options
 

Macros

#define CVS_REVISION   "$Revision$"
 
#define CVS_SOURCE   "$Source$"
 
#define CVS_DATE   "$Date$"
 
#define PROGRAM_NAME   "lalapps_binj"
 
#define ADD_PROCESS_PARAM(process, type)    do { paramaddpoint = add_process_param(paramaddpoint, process, type, long_options[option_index].name, LALoptarg); } while(0)
 
#define DEFINELIGOLWTABLEAPPEND(funcroot, rowtype)
 

Enumerations

enum  population { POPULATION_TARGETED , POPULATION_ALL_SKY_SINEGAUSSIAN , POPULATION_ALL_SKY_BTLWNB , POPULATION_STRING_CUSP }
 

Macro Definition Documentation

◆ CVS_REVISION

#define CVS_REVISION   "$Revision$"

Definition at line 61 of file binj.c.

◆ CVS_SOURCE

#define CVS_SOURCE   "$Source$"

Definition at line 62 of file binj.c.

◆ CVS_DATE

#define CVS_DATE   "$Date$"

Definition at line 63 of file binj.c.

◆ PROGRAM_NAME

#define PROGRAM_NAME   "lalapps_binj"

Definition at line 64 of file binj.c.

◆ ADD_PROCESS_PARAM

#define ADD_PROCESS_PARAM (   process,
  type 
)     do { paramaddpoint = add_process_param(paramaddpoint, process, type, long_options[option_index].name, LALoptarg); } while(0)

Definition at line 250 of file binj.c.

◆ DEFINELIGOLWTABLEAPPEND

#define DEFINELIGOLWTABLEAPPEND (   funcroot,
  rowtype 
)
Value:
static rowtype *XLAL ## funcroot ## Append(rowtype *head, rowtype *row) \
{ \
rowtype *tail; \
if(!head) \
return row; \
for(tail = head; tail->next; tail = tail->next); \
tail->next = row; \
return head; \
}
head
row

Definition at line 539 of file binj.c.

Enumeration Type Documentation

◆ population

enum population
Enumerator
POPULATION_TARGETED 
POPULATION_ALL_SKY_SINEGAUSSIAN 
POPULATION_ALL_SKY_BTLWNB 
POPULATION_STRING_CUSP 

Definition at line 76 of file binj.c.

Function Documentation

◆ options_defaults()

static struct options options_defaults ( void  )
static

Definition at line 112 of file binj.c.

◆ print_usage()

static void print_usage ( void  )
static

Definition at line 145 of file binj.c.

◆ add_process_param()

static ProcessParamsTable ** add_process_param ( ProcessParamsTable **  proc_param,
const ProcessTable process,
const char type,
const char param,
const char value 
)
static

Definition at line 238 of file binj.c.

◆ parse_command_line()

static struct options parse_command_line ( int argc,
char **  argv[],
const ProcessTable process,
ProcessParamsTable **  paramaddpoint 
)
static

Definition at line 254 of file binj.c.

◆ load_tisl_file_and_merge()

static int load_tisl_file_and_merge ( const char filename,
ProcessTable **  process_table_head,
ProcessParamsTable **  process_params_table_head,
TimeSlide **  time_slide_table_head,
SearchSummaryTable **  search_summary_table_head,
SimBurst **  sim_burst_table_head 
)
static

Definition at line 558 of file binj.c.

◆ qsort_strcmp()

static int qsort_strcmp ( char **  a,
char **  b 
)
static

Definition at line 627 of file binj.c.

◆ set_instruments()

static int set_instruments ( ProcessTable process,
TimeSlide time_slide_table_head 
)
static

Definition at line 633 of file binj.c.

◆ sequence_geometric_next()

static double sequence_geometric_next ( double  low,
double  high,
double  ratio 
)
static

Definition at line 706 of file binj.c.

◆ ran_flat_log()

static double ran_flat_log ( gsl_rng *  rng,
double  a,
double  b 
)
static

Definition at line 761 of file binj.c.

◆ ran_flat_log_discrete()

static double ran_flat_log_discrete ( gsl_rng *  rng,
double  a,
double  b,
double  ratio 
)
static

Definition at line 777 of file binj.c.

◆ random_string_cusp_fhigh()

static double random_string_cusp_fhigh ( double  flow,
double  fhigh,
gsl_rng *  rng 
)
static

Definition at line 809 of file binj.c.

◆ random_location_and_polarization()

static void random_location_and_polarization ( double *  ra,
double *  dec,
double *  psi,
gsl_rng *  rng 
)
static

Definition at line 824 of file binj.c.

◆ random_string_cusp()

static SimBurst * random_string_cusp ( double  flow,
double  fhigh,
double  Alow,
double  Ahigh,
gsl_rng *  rng 
)
static

Definition at line 837 of file binj.c.

◆ random_directed_btlwnb()

static SimBurst * random_directed_btlwnb ( double  ra,
double  dec,
double  psi,
double  minf,
double  maxf,
double  minband,
double  maxband,
double  mindur,
double  maxdur,
double  minEoverr2,
double  maxEoverr2,
gsl_rng *  rng 
)
static

Definition at line 880 of file binj.c.

◆ random_all_sky_btlwnb()

static SimBurst * random_all_sky_btlwnb ( double  minf,
double  maxf,
double  minband,
double  maxband,
double  mindur,
double  maxdur,
double  minEoverr2,
double  maxEoverr2,
gsl_rng *  rng 
)
static

Definition at line 952 of file binj.c.

◆ duration_from_q_and_f()

static double duration_from_q_and_f ( double  Q,
double  f 
)
static

Definition at line 976 of file binj.c.

◆ random_all_sky_sineGaussian()

static SimBurst * random_all_sky_sineGaussian ( double  minf,
double  maxf,
double  q,
double  minhrsst,
double  maxhrsst,
gsl_rng *  rng 
)
static

Definition at line 988 of file binj.c.

◆ write_xml()

static void write_xml ( const char filename,
const ProcessTable process_table_head,
const ProcessParamsTable process_params_table_head,
const SearchSummaryTable search_summary_table_head,
const TimeSlide time_slide_table_head,
const SimBurst sim_burst 
)
static

Definition at line 1037 of file binj.c.

◆ main()

int main ( int  argc,
char argv[] 
)

Definition at line 1086 of file binj.c.