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

#include <OneMinusClPlot.h>

Inheritance diagram for OneMinusClPlot:
Inheritance graph
[legend]
Collaboration diagram for OneMinusClPlot:
Collaboration graph
[legend]

Public Member Functions

void Draw ()
 
void drawCLguideLines ()
 Draw 1, 2, and 3 sigma lines. More...
 
void drawSolutions ()
 Draw a vertical line a the position of the best solution. More...
 
TGraph * getGraph (MethodAbsScan *s, bool first=true, bool last=false, bool filled=true, int CLsType=0)
 
TString getName ()
 
 OneMinusClPlot (OptParser *arg, TString name="c1", TString title="c1")
 Gamma Combination Author: Till Moritz Karbach, morit.nosp@m.z.ka.nosp@m.rbach.nosp@m.@cer.nosp@m.n.ch Date: August 2012. More...
 
void setPluginMarkers (bool yesNo=true)
 
- Public Member Functions inherited from OneMinusClPlotAbs
virtual void addScanner (MethodAbsScan *s, int CLsType=0)
 Add a scanner to this plot. More...
 
void disableLegend (bool yesNo=false)
 
void disableSolution (bool yesNo=false)
 
virtual void drawGroup (float yPos=0.6)
 Draw the group label on plots. More...
 
virtual void drawLabel (float yPos=0.6)
 
TString getName ()
 
 OneMinusClPlotAbs (OptParser *arg, TString name="c1", TString title="c1")
 Gamma Combination Author: Till Moritz Karbach, morit.nosp@m.z.ka.nosp@m.rbach.nosp@m.@cer.nosp@m.n.ch Date: August 2012. More...
 
void save ()
 Save the plot. More...
 
void setFont (int fnum)
 
void setLabelSize (int lnum)
 
void setPlotLabel (TString &lname)
 
void setYLogRange (double min=1.e-3, double max=1)
 
void Show ()
 
 ~OneMinusClPlotAbs ()
 

Private Member Functions

void drawCLguideLine (float pvalue)
 Draw a horizontal line at given p-value, put a label on top of it stating the corresponding CL. More...
 
void drawVerticalLine (float x, int color, int style)
 
void scan1dCLsPlot (MethodAbsScan *s, bool smooth=true, bool obsError=true)
 Make a plot for the CLs stuff. More...
 
TGraph * scan1dPlot (MethodAbsScan *s, bool first, bool last, bool filled, int CLsType=0)
 Make a plot out of a 1D histogram holding a 1-CL curve. More...
 
void scan1dPlotSimple (MethodAbsScan *s, bool first, int CLsType=0)
 Make a plot out of a 1D histogram holding a 1-CL curve. More...
 

Private Attributes

TCanvas * m_clsCanvas
 
bool plotPluginMarkers
 

Additional Inherited Members

- Public Attributes inherited from OneMinusClPlotAbs
OptParserarg
 command line options More...
 
vector< int > do_CLs
 vector, which stores the cls method type to be plotted More...
 
int font
 font code. The last digit disables scaling with the canvas size. More...
 
TString label
 
int labelsize
 text size of axis labels in pixels More...
 
int legendsize
 text size of legend entries in pixels More...
 
TCanvas * m_mainCanvas
 
TString name
 
bool plotLegend
 
double plotLogYMax
 
double plotLogYMin
 
bool plotSolution
 
vector< MethodAbsScan * > scanners
 
TString title
 
int titlesize
 text size of axis titles in pixels More...
 

Detailed Description

Definition at line 20 of file OneMinusClPlot.h.

Constructor & Destructor Documentation

§ OneMinusClPlot()

OneMinusClPlot::OneMinusClPlot ( OptParser arg,
TString  name = "c1",
TString  title = "c1" 
)

Gamma Combination Author: Till Moritz Karbach, morit.nosp@m.z.ka.nosp@m.rbach.nosp@m.@cer.nosp@m.n.ch Date: August 2012.

Definition at line 10 of file OneMinusClPlot.cpp.

Member Function Documentation

