Added Get function

This commit is contained in:
Reka Korei 2017-11-02 14:35:30 +01:00
parent 315620c126
commit 2d6415c86f
2 changed files with 13 additions and 5 deletions

View File

@ -35,6 +35,8 @@ public:
MuSigma GetMuSigma(Int_t index);
Int_t GetLatticeSize(); //number of points in the lattice
private:
Int_t _nop; //number of points in [mu-_percent; mu+_percent]
@ -54,6 +56,9 @@ private:
myLattice->SetNop(10);
myLattice->SetLattice(myAnalyse->GetMu(), myAnalyse->GetSigma());
mu_value = myLattice->GetMuSigma(i).mu;
sigma_value = myLattice->GetMuSigma(i).sigma;
************************************************************************/
#endif

View File

@ -1,7 +1,7 @@
#include "Lattice.hh"
Lattice::Lattice() : _nop(100), _percent(0.2){;}
Lattice::Lattice() : _nop(10), _percent(0.2){;}
Lattice::~Lattice(){;}
@ -28,6 +28,11 @@ MuSigma Lattice::GetMuSigma(Int_t index){
}
Int_t Lattice::GetLatticeSize(){
return ms_vect.size();
}
void Lattice::SetLattice(Double_t mu_est, Double_t sigma_est){
@ -65,12 +70,10 @@ void Lattice::SetLattice(Double_t mu_est, Double_t sigma_est){
loc_sigma += ds;
}
loc_mu += dm;
loc_mu += dm;
}
}