13 #define ODIR "brst_o1_hf" // output plot directory 19 gROOT->SetBatch(
true);
30 double F_Q3[5] = {849,1615,2000,2477,3067};
31 for(
int n=0;
n<5;
n++) {
32 par[0].name=
"frequency"; par[0].value=F_Q3[
n];
33 par[1].name=
"Q"; par[1].value=3.;
42 double F_Q9[15] = {849,1053,1304,1415,1615,1797,2000,2226,2477,2756,3067,3413,3799,4225,5000};
43 double Q_Q9[15] = {8.9,9,9,9,9,9,9,9,9,9,9,9,9,9,9};
44 for(
int n=0;
n<15;
n++) {
45 par[0].name=
"frequency"; par[0].value=F_Q9[
n];
46 par[1].name=
"Q"; par[1].value=Q_Q9[
n];
47 if((F_Q9[
n]==1053)||(F_Q9[
n]==2000)||(F_Q9[
n]==3067)||(F_Q9[
n]==5000)) {
59 double F_Q100[6] = {849,1615,2000,2477,3067,5000};
60 for(
int n=0;
n<6;
n++) {
61 par[0].name=
"frequency"; par[0].value=F_Q100[
n];
62 par[1].name=
"Q"; par[1].value=100.;
71 double F_WNB[7] = {1000,2000,3500,1000,1000,2000,3500};
72 double B_WNB[7] = {10,100,100,1000,1000,1000,1000};
73 double D_WNB[7] = {0.1,0.1,0.1,0.1,0.01,0.01,0.01};
74 for(
int n=0;
n<7;
n++) {
75 par[0].name=
"frequency"; par[0].value=F_WNB[
n];
76 par[1].name=
"bandwidth"; par[1].value=B_WNB[
n];
77 par[2].name=
"duration"; par[2].value=D_WNB[
n];
78 for(
int m=0;
m<30;
m++) {
79 par[3].name=
"pseed"; par[3].value=100000+
n*100+
m;
80 par[4].name=
"xseed"; par[4].value=100001+
n*100+
m;
81 par[5].name=
"mode"; par[5].value=0;
91 double F_T200[3] = {1590,2090,2590};
92 for(
int n=0;
n<3;
n++) {
93 par[0].
name=
"frequency"; par[0].value=F_T200[
n];
94 par[1].name=
"tau"; par[1].value=0.2;
104 double F2_Q9[3] = {2000,3067,5000};
105 for(
int n=0;
n<3;
n++) {
106 par[0].name=
"frequency"; par[0].value=F2_Q9[
n];
107 par[1].name=
"tau"; par[1].value=9./(TMath::TwoPi()*F2_Q9[
n]);
108 sprintf(wf_name,
"RDE%.0fQ9",F2_Q9[
n]);
117 for(
int n=0;
n<wfList.size();
n++) {
123 cout <<
"Error : Waveform " << wf.
name <<
" not exist in the MDC pool !!!" << endl << endl;
127 cout <<
n <<
" " << wf.
name <<
" size : " << wf.
hp.
size() <<
" rate : " << wf.
hp.
rate()
135 gSystem->mkdir(TString::Format(
"%s",
ODIR));
136 gSystem->mkdir(TString::Format(
"%s/plots",
ODIR));
141 if(plot) plot->
graph[0]->SetTitle(TString::Format(
"%s : h+(black), hx(red))",wf.
name.Data()));
142 if(plot) plot->
canvas->SaveAs(TString::Format(
"%s/plots/%s_TIME.png",
ODIR,wf.
name.Data()));
147 plot->
graph[0]->GetHistogram()->GetXaxis()->SetRangeUser(512,5120);
148 if(plot) plot->
graph[0]->SetTitle(TString::Format(
"%s : h+(black), hx(red))",wf.
name.Data()));
149 if(plot) plot->
canvas->SaveAs(TString::Format(
"%s/plots/%s_FFT.png",
ODIR,wf.
name.Data()));
152 TString texiName=TString::Format(
"%s/html_index.texi",
ODIR);
154 if(!overwrite) gSystem->Exit(0);
157 out <<
"@c include texi macros" << endl;
158 out <<
"@include macros.texi" << endl;
159 out <<
"@include mathjax.texi" << endl << endl;
160 for(
int i=0;
i<wfList.size();
i++) {
161 out <<
"@center @txtfont{"<<wfList[
i].name<<
", red, h1}" << endl;
162 out <<
"@multitable @columnfractions .5 .5" << endl;
163 out <<
"@item @center @displayimage{../plots,"<<TString::Format(
"%s_TIME",wfList[
i].
name.Data())<<
",480}"<<endl;
164 out <<
"@tab @center @displayimage{../plots,"<<TString::Format(
"%s_FFT",wfList[
i].
name.Data())<<
",480}"<<endl;
165 out <<
"@end multitable" << endl;
173 TString exec_cmd = TString::Format(
"%s/cwb_mkhtml.csh %s wheader",
174 cwb_scripts.Data(),texiName.Data());
175 int ret=gSystem->Exec(exec_cmd);
177 cout <<
"Make_BRST_O1_HF.C : Error while executing cwb_mkhtml html_index.texi !!!" << endl;
180 cout << endl <<
"New html file created : " <<
ODIR <<
"/html_index/index.html" << endl << endl;
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
vector< waveform > GetWaveformList()
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)