Rev 193 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 193 | Rev 266 | ||
---|---|---|---|
Line 10... | Line 10... | ||
10 | 10 | ||
11 | TH1* h1 = new TH1I("h1","title",100, 0, 10); |
11 | TH1* h1 = new TH1I("h1","title",100, 0, 10); |
12 | h1->FillRandom("gaus",10000); |
12 | h1->FillRandom("gaus",10000); |
13 | TString json = TBufferJSON::ConvertToJSON(h1); |
13 | TString json = TBufferJSON::ConvertToJSON(h1); |
14 | cout << "Data" << json.Data() << endl; |
14 | cout << "Data" << json.Data() << endl; |
- | 15 | FILE *fp=fopen("hpx.json","wb"); |
|
- | 16 | if (fp){ |
|
- | 17 | json.Puts(fp); |
|
- | 18 | fclose(fp); |
|
- | 19 | } |
|
15 | EOL |
20 | EOL |
16 | for ((i=0;i<5;i++)) ; do echo $i; sleep 1; done; |
21 | for ((i=0;i<5;i++)) ; do echo $i; sleep 1; done; |
17 | 22 | ||
18 | 23 | ||
19 | 24 |