BCH2D Class Reference
#include <BCH2D.h>
List of all members.
Detailed Description
A class for handling 2D distributions.
- Author:
- Daniel Kollar
Kevin Kröninger
- Version:
- 1.0
- Date:
- 08.2008 This class contains a TH2D histogram and some additional functions. It is used for marginalized distributions.
Definition at line 32 of file BCH2D.h.
Constructor & Destructor Documentation
The default constructor.
Definition at line 20 of file BCH2D.cxx.
The default destructor.
Definition at line 31 of file BCH2D.cxx.
Member Function Documentation
void BCH2D::CalculateIntegratedHistogram |
( |
|
) |
|
void BCH2D::Draw |
( |
int |
options = 0 |
) |
|
Draw 2-d distribution into the active canvas
- Parameters:
-
| options | explanation to come |
Definition at line 82 of file BCH2D.cxx.
TGraph * BCH2D::GetBandGraph |
( |
TH2D * |
h, |
|
|
double |
level1, |
|
|
double |
level2 | |
|
) |
| | |
TGraph ** BCH2D::GetBandGraphs |
( |
TH2D * |
h, |
|
|
int & |
n | |
|
) |
| | |
TGraph** BCH2D::GetBandGraphs |
( |
TH2D * |
h |
) |
|
TH2D* BCH2D::GetHistogram |
( |
|
) |
[inline] |
- Returns:
- The 2D histogram.
Definition at line 58 of file BCH2D.h.
double BCH2D::GetLevel |
( |
double |
p |
) |
|
std::vector< double > BCH2D::GetLevelBoundary |
( |
TH2D * |
h, |
|
|
double |
level | |
|
) |
| | |
TGraph * BCH2D::GetLowestBandGraph |
( |
TH2D * |
h |
) |
|
TGraph * BCH2D::GetLowestBandGraph |
( |
TH2D * |
h, |
|
|
std::vector< int > |
nint | |
|
) |
| | |
void BCH2D::GetMean |
( |
double & |
mean |
) |
|
- Returns:
- The mean of the distribution.
void BCH2D::GetMode |
( |
double & |
mode |
) |
|
- Returns:
- The mode of the distribution
Definition at line 43 of file BCH2D.cxx.
std::vector< int > BCH2D::GetNIntervalsY |
( |
TH2D * |
h, |
|
|
int & |
nfoundmax | |
|
) |
| | |
Returns the number of intervals as a function of x
- Parameters:
-
| h | The histogram. |
| nfoundmax | The maximum number of intervals. |
- Returns:
- A vector containing the number of intervals for all bins in x.
Definition at line 445 of file BCH2D.cxx.
void BCH2D::Print |
( |
const char * |
filename, |
|
|
int |
options = 0 , |
|
|
int |
ww = 0 , |
|
|
int |
wh = 0 | |
|
) |
| | |
Print 2-d histogram to file
- Parameters:
-
| filename | The filename |
| ww | canvas size in pixels along X |
| ww | canvas size in pixels along Y If ww and wh are set to 0, default ROOT canvas size is used. For explanation of the parameter options see the Draw() method. |
Definition at line 60 of file BCH2D.cxx.
void BCH2D::SetGlobalMode |
( |
double |
mode[2] |
) |
[inline] |
Set global mode.
- Parameters:
-
Definition at line 86 of file BCH2D.h.
void BCH2D::SetHistogram |
( |
TH2D * |
hist |
) |
[inline] |
Set the 2D histogram.
Definition at line 79 of file BCH2D.h.
Member Data Documentation
The 2D histogram
Definition at line 153 of file BCH2D.h.
The integrated 2D histogram
Definition at line 158 of file BCH2D.h.
Global mode
Definition at line 163 of file BCH2D.h.
"Is there a global mode?" flag
Definition at line 168 of file BCH2D.h.