ALERT
Loading...
Searching...
No Matches
fhist1D Class Reference

Public Member Functions

 fhist1D (const char *_title, int _nbins, double _xmin, double _xmax)
 Constructor.
 
void Fill (double val)
 Add a new entry in the histogram.
 
int GetBinNumber (double val)
 Return the bin number in which val falls.
 
int GetWeight (int bin)
 Return the number of entries in this bin.
 
double GetCentralValue (int bin)
 Return the center value of this bin.
 
std::vector< double > GetXarray ()
 Return the array of values They are the center of each bins.
 
std::vector< int > GetWarray ()
 Return the array of weights.
 
double GetMean ()
 Return the mean of the distribution.
 
double GetStdev ()
 Return the standard deviation of the distribution.
 
void SetFlagStatOverFlows (bool _flagStatOverFlows)
 If true, over/underflow values taken into account in the statistics.
 
void Print ()
 Print detailled informations on screen.
 
void DrawContour (const char *filename)
 

Member Function Documentation

◆ DrawContour()

void fhist1D::DrawContour ( const char * filename)

brief Draw the contour of the histogram

◆ GetBinNumber()

int fhist1D::GetBinNumber ( double val)

Return the bin number in which val falls.

Note
return -1 if val < xmin and -11 if val > xmax

◆ GetWeight()

int fhist1D::GetWeight ( int bin)

Return the number of entries in this bin.

Parameters
binbin number (numerotation starts at 0)
Note
return -1 if bin < 0 or bin > nBins-1

The documentation for this class was generated from the following files: