coherent WaveBurst
Library Reference Guide
home
cWB_docker
git
cWB
library
tools
cwb
plugins
CWB_Plugin_BBH_low_UnVol_Config_ER8.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
// this config plugin must be used with the CWB_Plugin_MDC_OTF.C plugin
10
// to generate a uniform in volume distribution of BBH waveforms
11
12
cout <<
"Execute : CWB_Plugin_BBH_low_UnVol_Config_ER8.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
*
xstart
;
21
int
*
xstop
;
22
CWB_PLUGIN_IMPORT
(
int
*,xstart);
23
CWB_PLUGIN_IMPORT
(
int
*,xstop);
24
25
int
seed
= 100*((*net)->nRun)+*gIFACTOR;
26
char
SEED[64];
sprintf
(SEED,
"%d"
,seed);
27
28
cout <<
"gIFACTOR : "
<< *gIFACTOR <<
" net->nRun : "
<< (*net)->nRun <<
" SEED "
<< SEED << endl;
29
30
CWB::mdc
*
MDC
;
31
CWB_PLUGIN_IMPORT
(
CWB::mdc
*,MDC);
32
33
CWB::config
**
cfg
;
34
CWB_PLUGIN_IMPORT
(
CWB::config
**,cfg);
35
36
// ---------------------------------------------------------------------------
37
// set inspiral parms
38
// waveforms are produced by the LAL library
39
// to dump all the available options do:
40
// $LALINSPINJ_EXEC --help
41
// for any details refer to the LAL documentation.
42
// there are some special options added only for the mdc class
43
// --approximant : is used as alternative to --waveform to force
44
// the use of the new XLALSimInspiralChooseWaveformFromSimInspiral
45
// --output "file.xml" : write mdc injection's parameters to xml file. default=/tmp
46
// WARNING : write a space characters at the end of each inspOptions line !!!
47
// ---------------------------------------------------------------------------
48
49
TString
inspOptions
=
""
;
50
inspOptions =
"--gps-start-time 1124005012 --gps-end-time 1125234224 "
;
51
inspOptions+=
"--taper-injection start --seed "
+
TString
(SEED)+
" "
;
52
inspOptions+=
"--dir "
+
TString
((*cfg)->nodedir)+
" "
;
53
inspOptions+=
"--f-lower 24.000000 "
;
54
inspOptions+=
"--time-step 30 "
;
55
56
inspOptions+=
"--waveform IMRPhenomBthreePointFivePN "
;
57
inspOptions+=
"--l-distr random "
;
58
inspOptions+=
"--i-distr uniform "
;
59
inspOptions+=
"--min-mass1 15. --max-mass1 25. "
;
60
inspOptions+=
"--min-mass2 15. --max-mass2 25. "
;
61
inspOptions+=
"--min-mtotal 30. --max-mtotal 50 "
;
62
inspOptions+=
"--m-distr componentMass "
;
63
inspOptions+=
"--enable-spin --aligned "
;
64
inspOptions+=
"--min-spin1 0. --max-spin1 0.9 "
;
65
inspOptions+=
"--min-spin2 0. --max-spin2 0.9 "
;
66
inspOptions+=
"--amp-order 0 "
;
67
inspOptions+=
"--d-distr volume "
;
68
//inspOptions+= "--min-z 1.e-4 --max-z 0.33 ";
69
inspOptions+=
"--min-distance 100 --max-distance 1100000 "
;
70
71
// the first parameter a the name of MDC defined by the user
72
MDC->SetInspiral(
"IMRPhenomBthreePointFivePN"
,inspOptions);
73
74
}
xstop
int * xstop
Definition:
CWB_Plugin_HEN_BKG_Config.C:14
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
xstart
int * xstart
Definition:
CWB_Plugin_HEN_BKG_Config.C:13
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)
CWB_PluginConfig
void CWB_PluginConfig()
Definition:
CWB_Plugin_BBH_low_UnVol_Config_ER8.C:7