§ Draw()

void OneMinusClPlot::Draw ( )
virtual

< which directly plots the 1-CL histograms without beautification

Reimplemented from OneMinusClPlotAbs.

Definition at line 721 of file OneMinusClPlot.cpp.

§ drawCLguideLine()

void OneMinusClPlot::drawCLguideLine ( float  pvalue)
private

Draw a horizontal line at given p-value, put a label on top of it stating the corresponding CL.

Definition at line 665 of file OneMinusClPlot.cpp.

§ drawCLguideLines()

void OneMinusClPlot::drawCLguideLines ( )

Draw 1, 2, and 3 sigma lines.

Definition at line 708 of file OneMinusClPlot.cpp.

§ drawSolutions()

void OneMinusClPlot::drawSolutions ( )
virtual

Draw a vertical line a the position of the best solution.

For the getDrawSolution() code, see OptParser, –ps.

< see documentation of –qh option in OptParser.cpp

Reimplemented from OneMinusClPlotAbs.

Definition at line 551 of file OneMinusClPlot.cpp.

§ drawVerticalLine()

void OneMinusClPlot::drawVerticalLine ( float  x,
int  color,
int  style 
)
private

Definition at line 536 of file OneMinusClPlot.cpp.

§ getGraph()

TGraph* OneMinusClPlot::getGraph ( MethodAbsScan s,
bool  first = true,
bool  last = false,
bool  filled = true,
int  CLsType = 0 
)
inline

Definition at line 27 of file OneMinusClPlot.h.

§ getName()

TString OneMinusClPlot::getName ( )
inline

Definition at line 28 of file OneMinusClPlot.h.

§ scan1dCLsPlot()

void OneMinusClPlot::scan1dCLsPlot ( MethodAbsScan s,
bool  smooth = true,
bool  obsError = true 
)
private

Make a plot for the CLs stuff.

The strategy is to convert the hCLExp and hCLErr histogrms into TGraphs and TGraphAsymmErrors We can then provide some smoothing options as well

Parameters
sThe scanner to plot.
smooth

Definition at line 354 of file OneMinusClPlot.cpp.

§ scan1dPlot()

TGraph * OneMinusClPlot::scan1dPlot ( MethodAbsScan s,
bool  first,
bool  last,
bool  filled,
int  CLsType = 0 
)
private

Make a plot out of a 1D histogram holding a 1-CL curve.

The strategy is to always convert the 1-CL histogram (hCL) into a TGraph. This way we can add known points (solutions, points at end of scan range) and also have a filled area without line smoothing. This is not possible with histograms due to a Root bug.

The function draws the TGraphs, and returns a pointer to the TGraph object that can be used in the TLegend.

Markers are plotted if the method name of the scanner is "Plugin" or "BergerBoos" or "DatasetsPlugin". One can plot a line instead of points even for the Plugin method by using setPluginMarkers().

For the angle variables, a new axis is painted that is in Deg.

Parameters
sThe scanner to plot.
first
last
filled

< see documentation of –qh option in OptParser.cpp

Definition at line 38 of file OneMinusClPlot.cpp.

§ scan1dPlotSimple()

void OneMinusClPlot::scan1dPlotSimple ( MethodAbsScan s,
bool  first,
int  CLsType = 0 
)
private

Make a plot out of a 1D histogram holding a 1-CL curve.

This is a fall back function that does no fancy stuff.

Parameters
sThe scanner to plot.
firstSet this to true for the first plotted scanner.

Definition at line 293 of file OneMinusClPlot.cpp.

§ setPluginMarkers()

void OneMinusClPlot::setPluginMarkers ( bool  yesNo = true)
inline

Definition at line 29 of file OneMinusClPlot.h.

Member Data Documentation

§ m_clsCanvas

TCanvas* OneMinusClPlot::m_clsCanvas
private

Definition at line 40 of file OneMinusClPlot.h.

§ plotPluginMarkers

bool OneMinusClPlot::plotPluginMarkers
private

Definition at line 39 of file OneMinusClPlot.h.


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