BM1D/include/Plotter.hh

41 lines
706 B
C++
Raw Normal View History

2017-10-30 09:41:11 +01:00
#ifndef Plotter_h
#define Plotter_h 1
#include <iostream>
#include <string>
#include <fstream>
#include <cmath>
#include "TROOT.h"
#include "TF1.h"
#include "TH1.h"
#include "TH2.h"
#include "TH3.h"
#include "TNtuple.h"
#include "TFile.h"
#include "TMath.h"
#include "TCanvas.h"
#include "TGraph.h"
#include "TTree.h"
2017-10-31 13:31:45 +01:00
#include "TMultiGraph.h"
2017-10-30 09:41:11 +01:00
2017-10-31 13:31:45 +01:00
class Plotter
{
2017-10-30 09:41:11 +01:00
public:
2017-10-31 13:31:45 +01:00
Plotter(bool draw);
2017-10-31 15:20:27 +01:00
~Plotter();
void Plot(Int_t numRuns, Int_t nSteps, const std::vector<Double_t> & t, const std::vector<Double_t> & x);
2017-10-31 15:20:27 +01:00
TMultiGraph * GetTmultiGraph();
2017-10-31 13:31:45 +01:00
static unsigned int IDCounter;
2017-10-30 09:41:11 +01:00
private:
2017-10-31 13:31:45 +01:00
bool draw;
TMultiGraph *mg;
2017-10-30 09:41:11 +01:00
TGraph* g1;
TCanvas* canv;
Double_t tl,xl;
unsigned int ID;
2017-10-30 09:41:11 +01:00
};
#endif