Logo coherent WaveBurst  
Library Reference Guide
Logo
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 
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;
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  // ---------------------------------------------------------------------------
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 
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 
CWB::config * cfg
TString("c")
CWB::mdc * MDC
network ** net
NOISE_MDC_SIMULATION.
Definition: mdc.hh:248
TString inspOptions
void CWB_PluginConfig()
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)