Logo Coherent WaveBurst  
Reference Guide
Logo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CWB_Plugin_MDC_OTF_Config_eBBH.C
Go to the documentation of this file.
1 //!NOISE_MDC_SIMULATION
2 // Config Plugin to generate injected 'on the fly' eBBH MDC
3 
4 {
5  #define EBBH_LIST
6 
7  cout << "Execute CWB_Plugin_MDC_OTF_Config_eBBH.C ..." << endl;
8 
9  network** net;
11 
12  int seed = (*net)->nRun; // WARNING : seed must be the same for each detector within the same job
13 
16 
17  char wf_name[256];
19  vector<mdcpar> par;
20 
21 #ifdef EBBH_LIST
22  // list of eBBH parameters are read from ascii file
23  // format : one event for each line
24  // -> m1 m2 rp0 e0 (hp,hx are generated 'On The Fly')
25  // see macro trunk/tools/eBBH/tutorials/CreateListEBBH.C
26  par.resize(1);
27  par[0].name="macro/eBBH_3.5e+06_5_25_2.lst"; // ascii eBBH list file
28  MDC->AddWaveform(MDC_EBBH, par);
29 #else
30  // list of eBBH parameters are read from root tree
31  // format : one event for each entry
32  // -> id m1 m2 rp0 e0 hp hx
33  // see macro trunk/tools/eBBH/tutorials/CreateListEBBH.C
34  // see macro trunk/tools/eBBH/tutorials/List2RootEBBH.C
35  par.resize(2);
36  par[0].name="macro/eBBH.root"; // root eBBH list file
37  par[1].name="rp0>26"; // selection cut (optional)
38  MDC->AddWaveform(MDC_EBBH, par);
39 #endif
40  MDC->Print(0);
41 
42  // --------------------------------------------------------
43  // define injection parameters
44  // --------------------------------------------------------
45  MDC->SetInjRate(0.005); // No of injections per second
46  MDC->SetInjJitter(10.0); // +- injection time
47 
48  // --------------------------------------------------------
49  // define sky distribution
50  // source are uniformely randomly generated between 1Mpc and 15Mpc
51  // --------------------------------------------------------
52  par.resize(4);
53  par[0].name="entries"; par[0].value=200000;
54  par[1].name="rho_min"; par[1].value=1000; // min rho // Kpc
55  par[2].name="rho_max"; par[2].value=15000; // max rho // Kpc
56  par[3].name="iota" ; par[3].value=-1; // the angle iota (deg) is the inclination of the system
57  // which originates the burst with respect to the line of sight
58  MDC->SetSkyDistribution(MDC_RANDOM,par,seed);
59 }
60 
network ** net
NOISE_MDC_SIMULATION.
Definition: mdc.hh:189
void SetInjRate(double inj_rate=MDC_INJ_RATE)
Definition: mdc.hh:279
mdcid AddWaveform(MDC_TYPE mdc_type, vector< mdcpar > par, TString uname="")
Definition: mdc.cc:445
void Print(int level=0)
Definition: mdc.cc:2707
void SetSkyDistribution(MDC_DISTRIBUTION sky_distribution, vector< mdcpar > par, int seed=0, bool add=false)
Definition: mdc.cc:3415
Definition: mdc.hh:216
CWB::mdc * MDC
vector< mdcpar > par
void SetInjJitter(double inj_jitter=MDC_INJ_JITTER)
Definition: mdc.hh:285
char wf_name[256]
CWB_PLUGIN_IMPORT(network **, net)
TString name
Definition: mdc.hh:178
Definition: mdc.hh:129