6 #define DRAW_WIGNER_VILLE
21 inspOptions =
"--time-step 60.0 --time-interval 3 ";
22 inspOptions+=
"--dir . ";
23 inspOptions+=
"--l-distr random ";
24 inspOptions+=
"--gps-start-time 931072130 --gps-end-time 933491330 ";
25 inspOptions+=
"--d-distr volume --m-distr totalMassRatio --i-distr uniform ";
26 inspOptions+=
"--f-lower 10.000000 ";
27 inspOptions+=
"--min-mass1 25.000000 --max-mass1 225.000000 ";
28 inspOptions+=
"--min-mass2 25.000000 --max-mass2 225.000000 ";
29 inspOptions+=
"--min-mtotal 50.000000 --max-mtotal 250.000000 ";
30 inspOptions+=
"--min-mratio 0.25 --max-mratio 1.000000 ";
31 inspOptions+=
"--min-distance 1000000.0 --max-distance 1500000.0 ";
32 inspOptions+=
"--approximant EOBNRv2pseudoFourPN --disable-spin ";
33 inspOptions+=
"--taper-injection start --seed 123456789 ";
34 inspOptions+=
"--output inspirals.xml ";
37 MDC.SetInspiral(
"EOBNRv2",inspOptions);
40 TString inspOptions=
"--xml inspirals.xml";
41 MDC.SetInspiral(
"EOBNRv2",inspOptions);
46 cout <<
"size : " << hp.
size() <<
" rate : " << hp.
rate() <<
" start : " << (
int)hp.
start() << endl;
61 #ifdef DRAW_IFREQUENCY
67 #ifdef DRAW_WIGNER_VILLE
73 int N = sqrt(wvhp.
size());
74 double dt = 1./wvhp.
rate();
77 TH2D* h2 =
new TH2D(
"h2",
"h2",N,0,N*dt,N,0,N*df);
79 h2->SetTitle(
"Wigner Ville Transform");
80 h2->GetXaxis()->SetTitle(
"Time (sec)");
81 h2->GetYaxis()->SetTitle(
"freq (Hz)");
83 for(
int n=0;
n<
N;
n++) {
84 for(
int m=0;
m<
N;
m++) {
85 if(wvhp[
n*N+
m]>0) h2->Fill(
m*dt,
n*df,wvhp[
n*N+
m]);
99 for (
int i=1;
i<hp.
size()-1;
i++) {
101 if((amplitude!=0)&&(omega!=0)) {
102 t[
size]=dt*(i-1)-(phase/omega);
104 f[
size]=omega/TMath::TwoPi();
109 #ifdef DRAW_ENVELOPE_EXTREME
111 agr->SetLineColor(kBlue);
112 agr->SetMarkerColor(kBlue);
113 agr->SetMarkerStyle(20);
114 agr->SetMarkerSize(1);
115 fgr->SetTitle(
"Envelope");
116 agr->GetHistogram()->GetXaxis()->SetTitle(
"Time (sec)");
117 agr->GetHistogram()->GetYaxis()->SetTitle(
"amplitude (Hz)");
122 #ifdef DRAW_FREQUENCY_EXTREME
124 fgr->SetLineColor(kRed);
125 fgr->SetMarkerColor(kRed);
126 fgr->SetMarkerStyle(20);
127 fgr->SetMarkerSize(1);
128 fgr->SetTitle(
"Frequency");
129 fgr->GetHistogram()->GetYaxis()->SetRangeUser(0,256);
130 fgr->GetHistogram()->GetXaxis()->SetTitle(
"Time (sec)");
131 fgr->GetHistogram()->GetYaxis()->SetTitle(
"freq (Hz)");
wavearray< double > t(hp.size())
virtual size_t size() const
watplot * Draw(TString name, int id=0, TString polarization="hp", MDC_DRAW type=MDC_TIME, TString options="ALP", Color_t color=kBlack)
cout<< "size : "<< hp.size()<< " rate : "<< hp.rate()<< " start : "<< (int) hp.start()<< endl;hp.start(0);hx.start(0);MDC.Draw(hp, MDC_TIME);wavearray< double > xhp(hp.size()/64)
virtual void rate(double r)
wavearray< double > a(hp.size())
virtual void start(double s)
double fabs(const Complex &x)
wavearray< double > f(hp.size())