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_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
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
// set inspiral parms
33
// waveforms are produced by the LAL library
34
// to dump all the available options do:
35
// $LALINSPINJ_EXEC --help
36
// for any details refer to the LAL documentation.
37
// there are some special options added only for the mdc class
38
// --approximant : is used as alternative to --waveform to force
39
// the use of the new XLALSimInspiralChooseWaveformFromSimInspiral
40
// --output "file.xml" : write mdc injection's parameters to xml file. default=/tmp
41
// WARNING : write a space characters at the end of each inspOptions line !!!
42
// ---------------------------------------------------------------------------
43
44
TString
inspOptions
=
""
;
45
inspOptions =
"--gps-start-time 1124005012 --gps-end-time 1125234224 "
;
46
inspOptions+=
"--taper-injection start --seed "
+
TString
(SEED)+
" "
;
47
inspOptions+=
"--dir "
+
TString
((*cfg)->nodedir)+
" "
;
48
inspOptions+=
"--f-lower 24.000000 "
;
49
inspOptions+=
"--time-step 30 "
;
50
51
inspOptions+=
"--waveform IMRPhenomBthreePointFivePN "
;
52
inspOptions+=
"--l-distr random "
;
53
inspOptions+=
"--i-distr uniform "
;
54
inspOptions+=
"--min-mass1 15. --max-mass1 25. "
;
55
inspOptions+=
"--min-mass2 15. --max-mass2 25. "
;
56
inspOptions+=
"--min-mtotal 30. --max-mtotal 50 "
;
57
inspOptions+=
"--m-distr componentMass "
;
58
inspOptions+=
"--enable-spin --aligned "
;
59
inspOptions+=
"--min-spin1 0. --max-spin1 0.9 "
;
60
inspOptions+=
"--min-spin2 0. --max-spin2 0.9 "
;
61
inspOptions+=
"--amp-order 0 "
;
62
inspOptions+=
"--d-distr volume "
;
63
//inspOptions+= "--min-z 1.e-4 --max-z 0.33 ";
64
inspOptions+=
"--min-distance 100 --max-distance 1100000 "
;
65
66
// the first parameter a the name of MDC defined by the user
67
MDC->SetInspiral(
"IMRPhenomBthreePointFivePN"
,inspOptions);
68
69
}
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
net
network ** net
NOISE_MDC_SIMULATION.
Definition:
CWB_Plugin_HEN_BKG_Config.C:4
CWB::config
Definition:
config.hh:73
CWB_Plugin.h
CWB::mdc
Definition:
mdc.hh:216
network
Definition:
network.hh:41
seed
int seed
Definition:
CWB_Plugin_HEN_BKG_Config.C:13
gIFACTOR
int gIFACTOR
Definition:
cbc_plots_sim4.C:115
inspOptions
TString inspOptions
Definition:
CWB_Plugin_InjectCBC_Config.C:12
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