Logo Coherent WaveBurst  
Reference Guide
Logo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DrawEBHH.C
Go to the documentation of this file.
1 // This macro use getEBBH & display eBBH hp,hx
2 
3 #define DRAW_TIME
4 //#define DRAW_FFT
5 //#define SAVE_PLOT
6 
7 {
9  getEBBH(16.395803, 19.401641, 25.317980, 0.24891893, hp, hx);
10 
11  // the distance of source is G*M/c^2 meters
16  double distance_source_Kpc = G*M/(c*c)/pc/1.e3;
17 
18  // rescale hp,hx to 10 Kpc
19  hp*=distance_source_Kpc/10;
20  hx*=distance_source_Kpc/10;
21 
23 
24 #ifdef DRAW_TIME
25  gw.Draw();
26  gw.Draw(&hx,GWAT_TIME,"SAME",kRed);
27 #endif
28 
29 #ifdef DRAW_FFT
30  gw.Draw(GWAT_FFT);
31  gw.Draw(&hx,GWAT_FFT,"SAME",kRed);
32 #endif
33 
34 #ifdef SAVE_PLOT
35  watplot* plot = gw.GetWATPLOT();
36 
37  char gtitle[256];
38  sprintf(gtitle,"eBBH : hp(black) - hx(red)");
39 #ifdef DRAW_TIME
40  plot->gtitle(gtitle,"time(sec)","amplitude");
41  TString gfile="eBHH_time_plot.png";
42 #endif
43 #ifdef DRAW_FFT
44  plot->gtitle(gtitle,"freq(hz)","amplitude");
45  TString gfile="eBHH_freq_plot.png";
46 #endif
47 
48  // save plot to file
49  (*plot) >> gfile;
50 
51  exit(0);
52 #endif
53 
54 }
double pc
Definition: DrawEBHH.C:15
void gtitle(TString title="", TString xtitle="", TString ytitle="")
Definition: watplot.cc:1237
double M
Definition: DrawEBHH.C:13
TString("c")
double SolarMass()
Definition: constants.hh:184
gw Draw & hx
Definition: DrawEBHH.C:26
plot gtitle(gtitle,"frequency (Hz)","strain/#sqrt{Hz}")
getEBBH(16.395803, 19.401641, 25.317980, 0.24891893, hp, hx)
gWSeries< double > gw(w)
x plot
double G
Definition: DrawEBHH.C:12
double Parsec()
Definition: constants.hh:188
double GravitationalConstant()
Definition: constants.hh:113
Definition: gwat.hh:12
sprintf(tfres,"(1/%g)x(%g) (sec)x(Hz)", 2 *df, df)
double distance_source_Kpc
Definition: DrawEBHH.C:16
TString gfile
double c
Definition: DrawEBHH.C:14
hp *hx *gwavearray< double > gw & hp
Definition: DrawEBHH.C:22
exit(0)
double SpeedOfLightInVacuo()
Definition: constants.hh:96