00001 // class rootHist 00002 // Author: Theodore Hierath 00003 // This class contains a basic histogram function 00004 // The bins are numbered from 0 to number of bins - 1; 00005 00006 #ifndef ROOT_HIST 00007 #define ROOT_HIST 00008 00013 class rootHist 00014 { 00015 public: 00017 rootHist(int bins); 00018 rootHist(const rootHist& oldHist); 00019 ~rootHist(void); 00020 00025 void updateBin(int binNumber, double data); 00026 00029 double retrieveBin(int binNumber); 00030 private: 00031 double *hist; 00032 const int num_bins; 00033 }; 00034 00035 #endif // ROOT_HIST
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001