Subversion Repositories f9daq

Rev

Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

#ifndef __RTUtil__
#define __RTUtil__

#include "TROOT.h"
#include "TCanvas.h"
#include "TPad.h"
#include "TPaveLabel.h"
#include "TStyle.h"
#include "TDatime.h"

//##########################################################################################
// nastavi nastavitve izrisa, klicem z RTSetStyle(gStyle)
void RTSetStyle(TStyle *style);
//##########################################################################################

// poenostavi delo s TCanvas
class RTCanvas
{
protected:
        TCanvas *can;
        TPad *pad;
        TPaveLabel *title, *date;
public:
        RTCanvas();
        RTCanvas(char *w_title, char *c_title, int x_min, int y_min, int x_size, int y_size);
        ~RTCanvas() {
          delete can;
          delete pad;
          delete title;
          delete date;
        }
       
        void Divide(int nx, int ny);
        TPad* cd(int i);
        void SaveAs(const char *filename);
};
//##########################################################################################


#endif