geirs2Panic  Richard J. Mathar
Fits header keyword batch editor
 All Classes Files Functions Variables Macros Pages
Histos.h
Go to the documentation of this file.
1 #ifndef HISTOS_H
2 #define HISTOS_H
3 /*
4 * MPIA - GEIRS project
5 *
6 * "@(#) $Id$"
7 *
8 */
9 
10 // #include <string>
11 #include <vector>
12 #include <valarray>
13 
14 #include "Histo.h"
15 
16 using namespace std ;
17 
22 class Histos {
23 
24 public:
27  double strt ;
28 
31  double stride ;
32 
35  string contName ;
36 
37  vector<Histo> hs ;
38 
39  Histos() ;
40  Histos( vector< valarray<float> >& arr, vector<string> & iname) ;
41  Histos( vector< valarray<float> >& arr, const int Nbin, vector<string> & iname, string &contName) ;
42  Histos( vector< valarray<float> >& arr, const int Nbin, vector<string> & iname, string &contName, double range[2]) ;
43 
44  void dumpFil(const char *fname) ;
45 
46  void gnuplot(const char *gplDfile, const char *gplfile, const bool doLogHist, string epsout) ;
47 
48  static void valRange( vector< valarray<float> > & arr, double mimax[2]) ;
49 
50  static int countRange( vector< valarray<float> > & arr) ;
51 
52 protected:
53 
54 private:
55  void init( vector< valarray<float> > & arr, const int Nbin, const double * range, vector<string> & iname) ;
56 
57 } ; /* Histos */
58 
59 #endif /* HISTOS_H */
double stride
The width of each bin.
Definition: Histos.h:31
double strt
The smallest range of the first bin.
Definition: Histos.h:27
vector< Histo > hs
Definition: Histos.h:37
Definition: Histos.h:22
string contName
Some type of contents description.
Definition: Histos.h:35