Coherent WaveBurst
Reference Guide
CWB Documentation
Main Page
Namespaces
All Classes
Files
gitlab
ROOT
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
SOFT
cWB
library
master_0bc430d
tools
cwb
plugins
CWB_Plugin_MDC_OTF_Config_NSNS.C
Go to the documentation of this file.
1
#include "
CWB_Plugin.h
"
2
3
void
CWB_PluginConfig
() {
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
;
11
CWB_PLUGIN_IMPORT
(
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
27
TString
inspOptions
=
""
;
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
cfg
CWB::config * cfg
Definition:
TestCWB_Plugin.C:5
TString
TString("c")
Definition:
cwb_report_skymap.C:111
MDC
CWB::mdc * MDC
Definition:
CWB_Plugin_HEN_SIM_Config.C:78
CWB::config::nodedir
char nodedir[1024]
Definition:
config.hh:334
CWB_Plugin.h
CWB::mdc
Definition:
mdc.hh:216
inspOptions
TString inspOptions
Definition:
CWB_Plugin_InjectCBC_Config.C:12
CWB_PluginConfig
void CWB_PluginConfig()
Definition:
CWB_Plugin_MDC_OTF_Config_NSNS.C:3
CWB_PLUGIN_IMPORT
#define CWB_PLUGIN_IMPORT(TYPE, VAR)
Definition:
CWB_Plugin.h:6