Subversion Repositories f9daq

Rev

Go to most recent revision | Details | 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
 
11
//##########################################################################################
12
// nastavi nastavitve izrisa, klicem z RTSetStyle(gStyle)
13
void RTSetStyle(TStyle *style);
14
//##########################################################################################
15
 
16
// poenostavi delo s TCanvas
17
class RTCanvas
18
{
19
protected:
20
        TCanvas *can;
21
        TPad *pad;
22
        TPaveLabel *title, *date;
23
public:
24
        RTCanvas();
25
        RTCanvas(char *w_title, char *c_title, int x_min, int y_min, int x_size, int y_size);
26
        ~RTCanvas() {
27
          delete can;
28
          delete pad;
29
          delete title;
30
          delete date;
31
        }
32
 
33
        void Divide(int nx, int ny);
34
        TPad* cd(int i);
35
        void SaveAs(const char *filename);
36
};
37
//##########################################################################################
38
 
39
 
40
#endif
41
 
42
 
43