fixed Plotter, fixed default value in BM1D.cc

This commit is contained in:
Korcsmaros Berta 2017-10-31 14:03:30 +01:00
parent 6df0253d50
commit b2322306b5
2 changed files with 16 additions and 4 deletions

15
BM1D.cc
View File

@ -35,6 +35,19 @@ int main(int argc, char* argv[])
else
{
//default runs with less parameters
random_type = 'l';
nSteps = 1000;
nRuns = 10;
p0 = 0.5;
p1 = 0;
x1 = 20;
x2 = 30;
mu1 = 2;
mu2 = 2;
sigma1 = 0.3;
sigma2 = 1;
vis = 1;
typeOfRun = 1;
}
@ -55,7 +68,7 @@ int main(int argc, char* argv[])
break;
}
Plotter* myPlotter = new Plotter(true);
Plotter* myPlotter = new Plotter(vis==1);
myPlotter->Plot(nRuns, nSteps, myBM1DProcess->GetT(), myBM1DProcess->GetX());
App.Run();

View File

@ -1,13 +1,12 @@
#include "Plotter.hh"
Plotter::Plotter(bool draw)
Plotter::Plotter(bool draw_par = false)
{
draw = draw_par;
if(draw)
{
draw = draw;
canv = new TCanvas("canc","display",800,400);
}
//g1 = new TGraph();
mg = new TMultiGraph();
}
void Plotter::Plot(Int_t numRuns, Int_t nSteps, std::vector<Double_t> t, std::vector<Double_t> x)