Added Get function
This commit is contained in:
parent
315620c126
commit
2d6415c86f
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue