Crombie Tools
|
Users can access objects via the CrombieTools.PlotTools module. More...
Classes | |
class | EnvelopeInfo |
Similar to PlotInfo, but slightly different information for envelopes. More... | |
class | PlotBase |
Base class for all plotting classes. More... | |
class | PlotBrazil |
Can be created using the CrombieTools.PlotTools.PlotBrazil module. More... | |
class | PlotHists |
A flexible class that plots histograms. More... | |
class | PlotInfo |
Structure for holding information about plots. More... | |
class | PlotPreparer |
Class used for making lots of plots in a single pass over files. More... | |
class | PlotROC |
Plotter for ROC curves and significance plots. More... | |
class | PlotStack |
Class used for making stack plots. More... | |
class | PlotTriggerEfficiency |
A class that creates trigger efficiency plots using a base cut, a variable to plot, and a trigger. More... | |
class | QuickPlot |
A less flexible class that quickly compares shapes from the MCConfig. More... | |
class | RatioComparison |
This class is used to quickly make ratios between control regions and compare the data and Monte Carlo shapes. More... | |
Functions | |
void | AddNecessaryBranches (std::set< TString > &needed, TTree *tree, TString expr) |
Adds branches needed from tree for formula expression into the set of needed. More... | |
void | ApplyUncertainty (TH1 *theHist, UncertaintyInfo *theUnc) |
Applies an uncertainty file to a histogram. More... | |
void | Division (TF1 *&PlotFunc, TF1 *RatioFunc) |
Divides two TF1 by each other, replacing the first one. More... | |
void | Division (TGraph *PlotGraph, TGraph *RatioGraph) |
Divides two TGraphs. More... | |
void | Division (TH1 *PlotHist, TH1 *RatioHist) |
Divides two TH1s. If both contain bins with 0, the content is set to 1. More... | |
template<class T > | |
std::vector< T * > | GetRatioToLine (std::vector< T *> InLines, T *RatioGraph) |
Gets the ratios of one vector of lines to a single line. More... | |
template<class T > | |
std::vector< T * > | GetRatioToLines (std::vector< T *> InLines, std::vector< T *> RatioLines) |
Gets the ratios of two equally sized vectors of lines. More... | |
std::vector< TGraphErrors * > | GetRatioToPoint (std::vector< TGraphErrors *> InGraphs, Double_t RatioPoint, Double_t PointError=0) |
Gets the ratio of TGraphErrors to a single point. More... | |
std::vector< TH1D * > | GetRatioToPoint (std::vector< TH1D *> InHists, Double_t RatioPoint, Double_t PointError=0) |
Gets the ratio of TH1Ds to a single point. More... | |
std::vector< TF1 * > | GetRatioToPoint (std::vector< TF1 *> InFuncs, Double_t RatioPoint, Double_t PointError=0) |
Gets the ratio of TF1s to a single point. More... | |
void | SetGraphErrorsForRatio (TGraph *, TGraph *, Int_t) |
Does nothing, just here for template purposes. More... | |
void | SetGraphErrorsForRatio (TGraphErrors *PlotGraph, TGraphErrors *RatioGraph, Int_t iPoint) |
Sets errors after dividing two TGraphErrors. More... | |
template<class T > | |
void | SetupCanvas (Debug *, std::vector< T *>, TCanvas *, Double_t, Double_t, TString, TString) |
Holds the action of nothing for setting up most canvases. More... | |
template<> | |
void | SetupCanvas (Debug *debugger, std::vector< TGraphErrors *> theLines, TCanvas *theCanvas, Double_t fAxisMin, Double_t fAxisMax, TString XLabel, TString YLabel) |
Draws a frame for canvases that will hold TGraphErrors. More... | |
void | SetZeroError (TF1 *theFunc) |
Sets the parameter errors in a TF1 to 0. More... | |
void | SetZeroError (TH1 *theHist) |
Sets the bin errors in a TH1 to 0. More... | |
void | SetZeroError (TGraphErrors *theGraph) |
Sets the point errors in a TGraphErrors to 0. More... | |
void | SetZeroError (TGraph *) |
Does nothing, just here for template purposes. More... | |
Users can access objects via the CrombieTools.PlotTools module.
Tools for making plots (and nothing else).
void AddNecessaryBranches | ( | std::set< TString > & | needed, |
TTree * | tree, | ||
TString | expr | ||
) |
#include <PlotUtils.h>
Adds branches needed from tree for formula expression into the set of needed.
Definition at line 276 of file PlotUtils.h.
References oldmaketree::branch.
Referenced by ClassImp(), and PlotPreparer::RunFile().
void ApplyUncertainty | ( | TH1 * | theHist, |
UncertaintyInfo * | theUnc | ||
) |
#include <PlotUtils.h>
Applies an uncertainty file to a histogram.
theHist | is the histogram to modify |
theUnc | is a pointer to the UncertaintyInfo to use |
The error of the histogram is adjusted by the following for each bin.
\[ e_{bin} = \sqrt{e_{bin,0}^2 + (y_{bin} \times unc_{bin})^2} \]
Definition at line 38 of file PlotUtils.h.
References UncertaintyInfo::fEndBin, UncertaintyInfo::fFileName, UncertaintyInfo::fHistName, and UncertaintyInfo::fStartBin.
Referenced by PlotHists::MakeHists().
void Division | ( | TF1 *& | PlotFunc, |
TF1 * | RatioFunc | ||
) |
#include <PlotUtils.h>
Divides two TF1 by each other, replacing the first one.
Definition at line 93 of file PlotUtils.h.
Referenced by GetRatioToLines(), and PlotHists::MakeHists().
void Division | ( | TGraph * | PlotGraph, |
TGraph * | RatioGraph | ||
) |
#include <PlotUtils.h>
Divides two TGraphs.
Definition at line 132 of file PlotUtils.h.
References SetGraphErrorsForRatio().
void Division | ( | TH1 * | PlotHist, |
TH1 * | RatioHist | ||
) |
#include <PlotUtils.h>
Divides two TH1s. If both contain bins with 0, the content is set to 1.
Definition at line 152 of file PlotUtils.h.
std::vector<T*> GetRatioToLine | ( | std::vector< T *> | InLines, |
T * | RatioGraph | ||
) |
#include <PlotUtils.h>
Gets the ratios of one vector of lines to a single line.
Definition at line 181 of file PlotUtils.h.
References GetRatioToLines().
Referenced by PlotBase::BaseCanvas(), and GetRatioToPoint().
std::vector<T*> GetRatioToLines | ( | std::vector< T *> | InLines, |
std::vector< T *> | RatioLines | ||
) |
#include <PlotUtils.h>
Gets the ratios of two equally sized vectors of lines.
Definition at line 165 of file PlotUtils.h.
References Division().
Referenced by GetRatioToLine().
std::vector<TGraphErrors*> GetRatioToPoint | ( | std::vector< TGraphErrors *> | InGraphs, |
Double_t | RatioPoint, | ||
Double_t | PointError = 0 |
||
) |
#include <PlotUtils.h>
Gets the ratio of TGraphErrors to a single point.
Definition at line 192 of file PlotUtils.h.
References GetRatioToLine().
std::vector<TH1D*> GetRatioToPoint | ( | std::vector< TH1D *> | InHists, |
Double_t | RatioPoint, | ||
Double_t | PointError = 0 |
||
) |
#include <PlotUtils.h>
Gets the ratio of TH1Ds to a single point.
Definition at line 207 of file PlotUtils.h.
References GetRatioToLine().
std::vector<TF1*> GetRatioToPoint | ( | std::vector< TF1 *> | InFuncs, |
Double_t | RatioPoint, | ||
Double_t | PointError = 0 |
||
) |
#include <PlotUtils.h>
Gets the ratio of TF1s to a single point.
Definition at line 221 of file PlotUtils.h.
References GetRatioToLine().
void SetGraphErrorsForRatio | ( | TGraph * | , |
TGraph * | , | ||
Int_t | |||
) |
#include <PlotUtils.h>
Does nothing, just here for template purposes.
Definition at line 115 of file PlotUtils.h.
Referenced by Division().
void SetGraphErrorsForRatio | ( | TGraphErrors * | PlotGraph, |
TGraphErrors * | RatioGraph, | ||
Int_t | iPoint | ||
) |
#include <PlotUtils.h>
Sets errors after dividing two TGraphErrors.
Definition at line 121 of file PlotUtils.h.
void SetupCanvas | ( | Debug * | , |
std::vector< T *> | , | ||
TCanvas * | , | ||
Double_t | , | ||
Double_t | , | ||
TString | , | ||
TString | |||
) |
#include <PlotUtils.h>
Holds the action of nothing for setting up most canvases.
Definition at line 232 of file PlotUtils.h.
Referenced by PlotBase::BaseCanvas().
void SetupCanvas | ( | Debug * | debugger, |
std::vector< TGraphErrors *> | theLines, | ||
TCanvas * | theCanvas, | ||
Double_t | fAxisMin, | ||
Double_t | fAxisMax, | ||
TString | XLabel, | ||
TString | YLabel | ||
) |
#include <PlotUtils.h>
Draws a frame for canvases that will hold TGraphErrors.
Definition at line 238 of file PlotUtils.h.
References Debug::eDebug, and Debug::Message().
void SetZeroError | ( | TF1 * | theFunc | ) |
#include <PlotUtils.h>
Sets the parameter errors in a TF1 to 0.
Definition at line 60 of file PlotUtils.h.
void SetZeroError | ( | TH1 * | theHist | ) |
#include <PlotUtils.h>
Sets the bin errors in a TH1 to 0.
Definition at line 69 of file PlotUtils.h.
void SetZeroError | ( | TGraphErrors * | theGraph | ) |
#include <PlotUtils.h>
Sets the point errors in a TGraphErrors to 0.
Definition at line 78 of file PlotUtils.h.
void SetZeroError | ( | TGraph * | ) |
#include <PlotUtils.h>
Does nothing, just here for template purposes.
Definition at line 87 of file PlotUtils.h.