BM1D/include/BM1DProcess.hh

36 lines
620 B
C++

#ifndef BM1DProcess_h
#define BM1DProcess_h 1
#include <iostream>
#include <string>
#include <fstream>
#include <cmath>
#include "TRandom.h"
class BM1DProcess {
public:
BM1DProcess(Int_t n); //n is the number of steps
~BM1DProcess();
void SetP0(Double_t p0_new){p0 = p0_new;}
void SetP1(Double_t p1_new){p1 = p1_new;}
void Init();
void Run();
std::vector<Double_t> GetT(){return t;}
std::vector<Double_t> GetX(){return x;}
private:
Int_t nSteps;
Double_t p0,p1,p2,p3,p4;
TRandom* randomGenerator;
Double_t rand1;
std::vector<Double_t> t;
std::vector<Double_t> x;
};
#endif