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

Class to make control plots of Plugin toys. More...

#include <ControlPlots.h>

Collaboration diagram for ControlPlots:
Collaboration graph
[legend]

Public Member Functions

 ControlPlots (ToyTree *tt)
 
void ctrlPlotChi2 ()
 Make chi2 summary control plots. More...
 
void ctrlPlotChi2Distribution ()
 Plot the deltaChi2 distribution of the toys in bins of the scan point, compare to the Gaussian assumption (i.e. More...
 
void ctrlPlotChi2Parabola ()
 Plot deltaChi2 of the toys versus the scan variable. More...
 
void ctrlPlotMore (MethodProbScan *profileLH)
 Some more control plots. More...
 
void ctrlPlotNuisances ()
 Plot all fit results of the nuisances against the scan variable. More...
 
void ctrlPlotObservables ()
 Plot all observables against the scan variable. More...
 
void ctrlPlotPvalue ()
 Make p-value control plots. More...
 
void saveCtrlPlots ()
 Save all control plots that were created so far. More...
 
 ~ControlPlots ()
 

Private Member Functions

void makePlotsNice (TString htemp="htemp", TString Graph="Graph")
 Apply some generic beautifications to histograms on the ROOT stack. More...
 
TCanvas * selectNewCanvas (TString title)
 
TVirtualPad * selectNewPad ()
 
void updateCurrentCanvas ()
 Update the current control plot canvas. More...
 

Private Attributes

OptParserarg
 command line arguments More...
 
int ctrlPadId
 ID of currently selected pad, see selectNewPad(). More...
 
vector< TCanvas * > ctrlPlotCanvases
 Pointers to the canvases of the control plots, see selectNewCanvas(). More...
 
TCut ctrlPlotCuts
 Cuts that are applied to all control plots. More...
 
TString name
 combiner name, ending up in titles and file names More...
 
TTree * t
 the tree More...
 
ToyTreett
 the toy tree More...
 

Detailed Description

Class to make control plots of Plugin toys.

Definition at line 30 of file ControlPlots.h.

Constructor & Destructor Documentation

§ ControlPlots()

ControlPlots::ControlPlots ( ToyTree tt)

Definition at line 3 of file ControlPlots.cpp.

§ ~ControlPlots()

ControlPlots::~ControlPlots ( )

Definition at line 16 of file ControlPlots.cpp.

Member Function Documentation

§ ctrlPlotChi2()

void ControlPlots::ctrlPlotChi2 ( )

Make chi2 summary control plots.

Definition at line 106 of file ControlPlots.cpp.

§ ctrlPlotChi2Distribution()

void ControlPlots::ctrlPlotChi2Distribution ( )

Plot the deltaChi2 distribution of the toys in bins of the scan point, compare to the Gaussian assumption (i.e.

overlay a chi2 distribution with 1 nodf).

Definition at line 392 of file ControlPlots.cpp.

§ ctrlPlotChi2Parabola()

void ControlPlots::ctrlPlotChi2Parabola ( )

Plot deltaChi2 of the toys versus the scan variable.

Definition at line 431 of file ControlPlots.cpp.

§ ctrlPlotMore()

void ControlPlots::ctrlPlotMore ( MethodProbScan profileLH)

Some more control plots.

Definition at line 474 of file ControlPlots.cpp.

§ ctrlPlotNuisances()

void ControlPlots::ctrlPlotNuisances ( )

Plot all fit results of the nuisances against the scan variable.

Cuts are defined in the constructor (ctrlPlotCuts).

Definition at line 249 of file ControlPlots.cpp.

§ ctrlPlotObservables()

void ControlPlots::ctrlPlotObservables ( )

Plot all observables against the scan variable.

Cuts are defined in the constructor (ctrlPlotCuts). Overlay the theory parameters, which is where the toys where generated.

Definition at line 346 of file ControlPlots.cpp.

§ ctrlPlotPvalue()

void ControlPlots::ctrlPlotPvalue ( )

Make p-value control plots.

Definition at line 23 of file ControlPlots.cpp.

§ makePlotsNice()

void ControlPlots::makePlotsNice ( TString  htemp = "htemp",
TString  Graph = "Graph" 
)
private

Apply some generic beautifications to histograms on the ROOT stack.

Parameters
htempName of the histogram to find.
GraphName of the graph to find.

Definition at line 626 of file ControlPlots.cpp.

§ saveCtrlPlots()

void ControlPlots::saveCtrlPlots ( )

Save all control plots that were created so far.

Definition at line 601 of file ControlPlots.cpp.

§ selectNewCanvas()

TCanvas * ControlPlots::selectNewCanvas ( TString  title)
private

Definition at line 568 of file ControlPlots.cpp.

§ selectNewPad()

TVirtualPad * ControlPlots::selectNewPad ( )
private

Definition at line 579 of file ControlPlots.cpp.

§ updateCurrentCanvas()

void ControlPlots::updateCurrentCanvas ( )
private

Update the current control plot canvas.

Definition at line 615 of file ControlPlots.cpp.

Member Data Documentation

§ arg

OptParser* ControlPlots::arg
private

command line arguments

Definition at line 56 of file ControlPlots.h.

§ ctrlPadId

int ControlPlots::ctrlPadId
private

ID of currently selected pad, see selectNewPad().

Definition at line 58 of file ControlPlots.h.

§ ctrlPlotCanvases

vector<TCanvas*> ControlPlots::ctrlPlotCanvases
private

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

Definition at line 57 of file ControlPlots.h.

§ ctrlPlotCuts

TCut ControlPlots::ctrlPlotCuts
private

Cuts that are applied to all control plots.

Definition at line 59 of file ControlPlots.h.

§ name

TString ControlPlots::name
private

combiner name, ending up in titles and file names

Definition at line 53 of file ControlPlots.h.

§ t

TTree* ControlPlots::t
private

the tree

Definition at line 55 of file ControlPlots.h.

§ tt

ToyTree* ControlPlots::tt
private

the toy tree

Definition at line 54 of file ControlPlots.h.


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