Changeset 1109 in Sophya for trunk/SophyaLib/HiStats/histos.h


Ignore:
Timestamp:
Jul 28, 2000, 6:29:55 PM (25 years ago)
Author:
ansari
Message:

on vire FitResidus/Function -> cf objfitter cmv 28/7/00

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/HiStats/histos.h

    r1092 r1109  
    11// This may look like C code, but it is really -*- C++ -*-
    22//
    3 // $Id: histos.h,v 1.11 2000-07-26 13:15:15 ansari Exp $
     3// $Id: histos.h,v 1.12 2000-07-28 16:29:55 ansari Exp $
    44//
    55
     
    1616
    1717namespace SOPHYA {
    18 
    19 class GeneralFit;
    2018
    2119//! 1 dimension histograms
     
    5856
    5957  // 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;
    6462  void PutValue(TVector<r_8>& v, int_4 ierr=0);
    6563  void PutValueAdd(TVector<r_8> &v, int_4 ierr=0);
     
    8482  inline r_8& operator()(int_4 i) {return mData[i];}
    8583  //! retourne "true" si il y a des erreurs stoquees
    86   inline bool HasErrors()
     84  inline bool HasErrors() const
    8785         {if(mErr2) return true; else return false;}
    8886  //! Retourne l'erreur du bin i
     
    130128  r_8       CleanedMean(r_8& sigma) const;
    131129  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;
    134132  void      HInteg(r_8 norm = 0.);
    135133  void      HDeriv();
    136134  virtual void HRebin(int_4 nbinew);
    137135
    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;
    139137  r_8       FitMax(int_4 degree=2, r_8 frac=0.5f, int_4 debug=0) const;
    140138  r_8       FindWidth(r_8 xmax,r_8 frac=0.5f, int_4 debug=0) const;
    141139  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;
    150143
    151144  // Print et Display ASCII
    152145  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;
    154147  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;
    156149
    157150protected:
Note: See TracChangeset for help on using the changeset viewer.