![]() |
MaCh3
2.2.3
Reference Guide
|
#include <iostream>
#include <sstream>
#include <iomanip>
#include <algorithm>
#include "plottingUtils/plottingUtils.h"
#include "plottingUtils/plottingManager.h"
#include "TROOT.h"
#include "TGaxis.h"
#include "TString.h"
#include "TStyle.h"
#include "TH1.h"
#include "TH2.h"
#include "TF1.h"
#include "TLegend.h"
#include "TPad.h"
#include "TCanvas.h"
#include "TTree.h"
#include "TFile.h"
#include "TVectorD.h"
#include "TCandle.h"
#include "TFrame.h"
#include "TGraphAsymmErrors.h"
Go to the source code of this file.
Functions | |
void | copyParToBlockHist (const int localBin, const std::string ¶mName, TH1D *blockHist, const std::string &type, const int fileId, const bool setLabels=true) |
void | InitializePads (TCanvas *canvas, TPad *&pad3, TPad *&pad4) |
void | CopyViolinToBlock (TH2D *FullViolin, TH2D *ReducedViolin, const std::vector< std::string > &ParamNames) |
void | PrettifyTitles (TH1D *Hist) |
void | PrettifyTitles (TH2D *Hist) |
bool | ReadSettings (std::shared_ptr< TFile > File1) |
std::unique_ptr< TH1D > | makeRatio (TH1D *PrefitCopy, TH1D *PostfitCopy, bool setAxes) |
void | DrawPlots (TCanvas *plotCanv, TH1D *PrefitCopy, const std::vector< std::unique_ptr< TH1D >> &PostfitVec, TPad *mainPad, TPad *ratioPad) |
void | MakeXsecPlots () |
void | MakeFluxPlots () |
void | MakeNDDetPlots () |
void | MakeFDDetPlots () |
void | MakeXsecRidgePlots () |
void | GetPostfitParamPlots () |
std::unique_ptr< TGraphAsymmErrors > | MakeTGraphAsymmErrors (const std::shared_ptr< TFile > &File, std::vector< int > Index={}) |
void | GetViolinPlots (std::string FileName1="", std::string FileName2="") |
KS: Make fancy violin plots. More... | |
void | Get2DComparison (const std::string &FileName1, const std::string &FileName2) |
KS: Make comparison of 2D Posteriors. More... | |
int | main (int argc, char *argv[]) |
Variables | |
MaCh3Plotting::PlottingManager * | man |
TH1D * | Prefit |
TH2D * | Violin |
TH2D * | Violin2 |
TH2D * | ViolinPre |
int | NDParameters |
int | NDParametersStartingPos |
int | FDParameters |
int | FDParametersStartingPos |
std::vector< int > | NDSamplesBins |
std::vector< std::string > | NDSamplesNames |
int | nBins |
TCanvas * | canv |
std::string | SaveName |
TPad * | p3 |
TPad * | p4 |
Color_t | PlotColor [] = {kRed, kBlack, kBlue, kGreen} |
std::string | plotType |
std::vector< std::unique_ptr< TH1D > > | PostfitHistVec |
This script generates post-fit parameter plots. The central postfit value is taken as the Highest Posterior Density (HPD), but can be easily changed to another method such as Gaussian. Be cautious as parameter names and the number of parameters per plot are currently hardcoded.
Usage:
Definition in file GetPostfitParamPlots.cpp.
void copyParToBlockHist | ( | const int | localBin, |
const std::string & | paramName, | ||
TH1D * | blockHist, | ||
const std::string & | type, | ||
const int | fileId, | ||
const bool | setLabels = true |
||
) |
Definition at line 78 of file GetPostfitParamPlots.cpp.
void CopyViolinToBlock | ( | TH2D * | FullViolin, |
TH2D * | ReducedViolin, | ||
const std::vector< std::string > & | ParamNames | ||
) |
Definition at line 113 of file GetPostfitParamPlots.cpp.
|
inline |
Definition at line 267 of file GetPostfitParamPlots.cpp.
void Get2DComparison | ( | const std::string & | FileName1, |
const std::string & | FileName2 | ||
) |
KS: Make comparison of 2D Posteriors.
Definition at line 1033 of file GetPostfitParamPlots.cpp.
void GetPostfitParamPlots | ( | ) |
Definition at line 745 of file GetPostfitParamPlots.cpp.
void GetViolinPlots | ( | std::string | FileName1 = "" , |
std::string | FileName2 = "" |
||
) |
KS: Make fancy violin plots.
Definition at line 855 of file GetPostfitParamPlots.cpp.
|
inline |
Definition at line 95 of file GetPostfitParamPlots.cpp.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 1132 of file GetPostfitParamPlots.cpp.
void MakeFDDetPlots | ( | ) |
Definition at line 543 of file GetPostfitParamPlots.cpp.
void MakeFluxPlots | ( | ) |
Definition at line 398 of file GetPostfitParamPlots.cpp.
void MakeNDDetPlots | ( | ) |
Definition at line 485 of file GetPostfitParamPlots.cpp.
|
inline |
Definition at line 199 of file GetPostfitParamPlots.cpp.
|
inline |
Definition at line 820 of file GetPostfitParamPlots.cpp.
void MakeXsecPlots | ( | ) |
Definition at line 342 of file GetPostfitParamPlots.cpp.
void MakeXsecRidgePlots | ( | ) |
Definition at line 583 of file GetPostfitParamPlots.cpp.
void PrettifyTitles | ( | TH1D * | Hist | ) |
Definition at line 147 of file GetPostfitParamPlots.cpp.
void PrettifyTitles | ( | TH2D * | Hist | ) |
Definition at line 156 of file GetPostfitParamPlots.cpp.
bool ReadSettings | ( | std::shared_ptr< TFile > | File1 | ) |
Definition at line 166 of file GetPostfitParamPlots.cpp.
TCanvas* canv |
Definition at line 65 of file GetPostfitParamPlots.cpp.
int FDParameters |
Definition at line 59 of file GetPostfitParamPlots.cpp.
int FDParametersStartingPos |
Definition at line 60 of file GetPostfitParamPlots.cpp.
Definition at line 49 of file GetPostfitParamPlots.cpp.
int nBins |
Definition at line 64 of file GetPostfitParamPlots.cpp.
int NDParameters |
Definition at line 56 of file GetPostfitParamPlots.cpp.
int NDParametersStartingPos |
Definition at line 57 of file GetPostfitParamPlots.cpp.
std::vector<int> NDSamplesBins |
Definition at line 62 of file GetPostfitParamPlots.cpp.
std::vector<std::string> NDSamplesNames |
Definition at line 63 of file GetPostfitParamPlots.cpp.
TPad* p3 |
Definition at line 69 of file GetPostfitParamPlots.cpp.
TPad* p4 |
Definition at line 70 of file GetPostfitParamPlots.cpp.
Color_t PlotColor[] = {kRed, kBlack, kBlue, kGreen} |
Definition at line 73 of file GetPostfitParamPlots.cpp.
std::string plotType |
Definition at line 74 of file GetPostfitParamPlots.cpp.
std::vector<std::unique_ptr<TH1D> > PostfitHistVec |
Definition at line 76 of file GetPostfitParamPlots.cpp.
TH1D* Prefit |
Definition at line 50 of file GetPostfitParamPlots.cpp.
std::string SaveName |
Definition at line 67 of file GetPostfitParamPlots.cpp.
TH2D* Violin |
Definition at line 52 of file GetPostfitParamPlots.cpp.
TH2D* Violin2 |
Definition at line 53 of file GetPostfitParamPlots.cpp.
TH2D* ViolinPre |
Definition at line 54 of file GetPostfitParamPlots.cpp.