29 par[0].name=
"frequency";
30 par[1].name=
"amplitude"; par[1].value=
AMPLITUDE;
33 if(
n==3) par[0].value=50;
34 if(
n==2) par[0].value=150;
35 if(
n==1) par[0].value=500;
36 if(
n==0) par[0].value=1500;
38 cout <<
n <<
" " << mdcID[
n].
name << endl;
49 if(wf[
n].status==
false) {
50 cout <<
"Error : Waveform " << mdcID[
n].
name <<
" not exist in the MDC pool !!!" << endl << endl;
60 cout << wf[
n].
name <<
"\tfreq : " << wf[
n].
par[0].value <<
"\tsize : " << wf[
n].
hp.
size()
61 <<
"\trate : " << wf[
n].
hp.
rate() <<
"\tstart : " << (
int)wf[
n].
hp.
start() <<
"\thrss : " << hrss << endl;
67 int color[
nMDC] = {kGreen, kBlue, kRed, kBlack};
72 double hleg = 0.8-nMDC*0.05;
76 char title[256];
sprintf(title,
"Cosmic String Cusps vs High frequency cut-off (amplitude=%g)",
AMPLITUDE);
82 plot->
graph[0]->SetTitle(title);
84 plot->
graph[0]->GetHistogram()->GetXaxis()->SetRangeUser(4.49,4.51);
85 plot->
graph[0]->GetHistogram()->GetYaxis()->SetRangeUser(1.5,4.5);
86 gfile =
"CosmicStringCusps_TimeZoom.png";
88 plot->
graph[0]->GetHistogram()->GetXaxis()->SetRangeUser(4,5);
89 plot->
graph[0]->GetHistogram()->GetYaxis()->SetRangeUser(-1,5);
90 gfile =
"CosmicStringCusps_Time.png";
93 plot->
graph[
n]->SetLineWidth(2);
101 plot->
graph[0]->GetHistogram()->GetXaxis()->SetRangeUser(10,2048);
102 plot->
graph[0]->GetHistogram()->GetYaxis()->SetRangeUser(1
e-5,0.1);
103 plot->
graph[0]->SetTitle(title);
105 plot->
graph[
n]->SetLineWidth(2);
106 gfile =
"CosmicStringCusps_Frequency.png";
110 leg =
new TLegend(0.6120401,hleg,0.9615385,0.8721805,NULL,
"brNDC");
111 leg->SetBorderSize(1);
112 leg->SetTextAlign(22);
113 leg->SetTextFont(12);
114 leg->SetLineColor(1);
115 leg->SetLineStyle(1);
116 leg->SetLineWidth(1);
117 leg->SetFillColor(0);
118 leg->SetFillStyle(1001);
119 leg->SetTextSize(0.04);
120 leg->SetLineColor(kBlack);
121 leg->SetFillColor(kWhite);
122 for(
int n=nMDC-1;
n>=0;
n--) {
125 leg->AddEntry(plot->
graph[
n],legLabel,
"lp");
130 if(plot) plot->
canvas->SaveAs(gfile.Data());
136 stft->
GetHistogram()->GetXaxis()->SetRangeUser(4.4,4.6);
watplot * Draw(TString name, int id=0, TString polarization="hp", MDC_DRAW type=MDC_TIME, TString options="ALP", Color_t color=kBlack)
virtual void rate(double r)
std::vector< TGraph * > graph
virtual void start(double s)
mdcid AddWaveform(MDC_TYPE mdc_type, vector< mdcpar > par, TString uname="")
virtual size_t size() const
waveform GetWaveform(int ID, int id=0)
sprintf(tfres,"(1/%g)x(%g) (sec)x(Hz)", 2 *df, df)