7 TFile* efile =
new TFile(fName);
9 cout <<
"CWB::mdc::AddWaveform - Error opening root file : " << fName.Data() << endl;
18 TTree* etree = (TTree *) efile->Get(
"ebbh");
20 cout <<
"CWB::mdc::AddWaveform - file : " << fName.Data()
21 <<
" not contains tree ebbh" << endl;
24 etree->SetBranchAddress(
"id",&
id);
25 etree->SetBranchAddress(
"m1",&m1);
26 etree->SetBranchAddress(
"m2",&m2);
27 etree->SetBranchAddress(
"rp0",&rp0);
28 etree->SetBranchAddress(
"e0",&e0);
29 etree->SetBranchAddress(
"hp",&hp);
30 etree->SetBranchAddress(
"hx",&hx);
32 int esize = etree->GetEntries();
35 cout <<
"entry not present in the tree" << endl;
39 etree->GetEntry(entry);
40 cout <<
id <<
" " << m1 <<
" " << m2 <<
" " << rp0 <<
" " << e0 << endl;
58 sprintf(gtitle,
"eBBH : hp(black) - hx(red)");
60 plot->
gtitle(gtitle,
"time(sec)",
"amplitude");
64 plot->
gtitle(gtitle,
"freq(hz)",
"amplitude");
65 TString gfile=
"eBHH_freq_plot.png";
void gtitle(TString title="", TString xtitle="", TString ytitle="")
void DrawRootEBBH(TString fName, int entry)
plot gtitle(gtitle,"frequency (Hz)","strain/#sqrt{Hz}")
sprintf(tfres,"(1/%g)x(%g) (sec)x(Hz)", 2 *df, df)
void Draw(GWAT_DRAW type=GWAT_TIME, TString options="ALP", Color_t color=kBlack)