From 2d6415c86feb6857223942b2e72c41a2f0cd83bf Mon Sep 17 00:00:00 2001 From: Reka Korei Date: Thu, 2 Nov 2017 14:35:30 +0100 Subject: [PATCH] Added Get function --- include/Lattice.hh | 5 +++++ src/Lattice.cc | 13 ++++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) 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; } - + }