![]() |
MaCh3
2.2.3
Reference Guide
|
KS: This script is used to analyse output form DiagMCMC. More...
#include "Fitters/MCMCProcessor.h"
#include "Samples/HistogramUtils.h"
#include "THStack.h"
#include "TGraphAsymmErrors.h"
#include "TLegend.h"
#include <TSystem.h>
Go to the source code of this file.
Functions | |
double | GetMinimumInRange (TH1D *hist, const double minRange, const double maxRange) |
KS: function which looks for minimum in given range. More... | |
bool | IsHistogramAllOnes (TH1D *hist, double tolerance=0.001, int max_failures=100) |
HW: Check if histogram is flat within a given tolerance. More... | |
void | MakePlot (TString fname1, TString flabel1, TString fname2, TString flabel2, TString fname3, TString flabel3, TString fname4, TString flabel4) |
void | PlotAutoCorr (TString fname1, TString flabel1, TString fname2, TString flabel2, TString fname3, TString flabel3, TString fname4, TString flabel4) |
std::pair< std::unique_ptr< TGraph >, std::unique_ptr< TGraph > > | CreateMinMaxBand (TH1D *hist, Color_t color) |
HW: Create a band of minimum and maximum values from a histogram. More... | |
std::unique_ptr< TGraphAsymmErrors > | CalculateMinMaxBand (const std::vector< TH1D * > &histograms, Color_t color) |
std::pair< std::unique_ptr< TH1D >, std::unique_ptr< TH1D > > | CalculateMinMaxHistograms (const std::vector< TH1D * > &histograms) |
void | ProcessAutoCorrelationDirectory (TDirectoryFile *autocor_dir, std::unique_ptr< TH1D > &average_hist, int ¶meter_count, std::vector< TH1D * > &histograms) |
void | ProcessDiagnosticFile (const TString &file_path, std::unique_ptr< TH1D > &average_hist, int ¶meter_count, std::vector< TH1D * > &histograms) |
std::unique_ptr< TH1D > | AutocorrProcessInputs (const TString &input_file, std::vector< TH1D * > &histograms) |
void | CompareAverageAC (const std::vector< std::vector< TH1D * >> &histograms, const std::vector< std::unique_ptr< TH1D >> &averages, const std::vector< TString > &hist_labels, const TString &output_name, bool draw_min_max=true, bool draw_all=false, bool draw_errors=true) |
void | PlotAverageACMult (std::vector< TString > input_files, std::vector< TString > hist_labels, const TString &output_name, bool draw_min_max=true) |
int | main (int argc, char *argv[]) |
Variables | |
TString | DUMMYFILE = "DummyFile" |
TString | DUMMYNAME = "DummyName" |
KS: This script is used to analyse output form DiagMCMC.
Definition in file PlotMCMCDiag.cpp.
std::unique_ptr<TH1D> AutocorrProcessInputs | ( | const TString & | input_file, |
std::vector< TH1D * > & | histograms | ||
) |
Definition at line 428 of file PlotMCMCDiag.cpp.
std::unique_ptr<TGraphAsymmErrors> CalculateMinMaxBand | ( | const std::vector< TH1D * > & | histograms, |
Color_t | color | ||
) |
Definition at line 309 of file PlotMCMCDiag.cpp.
std::pair<std::unique_ptr<TH1D>, std::unique_ptr<TH1D> > CalculateMinMaxHistograms | ( | const std::vector< TH1D * > & | histograms | ) |
Definition at line 344 of file PlotMCMCDiag.cpp.
void CompareAverageAC | ( | const std::vector< std::vector< TH1D * >> & | histograms, |
const std::vector< std::unique_ptr< TH1D >> & | averages, | ||
const std::vector< TString > & | hist_labels, | ||
const TString & | output_name, | ||
bool | draw_min_max = true , |
||
bool | draw_all = false , |
||
bool | draw_errors = true |
||
) |
Definition at line 452 of file PlotMCMCDiag.cpp.
std::pair<std::unique_ptr<TGraph>, std::unique_ptr<TGraph> > CreateMinMaxBand | ( | TH1D * | hist, |
Color_t | color | ||
) |
HW: Create a band of minimum and maximum values from a histogram.
Definition at line 286 of file PlotMCMCDiag.cpp.
double GetMinimumInRange | ( | TH1D * | hist, |
const double | minRange, | ||
const double | maxRange | ||
) |
KS: function which looks for minimum in given range.
Definition at line 21 of file PlotMCMCDiag.cpp.
bool IsHistogramAllOnes | ( | TH1D * | hist, |
double | tolerance = 0.001 , |
||
int | max_failures = 100 |
||
) |
HW: Check if histogram is flat within a given tolerance.
Definition at line 38 of file PlotMCMCDiag.cpp.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 566 of file PlotMCMCDiag.cpp.
void MakePlot | ( | TString | fname1, |
TString | flabel1, | ||
TString | fname2, | ||
TString | flabel2, | ||
TString | fname3, | ||
TString | flabel3, | ||
TString | fname4, | ||
TString | flabel4 | ||
) |
Definition at line 55 of file PlotMCMCDiag.cpp.
void PlotAutoCorr | ( | TString | fname1, |
TString | flabel1, | ||
TString | fname2, | ||
TString | flabel2, | ||
TString | fname3, | ||
TString | flabel3, | ||
TString | fname4, | ||
TString | flabel4 | ||
) |
Definition at line 178 of file PlotMCMCDiag.cpp.
void PlotAverageACMult | ( | std::vector< TString > | input_files, |
std::vector< TString > | hist_labels, | ||
const TString & | output_name, | ||
bool | draw_min_max = true |
||
) |
Definition at line 536 of file PlotMCMCDiag.cpp.
void ProcessAutoCorrelationDirectory | ( | TDirectoryFile * | autocor_dir, |
std::unique_ptr< TH1D > & | average_hist, | ||
int & | parameter_count, | ||
std::vector< TH1D * > & | histograms | ||
) |
Definition at line 370 of file PlotMCMCDiag.cpp.
void ProcessDiagnosticFile | ( | const TString & | file_path, |
std::unique_ptr< TH1D > & | average_hist, | ||
int & | parameter_count, | ||
std::vector< TH1D * > & | histograms | ||
) |
Definition at line 405 of file PlotMCMCDiag.cpp.
TString DUMMYFILE = "DummyFile" |
Definition at line 16 of file PlotMCMCDiag.cpp.
TString DUMMYNAME = "DummyName" |
Definition at line 17 of file PlotMCMCDiag.cpp.