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

#include <ParameterEvolutionPlotter.h>

Collaboration diagram for ParameterEvolutionPlotter:
Collaboration graph
[legend]

Public Member Functions

 ParameterEvolutionPlotter (MethodProbScan *scanner)
 
void plotObsScanCheck ()
 Plot the discrepancy between the observable and the predicted observable when making predictions about observables by scanning them. More...
 
void plotParEvolution ()
 Plot the evolution of best fit nuisance paramters along the 1-CL curve. More...
 
 ~ParameterEvolutionPlotter ()
 

Private Member Functions

void drawLinesAtMinima (TVirtualPad *pad)
 
void drawVerticalRedLine (TVirtualPad *pad, float xpos)
 Draw a vertical red line into the current pad at position i. More...
 
void getLocalMinPositions ()
 Compute the positions of the local minima, in terms of scan steps, store it in m_localMinPositions. More...
 
TGraph * makeChi2Graph (vector< RooSlimFitResult *> results)
 Make a chi2 graph. More...
 
TGraph * makeEvolutionGraph (vector< RooSlimFitResult *> results, TString parName)
 Make an evolution graph for one parameter. More...
 
TGraphErrors * makeEvolutionGraphErrors (vector< RooSlimFitResult *> results, TString parName)
 Make an evolution graph for one parameter. More...
 
void saveEvolutionPlots ()
 Save all parameter evolution plots that were created so far. More...
 
TCanvas * selectNewCanvas (TString title)
 Create a new canvas and add it to the list of canvases. More...
 
TVirtualPad * selectNewPad ()
 
void updateCurrentCanvas ()
 Update the current control plot canvas. More...
 

Private Attributes

vector< RooSlimFitResult * > allResults
 all results of all scan points More...
 
OptParserarg
 command line arguments More...
 
vector< RooSlimFitResult * > curveResults
 only the results of scan points that were accepted into the CL curve More...
 
vector< TCanvas * > m_canvases
 Pointers to the canvases of the plots, see selectNewCanvas(). More...
 
vector< float > m_localMinPositions
 positions of the local minima in scan steps More...
 
int m_padId
 ID of currently selected pad, see selectNewPad(). More...
 
TString name
 scanner name, part of the file name of the plots More...
 
TString obsName
 name of observables set inside the workspace More...
 
TString parsName
 name of parameter set inside the workspace More...
 
TString scanVar1
 name of the can variable More...
 
TString title
 canvas title More...
 
RooWorkspace * w
 a clone of the scanner's workspace More...
 

Detailed Description

Definition at line 23 of file ParameterEvolutionPlotter.h.

Constructor & Destructor Documentation

§ ParameterEvolutionPlotter()

ParameterEvolutionPlotter::ParameterEvolutionPlotter ( MethodProbScan scanner)

Definition at line 3 of file ParameterEvolutionPlotter.cpp.

§ ~ParameterEvolutionPlotter()

ParameterEvolutionPlotter::~ParameterEvolutionPlotter ( )

Definition at line 34 of file ParameterEvolutionPlotter.cpp.

Member Function Documentation

§ drawLinesAtMinima()

void ParameterEvolutionPlotter::drawLinesAtMinima ( TVirtualPad *  pad)
private

Definition at line 56 of file ParameterEvolutionPlotter.cpp.

§ drawVerticalRedLine()

void ParameterEvolutionPlotter::drawVerticalRedLine ( TVirtualPad *  pad,
float  xpos 
)
private

Draw a vertical red line into the current pad at position i.

Definition at line 66 of file ParameterEvolutionPlotter.cpp.

§ getLocalMinPositions()

void ParameterEvolutionPlotter::getLocalMinPositions ( )
private

Compute the positions of the local minima, in terms of scan steps, store it in m_localMinPositions.

This will then be used to plot a red line at the position of the local minima.

Definition at line 44 of file ParameterEvolutionPlotter.cpp.

§ makeChi2Graph()

TGraph * ParameterEvolutionPlotter::makeChi2Graph ( vector< RooSlimFitResult *>  results)
private

Make a chi2 graph.

Definition at line 117 of file ParameterEvolutionPlotter.cpp.

§ makeEvolutionGraph()

TGraph * ParameterEvolutionPlotter::makeEvolutionGraph ( vector< RooSlimFitResult *>  results,
TString  parName 
)
private

