9 for(
int i=0;
i<x1.size();
i++) x1[
i]=
i;
13 for(
int i=0;
i<x2.size();
i++) x2[
i]=
i+1000;
15 TFile *
froot =
new TFile(
"test.root",
"RECREATE");
17 cout <<
"Failed to create file !!! " << endl;
21 x1.Write(
"wavearray<double>");
22 x2.Write(
"wavearray<double>");
25 TFile *
f =
new TFile(
"test.root");
27 cout <<
"Failed to open file test.root !!! " << endl;
35 cout <<
"Object wavearray not exist !!! " << endl;
39 cout << w->
size() << endl;
40 for(
int i=0;
i<10;
i++) cout <<
i <<
" " << w->
data[
i] << endl;
virtual size_t size() const