Changeset 3132 in Sophya for trunk/SophyaPI/PIext/phistwrapper.h


Ignore:
Timestamp:
Jan 12, 2007, 2:26:57 PM (19 years ago)
Author:
ansari
Message:

introduction methode P1DHistoWrapper::DecodeOptionString et son implementation par defaut, Reza 12/01/2007

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIext/phistwrapper.h

    r3125 r3132  
    1212
    1313//! Wrapper class interface for 1d-histogram like objects , used by PIHisto
     14// methodes par defaut dans pihisto.cc
    1415class P1DHistoWrapper
    1516{
    1617public:
    17   virtual ~P1DHistoWrapper() { }
     18  P1DHistoWrapper();
     19  virtual ~P1DHistoWrapper();
    1820
    1921  virtual int_4 NBins() = 0;
     
    2729
    2830  // Renvoie contenu du bin i
    29   virtual r_8 operator()(int_4 i) = 0;
     31  virtual r_8 Value(int_4 i) = 0;
    3032  virtual r_8 Error(int_4 i) = 0;
    3133
     34  inline  r_8 operator()(int_4 i) { return ( Value(i)*mScale+mOff ); }
    3235  // Methode de mise a jour du contenu
    3336  // avec implementation par defaut - ne faisant rien
     
    3639  // ajoute des lignes de texte avec les infos statistiques (dans text)
    3740  // renvoie le nombre de lignes ajoutees - avec implementation par defaut
    38   virtual int GetStatInfoAsText(vector<string> & /* text */ ) { return 0; }
     41  virtual int GetStatInfoAsText(vector<string> &  text );
     42
     43//   Methode de decodage des options - avec implementation par defaut
     44//   l'implementation par defaut ds le fichier pihisto.cc
     45  virtual int DecodeOptionString(vector<string> & opt, bool rmdecopt=true);
     46
     47protected:
     48  r_8 mScale, mOff;   // scaling coefficient, offset coefficient
    3949
    4050};
Note: See TracChangeset for help on using the changeset viewer.