GammaCombo  Rev:Unversioneddirectory
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ConfidenceContours Class Reference

#include <ConfidenceContours.h>

Collaboration diagram for ConfidenceContours:
Collaboration graph
[legend]

Public Member Functions

void computeContours (TH2F *hist, histogramType type, int id=0)
 Compute the raw N sigma confidence contours from a 2D histogram holding either the chi2 or the p-value curve. More...
 
 ConfidenceContours (OptParser *arg)
 
void Draw ()
 Draw the contours into the currently active Canvas. More...
 
void DrawDashedLine ()
 Draw the contours into the currently active Canvas. More...
 
void setStyle (vector< int > &linecolor, vector< int > &linestyle, vector< int > &fillcolor, vector< int > &fillstyle)
 Set the contour style. More...
 
void setTransparency (float percent)
 
 ~ConfidenceContours ()
 

Private Member Functions

TH2F * addBoundaryBins (TH2F *hist)
 Helper function for computeContours(): Constructs a new 2D histogram that contains 2 more bins in each direction that are set to the minimum, so that the contours will always close. More...
 
void addFilledPlotArea (TH2F *hist)
 Add a new contour that is just the plotted area. More...
 
TH2F * transformChi2valleyToHill (TH2F *hist, float offset)
 Helper function for computeContours(): Transforms the chi2 valley into a hill to help ROOTs contour mechanism Caller assumes ownership. More...
 

Private Attributes

OptParserm_arg
 command line arguments More...
 
vector< Contour * > m_contours
 container for the 1,...,N sigma contours More...
 
vector< int > m_fillcolor
 
vector< int > m_fillstyle
 
vector< int > m_linecolor
 style for the 1,...,N sigma contours More...
 
vector< int > m_linestyle
 
vector< int > m_linewidth
 
float m_transparency
 

Detailed Description

Definition at line 21 of file ConfidenceContours.h.

Constructor & Destructor Documentation

§ ConfidenceContours()

ConfidenceContours::ConfidenceContours ( OptParser arg)

Definition at line 3 of file ConfidenceContours.cpp.

§ ~ConfidenceContours()

ConfidenceContours::~ConfidenceContours ( )

Definition at line 10 of file ConfidenceContours.cpp.

Member Function Documentation

§ addBoundaryBins()

TH2F * ConfidenceContours::addBoundaryBins ( TH2F *  hist)
private

Helper function for computeContours(): Constructs a new 2D histogram that contains 2 more bins in each direction that are set to the minimum, so that the contours will always close.

Parameters
hist- the 2D histogram
Returns
new 2D histogram. Caller assumes ownership.

Definition at line 65 of file ConfidenceContours.cpp.

§ addFilledPlotArea()

void ConfidenceContours::addFilledPlotArea ( TH2F *  hist)
private

Add a new contour that is just the plotted area.

Parameters
hist- histogram providing the dimensions of the plotted area

Definition at line 115 of file ConfidenceContours.cpp.

§ computeContours()

void ConfidenceContours::computeContours ( TH2F *  hist,
histogramType  type,
int  id = 0 
)

Compute the raw N sigma confidence contours from a 2D histogram holding either the chi2 or the p-value curve.

The resulting contours are stored into the m_contours member.

Parameters
hist- the 2D histogram
type- the type of the 2D histogram, either chi2 or p-value

Definition at line 144 of file ConfidenceContours.cpp.

§ Draw()

void ConfidenceContours::Draw ( )

Draw the contours into the currently active Canvas.

Definition at line 246 of file ConfidenceContours.cpp.

§ DrawDashedLine()

void ConfidenceContours::DrawDashedLine ( )

Draw the contours into the currently active Canvas.

Definition at line 260 of file ConfidenceContours.cpp.

§ setStyle()

void ConfidenceContours::setStyle ( vector< int > &  linecolor,
vector< int > &  linestyle,
vector< int > &  fillcolor,
vector< int > &  fillstyle 
)

Set the contour style.

Definition at line 273 of file ConfidenceContours.cpp.

§ setTransparency()

void ConfidenceContours::setTransparency ( float  percent)
inline

Definition at line 31 of file ConfidenceContours.h.

§ transformChi2valleyToHill()

TH2F * ConfidenceContours::transformChi2valleyToHill ( TH2F *  hist,
float  offset 
)
private

Helper function for computeContours(): Transforms the chi2 valley into a hill to help ROOTs contour mechanism Caller assumes ownership.

Parameters
hist- the 2D histogram
offset- a chi2 offset, usually 30 units
Returns
- the transformed 2D histogram

Definition at line 97 of file ConfidenceContours.cpp.

Member Data Documentation

§ m_arg

OptParser* ConfidenceContours::m_arg
private

command line arguments

Definition at line 38 of file ConfidenceContours.h.

§ m_contours

vector<Contour*> ConfidenceContours::m_contours
private

container for the 1,...,N sigma contours

Definition at line 39 of file ConfidenceContours.h.

§ m_fillcolor

vector<int> ConfidenceContours::m_fillcolor
private

Definition at line 42 of file ConfidenceContours.h.

§ m_fillstyle

vector<int> ConfidenceContours::m_fillstyle
private

Definition at line 43 of file ConfidenceContours.h.

§ m_linecolor

vector<int> ConfidenceContours::m_linecolor
private

style for the 1,...,N sigma contours

Definition at line 40 of file ConfidenceContours.h.

§ m_linestyle

vector<int> ConfidenceContours::m_linestyle
private

Definition at line 41 of file ConfidenceContours.h.

§ m_linewidth

vector<int> ConfidenceContours::m_linewidth
private

Definition at line 44 of file ConfidenceContours.h.

§ m_transparency

float ConfidenceContours::m_transparency
private

Definition at line 45 of file ConfidenceContours.h.


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