Logo Coherent WaveBurst  
Reference Guide
Logo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CWB_Plugin_MDC_OTF_Config_NSNS.C
Go to the documentation of this file.
1 #include "CWB_Plugin.h"
2 
4 
5  //!NOISE_MDC_SIMULATION
6  // Config Plugin to generate injected 'on the fly' NSNS from LAL
7 
8  cout << "Execute CWB_Plugin_MDC_OTF_Config_NSNS.C ..." << endl;
9 
10  CWB::mdc* MDC;
12 
13  // ---------------------------------------------------------------------------
14  // set inspiral parms
15  // waveforms are produced by the LAL library
16  // to dump all the available options do:
17  // $LALINSPINJ_EXEC --help
18  // for any details refer to the LAL documentation.
19  // there are some special options added only for the mdc class
20  // --approximant : is used as alternative to --waveform to force
21  // the use of the new XLALSimInspiralChooseWaveformFromSimInspiral
22  // --output "file.xml" : write mdc injection's parameters to xml file
23  // --dir "tmp dir" : directory used to store the temporary xml file, default=/tmp
24  // WARNING : write a space characters at the end of each inspOptions line !!!
25  // ---------------------------------------------------------------------------
26 
28  inspOptions = "--time-step 600.0 --time-interval 0 ";
29  inspOptions+= "--gps-start-time 931158300 --gps-end-time 931158700 ";
30  inspOptions+= "--dir "+TString(cfg->nodedir)+" ";
31  inspOptions+= "--l-distr fixed --longitude 45 --latitude 45 ";
32  inspOptions+= "--d-distr uniform --m-distr totalMassRatio --i-distr uniform ";
33  inspOptions+= "--f-lower 32.000000 ";
34 //OLD_LAL inspOptions+= "--min-mass1 1.4 --max-mass1 1.4 ";
35 //OLD_LAL inspOptions+= "--min-mass2 1.4 --max-mass2 1.4 ";
36  inspOptions+= "--min-mtotal 2.8 --max-mtotal 2.8 ";
37  inspOptions+= "--min-mratio 1.0 --max-mratio 1.0 ";
38  inspOptions+= "--min-distance 200000.0 --max-distance 200000.0 ";
39  inspOptions+= "--waveform EOBNRv2pseudoFourPN --disable-spin ";
40  inspOptions+= "--taper-injection start --seed 123456789";
41 
42  // the first parameter a the name of MDC defined by the user
43  MDC->SetInspiral("NSNS",inspOptions);
44 
45 }
46 
CWB::config * cfg
Definition: TestCWB_Plugin.C:5
TString("c")
CWB::mdc * MDC
char nodedir[1024]
Definition: config.hh:334
Definition: mdc.hh:216
TString inspOptions
void CWB_PluginConfig()
#define CWB_PLUGIN_IMPORT(TYPE, VAR)
Definition: CWB_Plugin.h:6