Subversion Repositories f9daq

Rev

Rev 31 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
31 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
// poenostavi delo s TCanvas
16
class RTCanvas
17
{
18
protected:
19
        TCanvas *can;
20
        TPad *pad;
21
        TPaveLabel *title, *date;
22
public:
23
        RTCanvas();
24
        RTCanvas(char *w_title, char *c_title, int x_min, int y_min, int x_size, int y_size);
25
 
26
        void Divide(int nx, int ny);
27
        void Divide(int np);
28
        TPad* cd(int i);
29
        void SaveAs(const char *filename);
30
        void Update();
31
};
32
//##########################################################################################
34 f9daq 33
#include "src/RTUtil.cpp"
31 f9daq 34
 
35
#endif
36
 
37
 
38