![]() |
MaCh3
2.4.2
Reference Guide
|
#include "PlottingUtils/PlottingUtils.h"#include "PlottingUtils/PlottingManager.h"Go to the source code of this file.
Functions | |
| void | FindKnot (std::vector< double > &SigmaValues, const std::string &dirname, const std::string &subdirname, const std::string &ProjName, std::string histname) |
| Histograms have name like ND_CC0pi_1DProj0_Norm_Param_0_sig_n3.00_val_0.25. This code is trying to extract sigma names. More... | |
| std::unique_ptr< TLegend > | MakeLegend (double x1, double y1, double x2, double y2, double textSize=0.04) |
| void | ScanInput (std::vector< std::string > &DialNameVecr, std::vector< std::string > &SampleNameVec, std::vector< int > &SampleDimVec, std::vector< double > &SigmaValues, const std::string &filename) |
| Scan inputs to figure out dial name and used sample names. More... | |
| bool | SkipDirectory (const std::vector< std::string > &ExcludeString, const std::vector< std::string > &IncludeString, const std::string &dirname) |
| Check whether to skip directory or not based on defined strings. More... | |
| std::vector< double > | GetDialValues (const std::vector< std::unique_ptr< TH1D >> &Poly) |
| Extracts dial value for from histogram title. More... | |
| void | InitializePads (TCanvas *canv, TPad *&pad1, TPad *&pad2, double Pad1Bottom=0.25, double Pad2Top=0.25) |
| void | MakeRatio (const std::vector< std::unique_ptr< TH1D >> &Poly, std::vector< std::unique_ptr< TH1D >> &Ratio) |
| void | PlotRatio (const std::vector< std::unique_ptr< TH1D >> &Poly, const std::unique_ptr< TCanvas > &canv, const std::string &Title, const std::string &outfilename) |
| void | CompareSigVar1D (const std::string &filename, const YAML::Node &Settings) |
| void | PlotRatio2D (const std::vector< std::unique_ptr< TH2 >> &Poly, const std::unique_ptr< TCanvas > &canv, const std::string &Title, const std::string &outfilename) |
| void | CompareSigVar2D (const std::string &filename, const YAML::Node &Settings) |
| void | PlotEventRate (const std::vector< std::vector< std::unique_ptr< TH1D >>> &Poly, const std::unique_ptr< TCanvas > &canv, const std::string &Title, const std::string &outfilename) |
| void | MakeEventRatePlot (const std::string &filename, const YAML::Node &Settings) |
| void | PlotSigVar1D (const std::vector< std::vector< std::unique_ptr< TH1D >>> &Projection, const std::unique_ptr< TCanvas > &canv, const std::string &Title, const std::string &outfilename, const std::vector< std::string > &ParamNames, const std::vector< int > &ParamColour) |
| void | OverlaySigVar1D (const std::string &filename, const YAML::Node &Settings) |
| int | main (int argc, char **argv) |
Variables | |
| std::vector< std::string > | DialNameVector |
| std::vector< std::string > | SampleNameVector |
| std::vector< int > | SampleMaxDim |
| std::vector< double > | sigmaArray |
| int | PriorKnot = M3::_BAD_INT_ |
| constexpr const int | NVars = 5 |
| constexpr const double | ScalingFactor = 10 |
| constexpr Color_t | Colours [NVars] = {kRed, kGreen+1, kBlack, kBlue+1, kOrange+1} |
| constexpr ELineStyle | Style [NVars] = {kDotted, kDashed, kSolid, kDashDotted, kDashDotted} |
| MaCh3Plotting::PlottingManager * | PlotMan |
Definition in file PlotSigmaVariation.cpp.
| void CompareSigVar1D | ( | const std::string & | filename, |
| const YAML::Node & | Settings | ||
| ) |
Definition at line 376 of file PlotSigmaVariation.cpp.
| void CompareSigVar2D | ( | const std::string & | filename, |
| const YAML::Node & | Settings | ||
| ) |
Definition at line 491 of file PlotSigmaVariation.cpp.
| void FindKnot | ( | std::vector< double > & | SigmaValues, |
| const std::string & | dirname, | ||
| const std::string & | subdirname, | ||
| const std::string & | ProjName, | ||
| std::string | histname | ||
| ) |
Histograms have name like ND_CC0pi_1DProj0_Norm_Param_0_sig_n3.00_val_0.25. This code is trying to extract sigma names.
Definition at line 30 of file PlotSigmaVariation.cpp.
| std::vector<double> GetDialValues | ( | const std::vector< std::unique_ptr< TH1D >> & | Poly | ) |
Extracts dial value for from histogram title.
Definition at line 204 of file PlotSigmaVariation.cpp.
| void InitializePads | ( | TCanvas * | canv, |
| TPad *& | pad1, | ||
| TPad *& | pad2, | ||
| double | Pad1Bottom = 0.25, |
||
| double | Pad2Top = 0.25 |
||
| ) |
Definition at line 223 of file PlotSigmaVariation.cpp.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 824 of file PlotSigmaVariation.cpp.
| void MakeEventRatePlot | ( | const std::string & | filename, |
| const YAML::Node & | Settings | ||
| ) |
Definition at line 643 of file PlotSigmaVariation.cpp.
| std::unique_ptr<TLegend> MakeLegend | ( | double | x1, |
| double | y1, | ||
| double | x2, | ||
| double | y2, | ||
| double | textSize = 0.04 |
||
| ) |
Definition at line 79 of file PlotSigmaVariation.cpp.
| void MakeRatio | ( | const std::vector< std::unique_ptr< TH1D >> & | Poly, |
| std::vector< std::unique_ptr< TH1D >> & | Ratio | ||
| ) |
Definition at line 254 of file PlotSigmaVariation.cpp.
| void OverlaySigVar1D | ( | const std::string & | filename, |
| const YAML::Node & | Settings | ||
| ) |
Definition at line 756 of file PlotSigmaVariation.cpp.
| void PlotEventRate | ( | const std::vector< std::vector< std::unique_ptr< TH1D >>> & | Poly, |
| const std::unique_ptr< TCanvas > & | canv, | ||
| const std::string & | Title, | ||
| const std::string & | outfilename | ||
| ) |
Definition at line 560 of file PlotSigmaVariation.cpp.
| void PlotRatio | ( | const std::vector< std::unique_ptr< TH1D >> & | Poly, |
| const std::unique_ptr< TCanvas > & | canv, | ||
| const std::string & | Title, | ||
| const std::string & | outfilename | ||
| ) |
Definition at line 288 of file PlotSigmaVariation.cpp.
| void PlotRatio2D | ( | const std::vector< std::unique_ptr< TH2 >> & | Poly, |
| const std::unique_ptr< TCanvas > & | canv, | ||
| const std::string & | Title, | ||
| const std::string & | outfilename | ||
| ) |
Definition at line 440 of file PlotSigmaVariation.cpp.
| void PlotSigVar1D | ( | const std::vector< std::vector< std::unique_ptr< TH1D >>> & | Projection, |
| const std::unique_ptr< TCanvas > & | canv, | ||
| const std::string & | Title, | ||
| const std::string & | outfilename, | ||
| const std::vector< std::string > & | ParamNames, | ||
| const std::vector< int > & | ParamColour | ||
| ) |
Definition at line 698 of file PlotSigmaVariation.cpp.
| void ScanInput | ( | std::vector< std::string > & | DialNameVecr, |
| std::vector< std::string > & | SampleNameVec, | ||
| std::vector< int > & | SampleDimVec, | ||
| std::vector< double > & | SigmaValues, | ||
| const std::string & | filename | ||
| ) |
Scan inputs to figure out dial name and used sample names.
Definition at line 94 of file PlotSigmaVariation.cpp.
| bool SkipDirectory | ( | const std::vector< std::string > & | ExcludeString, |
| const std::vector< std::string > & | IncludeString, | ||
| const std::string & | dirname | ||
| ) |
Check whether to skip directory or not based on defined strings.
Definition at line 189 of file PlotSigmaVariation.cpp.
|
constexpr |
Definition at line 23 of file PlotSigmaVariation.cpp.
| std::vector<std::string> DialNameVector |
Definition at line 13 of file PlotSigmaVariation.cpp.
|
constexpr |
Definition at line 20 of file PlotSigmaVariation.cpp.
| MaCh3Plotting::PlottingManager* PlotMan |
Definition at line 27 of file PlotSigmaVariation.cpp.
| int PriorKnot = M3::_BAD_INT_ |
Definition at line 18 of file PlotSigmaVariation.cpp.
| std::vector<int> SampleMaxDim |
Definition at line 15 of file PlotSigmaVariation.cpp.
| std::vector<std::string> SampleNameVector |
Definition at line 14 of file PlotSigmaVariation.cpp.
|
constexpr |
Definition at line 21 of file PlotSigmaVariation.cpp.
| std::vector<double> sigmaArray |
Definition at line 16 of file PlotSigmaVariation.cpp.
|
constexpr |
Definition at line 24 of file PlotSigmaVariation.cpp.