![]() |
MaCh3 2.2.1
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, double minRange, double maxRange) |
KS: function which looks for minimum in given range. | |
bool | IsHistogramAllOnes (TH1D *hist, double tolerance=0.001, int max_failures=100) |
HW: Check if histogram is flat within a given tolerance. | |
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< TGraph *, TGraph * > | CreateMinMaxBand (TH1D *hist, Color_t color) |
HW: Create a band of minimum and maximum values from a histogram. | |
TGraph * | CalculateMinMaxBand (const std::vector< TH1D * > &histograms, Color_t color) |
std::pair< TH1D *, TH1D * > | CalculateMinMaxHistograms (const std::vector< TH1D * > &histograms) |
void | ProcessAutoCorrelationDirectory (TDirectoryFile *autocor_dir, TH1D *&average_hist, int ¶meter_count, std::vector< TH1D * > &histograms) |
void | ProcessDiagnosticFile (const TString &file_path, TH1D *&average_hist, int ¶meter_count, std::vector< TH1D * > &histograms) |
TH1D * | AutocorrProcessInputs (const TString &input_file, std::vector< TH1D * > &histograms) |
void | CompareAverageAC (const std::vector< std::vector< TH1D * > > &histograms, const std::vector< 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.
TH1D * AutocorrProcessInputs | ( | const TString & | input_file, |
std::vector< TH1D * > & | histograms | ||
) |
Definition at line 445 of file PlotMCMCDiag.cpp.
TGraph * CalculateMinMaxBand | ( | const std::vector< TH1D * > & | histograms, |
Color_t | color | ||
) |
Definition at line 323 of file PlotMCMCDiag.cpp.
std::pair< TH1D *, TH1D * > CalculateMinMaxHistograms | ( | const std::vector< TH1D * > & | histograms | ) |
Definition at line 359 of file PlotMCMCDiag.cpp.
void CompareAverageAC | ( | const std::vector< std::vector< TH1D * > > & | histograms, |
const std::vector< 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 469 of file PlotMCMCDiag.cpp.
std::pair< TGraph *, TGraph * > CreateMinMaxBand | ( | TH1D * | hist, |
Color_t | color | ||
) |
HW: Create a band of minimum and maximum values from a histogram.
Definition at line 300 of file PlotMCMCDiag.cpp.
double GetMinimumInRange | ( | TH1D * | hist, |
double | minRange, | ||
double | maxRange | ||
) |
KS: function which looks for minimum in given range.
Definition at line 20 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 37 of file PlotMCMCDiag.cpp.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 590 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 54 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 184 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 560 of file PlotMCMCDiag.cpp.
void ProcessAutoCorrelationDirectory | ( | TDirectoryFile * | autocor_dir, |
TH1D *& | average_hist, | ||
int & | parameter_count, | ||
std::vector< TH1D * > & | histograms | ||
) |
Definition at line 386 of file PlotMCMCDiag.cpp.
void ProcessDiagnosticFile | ( | const TString & | file_path, |
TH1D *& | average_hist, | ||
int & | parameter_count, | ||
std::vector< TH1D * > & | histograms | ||
) |
Definition at line 422 of file PlotMCMCDiag.cpp.
TString DUMMYFILE = "DummyFile" |
Definition at line 14 of file PlotMCMCDiag.cpp.
TString DUMMYNAME = "DummyName" |
Definition at line 15 of file PlotMCMCDiag.cpp.