![]() |
MaCh3
2.6.1
Reference Guide
|
Flexible, experiment-agnostic plotting utilities for MaCh3. More...
Classes | |
| struct | InputFile |
| Struct which wraps around the actual input file and also holds general information, and data from the file to be used by other classes. More... | |
| class | InputManager |
| This guy talks to the input files and is intended to smooth over the fact that our OA fitters use such a beautiful and diverse range of output file structures. More... | |
| class | PlottingManager |
| The main class to be used in plotting scripts. More... | |
| class | StyleManager |
| EW: provides centralized styling utilities for plots, including name prettification and style application. More... | |
Enumerations | |
| enum | fileTypeEnum { kLLH , kPostFit , kMCMC , kSigmaVar , kNFileTypes } |
| Types of possible file that can be read. More... | |
Functions | |
| TH1D | TGraphToTH1D (const TGraph &graph, const std::string &newName="", const std::string &newTitle="") |
| This handy little function lets you interpret a TGraph as a TH1D. More... | |
| std::vector< std::vector< double > > | TGraphToVector (const TGraph &graph) |
| This handy little function lets you interpret a TGraph as a vector containing the same data. More... | |
| std::vector< std::vector< double > > | TGraphToVector (const TGraph2D &graph) |
| This handy little function lets you interpret a 2d TGraph as a vector containing the same data. More... | |
| void | SetSymmetricRatioRange (const std::vector< std::unique_ptr< TH1D >> &RatioPlot) |
| Set a symmetric Y-axis range around 1 for ratio plots. More... | |
Flexible, experiment-agnostic plotting utilities for MaCh3.
Types of possible file that can be read.
| Enumerator | |
|---|---|
| kLLH | Log Likelihood scan. |
| kPostFit | Processed post fit errors. |
| kMCMC | MCMC chain. |
| kSigmaVar | Sigma variations. |
| kNFileTypes | Number of types of file. |
Definition at line 16 of file InputManager.h.
| void M3::Plotting::SetSymmetricRatioRange | ( | const std::vector< std::unique_ptr< TH1D >> & | RatioPlot | ) |
Set a symmetric Y-axis range around 1 for ratio plots.
Definition at line 111 of file PlottingUtils.cpp.
| TH1D M3::Plotting::TGraphToTH1D | ( | const TGraph & | graph, |
| const std::string & | newName, | ||
| const std::string & | newTitle | ||
| ) |
This handy little function lets you interpret a TGraph as a TH1D.
It will go through your provided graph and make a histogram binning by taking the midpoints of all the graph points x values, then fill the histogram with the graphs y values. For the first and last points it will extend the binning out of the graph bounds using the width between the outermost and second outermost points. This can be useful if e.g. you want to draw cumulative stacks of LLH scans.
| graph | The graph you want to convert. |
| newName | The new name you want to give to the histogram. If not specified, will just use the name of the graph. |
| newTitle | The new title you want to give to the histogram. If not specified, will just use the title of the graph. |
Definition at line 10 of file PlottingUtils.cpp.
| std::vector< std::vector< double > > M3::Plotting::TGraphToVector | ( | const TGraph & | graph | ) |
This handy little function lets you interpret a TGraph as a vector containing the same data.
| graph | The graph you want to convert. |
Definition at line 63 of file PlottingUtils.cpp.
| std::vector< std::vector< double > > M3::Plotting::TGraphToVector | ( | const TGraph2D & | graph | ) |
This handy little function lets you interpret a 2d TGraph as a vector containing the same data.
| graph | The graph you want to convert. |
Definition at line 86 of file PlottingUtils.cpp.