Logo Coherent WaveBurst  
Reference Guide
Logo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 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;
27 
28  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 
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 }
CWB::config * cfg
Definition: TestCWB_Plugin.C:5
TString("c")
CWB::mdc * MDC
network ** net
NOISE_MDC_SIMULATION.
Definition: mdc.hh:216
int gIFACTOR
TString inspOptions
#define CWB_PLUGIN_IMPORT(TYPE, VAR)
Definition: CWB_Plugin.h:6
sprintf(tfres,"(1/%g)x(%g) (sec)x(Hz)", 2 *df, df)