diff --git a/include/Lattice.hh b/include/Lattice.hh index 5cab229..5f35345 100644 --- a/include/Lattice.hh +++ b/include/Lattice.hh @@ -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 diff --git a/src/Lattice.cc b/src/Lattice.cc index b214aff..d903869 100644 --- a/src/Lattice.cc +++ b/src/Lattice.cc @@ -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; } - + }