Changeset 3053 in Sophya for trunk/SophyaLib/HiStats/hisprof.h


Ignore:
Timestamp:
Aug 12, 2006, 7:29:29 PM (19 years ago)
Author:
cmv
Message:

correction bug + addaptation pour ecriture fits cmv 12/8/2006

File:
1 edited

Legend:

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

    r3049 r3053  
    5656               {UpdateHisto();
    5757                return (mErr2[i]>0.) ? sqrt(mErr2[i]) : 0.;}
     58  //! Retourne le carre de la dispersion/erreur du bin i
     59  inline r_8 SumW(int_4 i) const {return mSumW[i];}
    5860
    5961  // Operators
     
    6567
    6668  virtual void Show(ostream& os) const;
     69  inline  void Show() const { Show(cout); }
    6770  //! Print, voir detail dans Histo::Print
    6871  inline void Print(int_4 dyn=100,r_8 hmin=1.,r_8 hmax=-1.
     
    7174
    7275protected:
     76  void CreateOrResize(r_8 xMin, r_8 xMax, int_4 nBin, r_8 yMin=1., r_8 yMax=-1.);
    7377  void Delete();
    7478  void updatehisto() const;
    7579
    76   r_8*         SumY;  //!< somme
    77   r_8*         SumY2; //!< somme des carres
    78   r_8*         SumW;  //!< somme des poids
     80  r_8*         mSumY;  //!< somme
     81  r_8*         mSumY2; //!< somme des carres
     82  r_8*         mSumW;  //!< somme des poids
    7983  mutable bool Ok;    //!< true if update fait
    8084  r_8          YMin;  //!< limite minimum Y pour somme
     
    8387};
    8488
     89/*! Prints histogram information on stream \b s (h.Show(s)) */
     90inline ostream& operator << (ostream& s, HProf const & h)
     91  {  h.Show(s);  return(s);  }
    8592
    8693/*! \ingroup HiStats \fn operator<<(POuttPersist&, HProf)
Note: See TracChangeset for help on using the changeset viewer.