Rev 25 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
25 | f9daq | 1 | #ifndef __RTUtil__ |
2 | #define __RTUtil__ |
||
3 | |||
4 | #include "TROOT.h" |
||
5 | #include "TCanvas.h" |
||
6 | #include "TPad.h" |
||
7 | #include "TPaveLabel.h" |
||
8 | #include "TStyle.h" |
||
9 | #include "TDatime.h" |
||
10 | |||
70 | f9daq | 11 | |
12 | |||
25 | f9daq | 13 | //########################################################################################## |
14 | // nastavi nastavitve izrisa, klicem z RTSetStyle(gStyle) |
||
15 | void RTSetStyle(TStyle *style); |
||
16 | //########################################################################################## |
||
17 | // poenostavi delo s TCanvas |
||
18 | class RTCanvas |
||
19 | { |
||
70 | f9daq | 20 | |
25 | f9daq | 21 | public: |
22 | RTCanvas(); |
||
23 | RTCanvas(char *w_title, char *c_title, int x_min, int y_min, int x_size, int y_size); |
||
24 | |||
25 | void Divide(int nx, int ny); |
||
70 | f9daq | 26 | void Divide(int np); |
25 | f9daq | 27 | TPad* cd(int i); |
28 | void SaveAs(const char *filename); |
||
70 | f9daq | 29 | void Update(); |
30 | protected: |
||
31 | TCanvas *can; |
||
32 | TPad *pad; |
||
33 | TPaveLabel *title, *date; |
||
25 | f9daq | 34 | }; |
35 | //########################################################################################## |
||
36 | |||
37 | #endif |
||
38 | |||
39 | |||
40 |