Added Get function
This commit is contained in:
parent
315620c126
commit
2d6415c86f
|
@ -35,6 +35,8 @@ public:
|
||||||
|
|
||||||
MuSigma GetMuSigma(Int_t index);
|
MuSigma GetMuSigma(Int_t index);
|
||||||
|
|
||||||
|
Int_t GetLatticeSize(); //number of points in the lattice
|
||||||
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Int_t _nop; //number of points in [mu-_percent; mu+_percent]
|
Int_t _nop; //number of points in [mu-_percent; mu+_percent]
|
||||||
|
@ -54,6 +56,9 @@ private:
|
||||||
myLattice->SetNop(10);
|
myLattice->SetNop(10);
|
||||||
myLattice->SetLattice(myAnalyse->GetMu(), myAnalyse->GetSigma());
|
myLattice->SetLattice(myAnalyse->GetMu(), myAnalyse->GetSigma());
|
||||||
|
|
||||||
|
mu_value = myLattice->GetMuSigma(i).mu;
|
||||||
|
sigma_value = myLattice->GetMuSigma(i).sigma;
|
||||||
|
|
||||||
************************************************************************/
|
************************************************************************/
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#include "Lattice.hh"
|
#include "Lattice.hh"
|
||||||
|
|
||||||
|
|
||||||
Lattice::Lattice() : _nop(100), _percent(0.2){;}
|
Lattice::Lattice() : _nop(10), _percent(0.2){;}
|
||||||
|
|
||||||
Lattice::~Lattice(){;}
|
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){
|
void Lattice::SetLattice(Double_t mu_est, Double_t sigma_est){
|
||||||
|
|
||||||
|
@ -67,8 +72,6 @@ void Lattice::SetLattice(Double_t mu_est, Double_t sigma_est){
|
||||||
|
|
||||||
loc_mu += dm;
|
loc_mu += dm;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue