8 #define TREE_NAME "waveburst" 14 owfile.ReplaceAll(
".root",
".C_newrho.root");
15 cout <<
"owave : " << owfile << endl;
16 cout <<
"iwave : " << iwfile << endl;
20 omfile.ReplaceAll(
".root",
".lst");
21 omfile.ReplaceAll(
"wave_",
"merge_");
22 cout <<
"omerge : " << omfile << endl;
25 imfile.ReplaceAll(
".C_newrho.lst",
".lst");
26 cout <<
"imerge : " << imfile << endl;
28 sprintf(cmd,
"cd merge;ln -sf ../%s ../%s",imfile.Data(),omfile.Data());
34 olfile.ReplaceAll(
"wave_",
"live_");
35 cout <<
"olive : " << olfile << endl;
38 ilfile.ReplaceAll(
".C_newrho.root",
".root");
39 cout <<
"ilive : " << ilfile << endl;
41 sprintf(cmd,
"cd merge;ln -sf ../%s ../%s",ilfile.Data(),olfile.Data());
47 oMfile.ReplaceAll(
"wave_",
"mdc_");
48 cout <<
"omdc : " << oMfile << endl;
51 iMfile.ReplaceAll(
".C_newrho.root",
".root");
52 cout <<
"imdc : " << iMfile << endl;
55 sprintf(cmd,
"ln -sf %s %s",iMfile.Data(),oMfile.Data());
56 sprintf(cmd,
"cd merge;ln -sf ../%s ../%s",iMfile.Data(),oMfile.Data());
63 itree->Draw(
"rho[1]:penalty",
"",
"goff");
64 Int_t
nentries = (Int_t)itree->GetSelectedRows();
66 float*
irho =
new float[2];
67 itree->SetBranchAddress(
"rho", irho);
68 float* inetcc =
new float[4];
69 itree->SetBranchAddress(
"netcc", inetcc);
71 itree->SetBranchAddress(
"penalty", &ipenalty);
73 TFile
f(owfile,
"recreate");
74 TTree *
otree = (TTree*)itree->CloneTree(0);
76 float* orho =
new float[2];
77 otree->SetBranchAddress(
"rho", orho);
80 if (
i%100000==0 &&
i>0) cout <<
"write entry : " <<
i <<
"/" << nentries << endl;
84 orho[0] = irho[0]*sqrt(ipenalty);
85 orho[1] = irho[1]*sqrt(ipenalty);
cout<< "SNR "<< xsnr<< endl;wavearray< double > f
void ChangeRhoStatistic(TString iwfile, bool simulation=false)
sprintf(tfres,"(1/%g)x(%g) (sec)x(Hz)", 2 *df, df)