coherent WaveBurst
Library Reference Guide
home
cWB_docker
git
cWB
library
tools
cwb
plugins
CWB_Plugin_MDC_OTF_Config_NSNS.C
Go to the documentation of this file.
1
// THIS IS THE NEW VERSION OF CONFIG PLUGIN !!!
2
// THE NEW VERSION IS REQUIRED BY ROOT6
3
// IN ROOT5 IS STILL POSSIBLE TO USE OLD & NEW VERSION
4
5
#include "
CWB_Plugin.h
"
6
7
void
CWB_PluginConfig
() {
8
9
//!NOISE_MDC_SIMULATION
10
// Config Plugin to generate injected 'on the fly' NSNS from LAL
11
12
cout <<
"Execute CWB_Plugin_MDC_OTF_Config_NSNS.C ..."
<< endl;
13
14
network
**
net
;
15
CWB_PLUGIN_IMPORT
(
network
**,net);
16
17
int
*
gIFACTOR
;
18
CWB_PLUGIN_IMPORT
(
int
*,gIFACTOR);
19
20
int
seed
= 100*((*net)->nRun)+*gIFACTOR;
21
char
SEED[64];
sprintf
(SEED,
"%d"
,seed);
22
23
cout <<
"gIFACTOR : "
<< *gIFACTOR <<
" net->nRun : "
<< (*net)->nRun <<
" SEED "
<< SEED << endl;
24
25
CWB::mdc
*
MDC
;
26
CWB_PLUGIN_IMPORT
(
CWB::mdc
*,MDC);
27
28
CWB::config
**
cfg
;
29
CWB_PLUGIN_IMPORT
(
CWB::config
**,cfg);
30
31
32
// ---------------------------------------------------------------------------
33
// set inspiral parms
34
// waveforms are produced by the LAL library
35
// to dump all the available options do:
36
// $LALINSPINJ_EXEC --help
37
// for any details refer to the LAL documentation.
38
// there are some special options added only for the mdc class
39
// --approximant : is used as alternative to --waveform to force
40
// the use of the new XLALSimInspiralChooseWaveformFromSimInspiral
41
// --output "file.xml" : write mdc injection's parameters to xml file
42
// --dir "tmp dir" : directory used to store the temporary xml file, default=/tmp
43
// WARNING : write a space characters at the end of each inspOptions line !!!
44
// ---------------------------------------------------------------------------
45
46
TString
inspOptions
=
""
;
47
inspOptions =
"--time-step 600.0 --time-interval 0 "
;
48
inspOptions+=
"--gps-start-time 931158300 --gps-end-time 931158700 "
;
49
inspOptions+=
"--dir "
+
TString
((*cfg)->nodedir)+
" "
;
50
inspOptions+=
"--l-distr fixed --longitude 45 --latitude 45 "
;
51
inspOptions+=
"--d-distr uniform --m-distr totalMassRatio --i-distr uniform "
;
52
inspOptions+=
"--f-lower 32.000000 "
;
53
//OLD_LAL inspOptions+= "--min-mass1 1.4 --max-mass1 1.4 ";
54
//OLD_LAL inspOptions+= "--min-mass2 1.4 --max-mass2 1.4 ";
55
inspOptions+=
"--min-mtotal 2.8 --max-mtotal 2.8 "
;
56
inspOptions+=
"--min-mratio 1.0 --max-mratio 1.0 "
;
57
inspOptions+=
"--min-distance 200000.0 --max-distance 200000.0 "
;
58
inspOptions+=
"--waveform EOBNRv2pseudoFourPN --disable-spin "
;
59
inspOptions+=
"--taper-injection start --seed 123456789"
;
60
61
// the first parameter a the name of MDC defined by the user
62
MDC->SetInspiral(
"NSNS"
,inspOptions);
63
64
}
65
cfg
CWB::config * cfg
Definition:
TestCWB_Plugin.C:23
TString
TString("c")
Definition:
cwb_report_skymap.C:129
MDC
CWB::mdc * MDC
Definition:
CWB_Plugin_HEN_SIM_Config.C:84
net
network ** net
NOISE_MDC_SIMULATION.
Definition:
CWB_Plugin_HEN_BKG_Config.C:4
CWB::config
Definition:
config.hh:91
CWB_Plugin.h
CWB::mdc
Definition:
mdc.hh:248
network
Definition:
network.hh:59
seed
int seed
Definition:
CWB_Plugin_HEN_BKG_Config.C:19
inspOptions
TString inspOptions
Definition:
CWB_Plugin_InjectCBC_Config.C:12
CWB_PluginConfig
void CWB_PluginConfig()
Definition:
CWB_Plugin_MDC_OTF_Config_NSNS.C:7
gIFACTOR
int gIFACTOR
Definition:
cwb_mkhtml_cbc.C:138
CWB_PLUGIN_IMPORT
#define CWB_PLUGIN_IMPORT(TYPE, VAR)
Definition:
CWB_Plugin.h:6
sprintf
sprintf(tfres,"(1/%g)x(%g) (sec)x(Hz)", 2 *df, df)