Changeset 1109 in Sophya for trunk/SophyaLib/HiStats/histos.h
- Timestamp:
- Jul 28, 2000, 6:29:55 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/HiStats/histos.h
r1092 r1109 1 1 // This may look like C code, but it is really -*- C++ -*- 2 2 // 3 // $Id: histos.h,v 1.1 1 2000-07-26 13:15:15 ansari Exp $3 // $Id: histos.h,v 1.12 2000-07-28 16:29:55 ansari Exp $ 4 4 // 5 5 … … 16 16 17 17 namespace SOPHYA { 18 19 class GeneralFit;20 18 21 19 //! 1 dimension histograms … … 58 56 59 57 // get/put dans/depuis un vector 60 void GetAbsc(TVector<r_8>& v) ;61 void GetValue(TVector<r_8>& v) ;62 void GetError2(TVector<r_8>& v) ;63 void GetError(TVector<r_8>& v) ;58 void GetAbsc(TVector<r_8>& v) const; 59 void GetValue(TVector<r_8>& v) const; 60 void GetError2(TVector<r_8>& v) const; 61 void GetError(TVector<r_8>& v) const; 64 62 void PutValue(TVector<r_8>& v, int_4 ierr=0); 65 63 void PutValueAdd(TVector<r_8> &v, int_4 ierr=0); … … 84 82 inline r_8& operator()(int_4 i) {return mData[i];} 85 83 //! retourne "true" si il y a des erreurs stoquees 86 inline bool HasErrors() 84 inline bool HasErrors() const 87 85 {if(mErr2) return true; else return false;} 88 86 //! Retourne l'erreur du bin i … … 130 128 r_8 CleanedMean(r_8& sigma) const; 131 129 int_4 BinPercent(r_8 per) const; 132 int_4 BinPercent(r_8 x,r_8 per,int_4& imin,int_4& imax) ;133 int_4 BinPercent(r_8 x,r_8 per,r_8& xmin,r_8& xmax) ;130 int_4 BinPercent(r_8 x,r_8 per,int_4& imin,int_4& imax) const; 131 int_4 BinPercent(r_8 x,r_8 per,r_8& xmin,r_8& xmax) const; 134 132 void HInteg(r_8 norm = 0.); 135 133 void HDeriv(); 136 134 virtual void HRebin(int_4 nbinew); 137 135 138 int_4 MaxiLocal(r_8& maxi,int_4& imax,r_8& maxn,int_4& imaxn) ;136 int_4 MaxiLocal(r_8& maxi,int_4& imax,r_8& maxn,int_4& imaxn) const; 139 137 r_8 FitMax(int_4 degree=2, r_8 frac=0.5f, int_4 debug=0) const; 140 138 r_8 FindWidth(r_8 xmax,r_8 frac=0.5f, int_4 debug=0) const; 141 139 r_8 FindWidth(r_8 frac=0.5f, int_4 debug=0) const; 142 int_4 EstimeMax(r_8& xm,int_4 SzPav = 3); 143 int_4 EstimeMax(int_4& im,r_8& xm,int_4 SzPav = 3); 144 void EstimeWidthS(r_8 frac,r_8& widthG,r_8& widthD); 145 146 // Fit 147 int_4 Fit(GeneralFit& gfit,unsigned short typ_err=0); 148 Histo FitResidus(GeneralFit& gfit); 149 Histo FitFunction(GeneralFit& gfit); 140 int_4 EstimeMax(r_8& xm,int_4 SzPav = 3) const; 141 int_4 EstimeMax(int_4& im,r_8& xm,int_4 SzPav = 3) const; 142 void EstimeWidthS(r_8 frac,r_8& widthG,r_8& widthD) const; 150 143 151 144 // Print et Display ASCII 152 145 void PrintF(FILE * fp, int_4 dyn = 100, r_8 hmin = 1., r_8 hmax = -1., 153 int_4 pflag = 0, int_4 il = 1, int_4 ih = -1) ;146 int_4 pflag = 0, int_4 il = 1, int_4 ih = -1) const; 154 147 void Print(int_4 dyn = 100, r_8 hmin = 1., r_8 hmax = -1., 155 int_4 pflag = 0, int_4 il = 1, int_4 ih = -1) ;148 int_4 pflag = 0, int_4 il = 1, int_4 ih = -1) const; 156 149 157 150 protected:
Note:
See TracChangeset
for help on using the changeset viewer.