Make an evolution graph for one parameter.

Definition at line 101 of file ParameterEvolutionPlotter.cpp.

§ makeEvolutionGraphErrors()

TGraphErrors * ParameterEvolutionPlotter::makeEvolutionGraphErrors ( vector< RooSlimFitResult *>  results,
TString  parName 
)
private

Make an evolution graph for one parameter.

Definition at line 84 of file ParameterEvolutionPlotter.cpp.

§ plotObsScanCheck()

void ParameterEvolutionPlotter::plotObsScanCheck ( )

Plot the discrepancy between the observable and the predicted observable when making predictions about observables by scanning them.

This checks if the chi2 term of the observable is tight enough. This only works for 1D scans for now.

Definition at line 223 of file ParameterEvolutionPlotter.cpp.

§ plotParEvolution()

void ParameterEvolutionPlotter::plotParEvolution ( )

Plot the evolution of best fit nuisance paramters along the 1-CL curve.

By changing the code at the beginning of the function one can chose whether all scan results are plotted, or only those comprising the 1-CL curve.

Definition at line 138 of file ParameterEvolutionPlotter.cpp.

§ saveEvolutionPlots()

void ParameterEvolutionPlotter::saveEvolutionPlots ( )
private

Save all parameter evolution plots that were created so far.

Definition at line 208 of file ParameterEvolutionPlotter.cpp.

§ selectNewCanvas()

TCanvas * ParameterEvolutionPlotter::selectNewCanvas ( TString  title)
private

Create a new canvas and add it to the list of canvases.

Returns
pointer to the new canvas. Caller assumes ownership

Definition at line 277 of file ParameterEvolutionPlotter.cpp.

§ selectNewPad()

TVirtualPad * ParameterEvolutionPlotter::selectNewPad ( )
private

Definition at line 288 of file ParameterEvolutionPlotter.cpp.

§ updateCurrentCanvas()

void ParameterEvolutionPlotter::updateCurrentCanvas ( )
private

Update the current control plot canvas.

Definition at line 306 of file ParameterEvolutionPlotter.cpp.

Member Data Documentation

§ allResults

vector<RooSlimFitResult*> ParameterEvolutionPlotter::allResults
private

all results of all scan points

Definition at line 48 of file ParameterEvolutionPlotter.h.

§ arg

OptParser* ParameterEvolutionPlotter::arg
private

command line arguments

Definition at line 46 of file ParameterEvolutionPlotter.h.

§ curveResults

vector<RooSlimFitResult*> ParameterEvolutionPlotter::curveResults
private

only the results of scan points that were accepted into the CL curve

Definition at line 49 of file ParameterEvolutionPlotter.h.

§ m_canvases

vector<TCanvas*> ParameterEvolutionPlotter::m_canvases
private

Pointers to the canvases of the plots, see selectNewCanvas().

Definition at line 56 of file ParameterEvolutionPlotter.h.

§ m_localMinPositions

vector<float> ParameterEvolutionPlotter::m_localMinPositions
private

positions of the local minima in scan steps

Definition at line 55 of file ParameterEvolutionPlotter.h.

§ m_padId

int ParameterEvolutionPlotter::m_padId
private

ID of currently selected pad, see selectNewPad().

Definition at line 57 of file ParameterEvolutionPlotter.h.

§ name

TString ParameterEvolutionPlotter::name
private

scanner name, part of the file name of the plots

Definition at line 51 of file ParameterEvolutionPlotter.h.

§ obsName

TString ParameterEvolutionPlotter::obsName
private

name of observables set inside the workspace

Definition at line 53 of file ParameterEvolutionPlotter.h.

§ parsName

TString ParameterEvolutionPlotter::parsName
private

name of parameter set inside the workspace

Definition at line 52 of file ParameterEvolutionPlotter.h.

§ scanVar1

TString ParameterEvolutionPlotter::scanVar1
private

name of the can variable

Definition at line 54 of file ParameterEvolutionPlotter.h.

§ title

TString ParameterEvolutionPlotter::title
private

canvas title

Definition at line 50 of file ParameterEvolutionPlotter.h.

§ w

RooWorkspace* ParameterEvolutionPlotter::w
private

a clone of the scanner's workspace

Definition at line 47 of file ParameterEvolutionPlotter.h.


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