MaCh3  2.6.1
Reference Guide
Namespaces | Functions
PlottingUtils.cpp File Reference
#include "PlottingUtils.h"
Include dependency graph for PlottingUtils.cpp:

Go to the source code of this file.

Namespaces

 M3
 Main namespace for MaCh3 software.
 
 M3::Plotting
 Flexible, experiment-agnostic plotting utilities for MaCh3.
 

Functions

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. More...
 
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. More...
 
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. More...
 
void M3::Plotting::SetSymmetricRatioRange (const std::vector< std::unique_ptr< TH1D >> &RatioPlot)
 Set a symmetric Y-axis range around 1 for ratio plots. More...