StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
gl3Histo.h
1 //:>------------------------------------------------------------------
2 //:<------------------------------------------------------------------
3 #include <stdio.h>
4 #include <math.h>
5 
6 #ifndef GL3HISTO
7 #define GL3HISTO
8 
10  public:
11  char id[64];
12  char title[128];
13  int nEntries ;
14  int nBins;
15  double sum ;
16  double yMin ;
17  double yMax ;
18  double xMin ;
19  double xMax ;
20  double xStep ;
21  // JB 08312K
22  int maxBin;
23  int padding; // needed for 64-bit alignment
24 };
25 
26 class gl3Histo {
27 public:
28  gl3HistoHeader header ;
29  double* info ;
30 
31 public:
32  gl3Histo ( char iId[10]="id", char iTitle[100]="name",
33  int iNBins=100, double iXMin=0., double iXMax=100. ) ;
34  ~gl3Histo ( ) ;
35  int Fill (double x, double weight=1) ;
36  double GetY (int iBin ) ;
37  int Print (short Level=1 ) ;
38  int Read (char* input ) ;
39  int Reset ( ) ;
40  int Write ( unsigned int maxBytes, char* output ) ;
41 
42  // JB 08/15/2K added some methods
43  // --------------------------------------------------------------------
44  double GetMaximum();
45  int GetMaximumBin();
46  double GetBinCenter(int Bin);
47  double Integral(int minBin, int maxBin);
48  double getWeightedMean(double sigmaWidthBins=4);
49 };
50 #endif
double GetMaximum()
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ...
Definition: gl3Histo.cxx:158
int Reset()
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Definition: gl3Histo.cxx:121
double GetBinCenter(int Bin)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ...
Definition: gl3Histo.cxx:174
int Write(unsigned int maxBytes, char *output)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Definition: gl3Histo.cxx:134
double Integral(int minBin, int maxBin)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ...
Definition: gl3Histo.cxx:182
~gl3Histo()
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ...
Definition: gl3Histo.cxx:47
double GetY(int iBin)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ...
Definition: gl3Histo.cxx:75
int Print(short Level=1)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ...
Definition: gl3Histo.cxx:85
gl3Histo(char iId[10]="id", char iTitle[100]="name", int iNBins=100, double iXMin=0., double iXMax=100.)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ...
Definition: gl3Histo.cxx:18
int GetMaximumBin()
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ...
Definition: gl3Histo.cxx:166
int Read(char *input)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Definition: gl3Histo.cxx:94
int Fill(double x, double weight=1)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ...
Definition: gl3Histo.cxx:53