Logo coherent WaveBurst  
Library Reference Guide
Logo
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 
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;
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;
32 
33  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 
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 }
CWB::config * cfg
TString("c")
CWB::mdc * MDC
network ** net
NOISE_MDC_SIMULATION.
Definition: mdc.hh:248
TString inspOptions
int * xstart
int gIFACTOR
#define CWB_PLUGIN_IMPORT(TYPE, VAR)
Definition: CWB_Plugin.h:6
sprintf(tfres,"(1/%g)x(%g) (sec)x(Hz)", 2 *df, df)