|
Crombie Tools
|
#include <algorithm>#include <limits>#include <set>#include "TFile.h"#include "TTree.h"#include "TF1.h"#include "TH1D.h"#include "TH1.h"#include "TGraphErrors.h"#include "TMath.h"#include "TCanvas.h"#include "Debug.h"#include "UncertaintyInfo.h"Go to the source code of this file.
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... | |