Go to most recent revision | Details | 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; | 
        ||
| 15 | EOL | 
        ||
| 16 | for ((i=0;i<5;i++)) ; do echo $i; sleep 1; done;  | 
        ||
| 17 | |||
| 18 | |||
| 19 |