Rev 193 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
193 | f9daq | 1 | #!/bin/bash |
2 | #source /home/rok/root/bin/thisroot.sh; |
||
3 | source /opt/root/bin/thisroot.sh; |
||
4 | root -b <<EOL |
||
5 | |||
6 | int bla(int c){ |
||
7 | return c*c; |
||
8 | } |
||
9 | printf("cccc %d\n", bla(10)); |
||
10 | |||
11 | TH1* h1 = new TH1I("h1","title",100, 0, 10); |
||
12 | h1->FillRandom("gaus",10000); |
||
13 | TString json = TBufferJSON::ConvertToJSON(h1); |
||
14 | cout << "Data" << json.Data() << endl; |
||
266 | f9daq | 15 | FILE *fp=fopen("hpx.json","wb"); |
16 | if (fp){ |
||
17 | json.Puts(fp); |
||
18 | fclose(fp); |
||
19 | } |
||
193 | f9daq | 20 | EOL |
21 | for ((i=0;i<5;i++)) ; do echo $i; sleep 1; done; |
||
22 | |||
23 | |||
24 |