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

#include <OneMinusClPlot2d.h>

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

Public Member Functions

void addFile (TString fName)
 
void addScanner (MethodAbsScan *s, int CLsType=0)
 Add a scanner to the list of things to be plotted. More...
 
void Draw ()
 
void drawCLcontent (bool isFull=false)
 Draw a line stating the CL content of the contours. More...
 
void DrawFull ()
 Draw the full DeltaChi2 histogram of the first scanner. More...
 
void drawGroup ()
 Draw the group label on a 2d plot at a higher position. More...
 
void drawMarker (float x, float y, int color=0, int style=3, float size=2.0)
 
void drawSolutions ()
 Draw a marker at the position of each local minimum, as provided by MethodAbsScan::getScanVar1Solution() and MethodAbsScan::getScanVar2Solution(). More...
 
int getNumberOfDefinedColors ()
 
 OneMinusClPlot2d (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 setContoursOnly ()
 
void setXaxisTitle (TString s)
 
void setYaxisTitle (TString s)
 
- Public Member Functions inherited from OneMinusClPlotAbs
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 ()
 

Protected Attributes

bool contoursOnly
 
vector< vector< int > > fillcolor
 defines colors of 1 sigma areas of different scanners More...
 
vector< vector< int > > fillstyle
 
vector< TH2F * > histos
 
vector< vector< int > > linecolor
 defines colors of 1 sigma lines and solutions of different scanners More...
 
vector< vector< int > > linestyle
 defines the style of 1 sigma line of different scanners More...
 
vector< float > markersize
 
vector< int > markerstyle
 defines marker styles of the solutions of different scanners More...
 
TString xTitle
 
TString yTitle
 

Private Member Functions

void drawLegend ()
 Draw the legend. More...
 
bool hasHistoType (histogramType t)
 Checks if one of the scanners to be plotted provided a histogram of a certain type. More...
 
void makeNewPlotStyle (TString htmlColor, int ROOTColor=-1)
 The plot style of the first N scanners is defined in the constructor. More...
 

Private Attributes

vector< histogramTypehistosType
 defines if histogram is interpreted as p-value or chi2 More...
 
vector< ConfidenceContours * > m_contours
 holds the contours for each scanner More...
 
vector< bool > m_contours_computed
 true if the contours were computed for that scanner by computeContours() More...
 
TLegend * m_legend
 pointer to the plot legend. Filled by drawLegend(). More...
 

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 24 of file OneMinusClPlot2d.h.

Constructor & Destructor Documentation

§ OneMinusClPlot2d()

OneMinusClPlot2d::OneMinusClPlot2d ( 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 OneMinusClPlot2d.cpp.

Member Function Documentation

§ addFile()

void OneMinusClPlot2d::addFile ( TString  fName)

Definition at line 297 of file OneMinusClPlot2d.cpp.

§ addScanner()

void OneMinusClPlot2d::addScanner ( MethodAbsScan s,
int  CLsType = 0 
)
virtual

Add a scanner to the list of things to be plotted.

Reimplemented from OneMinusClPlotAbs.

Definition at line 271 of file OneMinusClPlot2d.cpp.

§ Draw()

void OneMinusClPlot2d::Draw ( )
virtual

Reimplemented from OneMinusClPlotAbs.

Definition at line 491 of file OneMinusClPlot2d.cpp.

§ drawCLcontent()

void OneMinusClPlot2d::drawCLcontent ( bool  isFull = false)

Draw a line stating the CL content of the contours.

Definition at line 338 of file OneMinusClPlot2d.cpp.

§ DrawFull()

void OneMinusClPlot2d::DrawFull ( )

Draw the full DeltaChi2 histogram of the first scanner.

Definition at line 374 of file OneMinusClPlot2d.cpp.

§ drawGroup()

void OneMinusClPlot2d::drawGroup ( )

Draw the group label on a 2d plot at a higher position.

Definition at line 316 of file OneMinusClPlot2d.cpp.

§ drawLegend()

void OneMinusClPlot2d::drawLegend ( )
private

Draw the legend.

Definition at line 435 of file OneMinusClPlot2d.cpp.

§ drawMarker()

void OneMinusClPlot2d::drawMarker ( float  x,
float  y,
int  color = 0,
int  style = 3,
float  size = 2.0 
)

Definition at line 695 of file OneMinusClPlot2d.cpp.

§ drawSolutions()

void OneMinusClPlot2d::drawSolutions ( )
virtual

Draw a marker at the position of each local minimum, as provided by MethodAbsScan::getScanVar1Solution() and MethodAbsScan::getScanVar2Solution().

if option 2 is given, only plot best fit points and equivalent ones

Reimplemented from OneMinusClPlotAbs.

Definition at line 708 of file OneMinusClPlot2d.cpp.

§ getNumberOfDefinedColors()

int OneMinusClPlot2d::getNumberOfDefinedColors ( )
inline

Definition at line 38 of file OneMinusClPlot2d.h.

§ hasHistoType()

bool OneMinusClPlot2d::hasHistoType ( histogramType  t)
private

Checks if one of the scanners to be plotted provided a histogram of a certain type.

t - histogram type: kChi2 or kPvalue

Definition at line 327 of file OneMinusClPlot2d.cpp.

§ makeNewPlotStyle()

void OneMinusClPlot2d::makeNewPlotStyle ( TString  htmlColor,
int  ROOTColor = -1 
)
private

The plot style of the first N scanners is defined in the constructor.

To be able to plot more scanners, we here define a generic new style based on the provided HTML color.

Parameters
htmlColor- an HTML color, e.g. "#e6ab02". If ROOT is provided, the new scanner will be based on a predefined ROOT color.

Definition at line 232 of file OneMinusClPlot2d.cpp.

§ setContoursOnly()

void OneMinusClPlot2d::setContoursOnly ( )
inline

Definition at line 39 of file OneMinusClPlot2d.h.

§ setXaxisTitle()

void OneMinusClPlot2d::setXaxisTitle ( TString  s)
inline

Definition at line 40 of file OneMinusClPlot2d.h.

§ setYaxisTitle()

void OneMinusClPlot2d::setYaxisTitle ( TString  s)
inline

Definition at line 41 of file OneMinusClPlot2d.h.

Member Data Documentation

§ contoursOnly

bool OneMinusClPlot2d::contoursOnly
protected

Definition at line 48 of file OneMinusClPlot2d.h.

§ fillcolor

vector<vector<int> > OneMinusClPlot2d::fillcolor
protected

defines colors of 1 sigma areas of different scanners

Definition at line 50 of file OneMinusClPlot2d.h.

§ fillstyle

vector<vector<int> > OneMinusClPlot2d::fillstyle
protected

Definition at line 52 of file OneMinusClPlot2d.h.

§ histos

vector<TH2F*> OneMinusClPlot2d::histos
protected

Definition at line 41 of file OneMinusClPlot2d.h.

§ histosType

vector<histogramType> OneMinusClPlot2d::histosType
private

defines if histogram is interpreted as p-value or chi2

Definition at line 62 of file OneMinusClPlot2d.h.

§ linecolor

vector<vector<int> > OneMinusClPlot2d::linecolor
protected

defines colors of 1 sigma lines and solutions of different scanners

Definition at line 49 of file OneMinusClPlot2d.h.

§ linestyle

vector<vector<int> > OneMinusClPlot2d::linestyle
protected

defines the style of 1 sigma line of different scanners

Definition at line 51 of file OneMinusClPlot2d.h.

§ m_contours

vector<ConfidenceContours*> OneMinusClPlot2d::m_contours
private

holds the contours for each scanner

Definition at line 63 of file OneMinusClPlot2d.h.

§ m_contours_computed

vector<bool> OneMinusClPlot2d::m_contours_computed
private

true if the contours were computed for that scanner by computeContours()

Definition at line 64 of file OneMinusClPlot2d.h.

§ m_legend

TLegend* OneMinusClPlot2d::m_legend
private

pointer to the plot legend. Filled by drawLegend().

Definition at line 65 of file OneMinusClPlot2d.h.

§ markersize

vector<float> OneMinusClPlot2d::markersize
protected

Definition at line 54 of file OneMinusClPlot2d.h.

§ markerstyle

vector<int> OneMinusClPlot2d::markerstyle
protected

defines marker styles of the solutions of different scanners

Definition at line 53 of file OneMinusClPlot2d.h.

§ xTitle

TString OneMinusClPlot2d::xTitle
protected

Definition at line 46 of file OneMinusClPlot2d.h.

§ yTitle

TString OneMinusClPlot2d::yTitle
protected

Definition at line 47 of file OneMinusClPlot2d.h.


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