Logo coherent WaveBurst  
Library Reference Guide
Logo
TestDrawDistributions.C
Go to the documentation of this file.
1 // Draw sky distributions
2 // Author : Gabriele Vedovato
3 //
4 #include <vector>
5 
7 
8  #define N_IFO 3
9 
10  //TString ifo[N_IFO]={"L1","H1","V1"};
11  TString ifo[N_IFO]={"L1","H1","VIRGO"};
12  CWB::mdc MDC(N_IFO,ifo);
13 
14  vector<mdcpar> par(3);
15 /*
16  par.resize(3);
17  par[0].name="entries"; par[0].value=100000;
18  par[1].name="rho_min"; par[1].value=5;
19  par[2].name="rho_max"; par[2].value=10;
20  MDC.SetSkyDistribution(MDC_RANDOM,par);
21 */
22 
23  //par.resize(1);
24  //par[0].name="entries"; par[0].value=100000;
25  //MDC.SetSkyDistribution(MDC_MNGD,par);
26 /*
27  par.resize(1);
28  par[0].name="distance_thr"; par[0].value=100;
29  MDC.SetSkyDistribution(MDC_GWGC,"../data/GWGCCatalog_Rev1d7.txt",par);
30 */
31 /*
32  par.resize(3);
33  par[0].name="theta"; par[0].value=30;
34  par[1].name="phi"; par[1].value=60;
35  par[2].name="rho"; par[2].value=1;
36  MDC.SetSkyDistribution(MDC_EARTH_FIX,par);
37 */
38 
39  MDC.SetSkyDistribution(MDC_LOGFILE,"GHLTV-GWGC_v1-968600000-300000.log",par);
40 
41 
42  //MDC.DrawSkyDistribution("skyplot","","geographic",2,true);
43  MDC.DrawSkyDistribution("skyplot","","celestial",2,true);
44  //MDC.DrawSkyDistribution("skyplot","","celestial",2,false);
45  //MDC.DrawSkyDistribution("skyplot","","geographic",2,false);
46 
47  //exit(0);
48 }
#define N_IFO
TString("c")
CWB::mdc * MDC
char ifo[NIFO_MAX][8]
void SetSkyDistribution(MDC_DISTRIBUTION sky_distribution, vector< mdcpar > par, int seed=0, bool add=false)
Definition: mdc.cc:3444
void TestDrawDistributions()
void DrawSkyDistribution(TString name="skymap", TString projection="", TString coordinate="Geographic", double resolution=2, bool background=true)
Definition: mdc.cc:4164
Definition: mdc.hh:248
vector< mdcpar > par