Changeset 3132 in Sophya for trunk/SophyaPI/PIext/phistwrapper.h
- Timestamp:
- Jan 12, 2007, 2:26:57 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/phistwrapper.h
r3125 r3132 12 12 13 13 //! Wrapper class interface for 1d-histogram like objects , used by PIHisto 14 // methodes par defaut dans pihisto.cc 14 15 class P1DHistoWrapper 15 16 { 16 17 public: 17 virtual ~P1DHistoWrapper() { } 18 P1DHistoWrapper(); 19 virtual ~P1DHistoWrapper(); 18 20 19 21 virtual int_4 NBins() = 0; … … 27 29 28 30 // Renvoie contenu du bin i 29 virtual r_8 operator()(int_4 i) = 0;31 virtual r_8 Value(int_4 i) = 0; 30 32 virtual r_8 Error(int_4 i) = 0; 31 33 34 inline r_8 operator()(int_4 i) { return ( Value(i)*mScale+mOff ); } 32 35 // Methode de mise a jour du contenu 33 36 // avec implementation par defaut - ne faisant rien … … 36 39 // ajoute des lignes de texte avec les infos statistiques (dans text) 37 40 // 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 47 protected: 48 r_8 mScale, mOff; // scaling coefficient, offset coefficient 39 49 40 50 };
Note:
See TracChangeset
for help on using the changeset viewer.