1 #ifndef Alignment_OfflineValidation_GeometryComparisonPlotter_h 2 #define Alignment_OfflineValidation_GeometryComparisonPlotter_h 17 #include "TMultiGraph.h" 22 #include "TDirectory.h" 24 #include "TPaveText.h" 28 #include "boost/property_tree/ptree.hpp" 29 namespace pt = boost::property_tree;
34 #define NB_SUBLEVELS 6 56 TLegend *
MakeLegend(
double x1,
double y1,
double x2,
double y2,
int nPlottedSublevels,
const TString
title =
"");
63 TString outputDirname =
"output/",
64 TString modulesToPlot =
"all",
65 TString referenceName =
"Ideal",
66 TString alignmentName =
"Alignment",
67 bool plotOnlyGlobal =
false,
68 bool makeProfilePlots =
false,
73 void MakePlots(
const std::vector<TString>,
const std::vector<TString>, pt::ptree CFG);
75 void MakeTables(
const std::vector<TString>,
const std::vector<TString>, pt::ptree CFG);
78 unsigned int nLevelsTimesSlices,
79 float meanValue[10][24],
81 const TString nDigits,
82 const TString tableCaption,
83 const TString tableFileName);
91 #define DEFAULT_LEVEL 1 107 #define DEFAULT_WINDOW_WIDTH 3508 108 #define DEFAULT_WINDOW_HEIGHT 2480 void SetCanvasSize(const int window_width=3508, const int window_height=2480)
void Set1dModule(const bool)
TString LateXstyleTable(TString)
std::map< TString, float > branch_f
TString LateXstyle(TString)
void SetGrid(const int, const int)
void SetBatchMode(const bool)
void MakePlots(const std::vector< TString >, const std::vector< TString >, pt::ptree CFG)
static int canvas_profile_index
GeometryComparisonPlotter(TString tree_file_name, TString outputDirname="output/", TString modulesToPlot="all", TString referenceName="Ideal", TString alignmentName="Alignment", bool plotOnlyGlobal=false, bool makeProfilePlots=false, int canvas_idx=0)
std::map< TString, float > _SF
void WriteTable(const std::vector< TString > x, unsigned int nLevelsTimesSlices, float meanValue[10][24], float RMS[10][24], const TString nDigits, const TString tableCaption, const TString tableFileName)
~GeometryComparisonPlotter()
std::map< TString, int > branch_i
void SetBranchMax(const TString, const float)
std::map< TString, float > _max
void SetBranchUnits(const TString, const TString)
std::map< TString, TString > _units
#define DEFAULT_WINDOW_WIDTH
std::map< TString, float > _min
void SetOutputDirectoryName(const TString)
void MakeTables(const std::vector< TString >, const std::vector< TString >, pt::ptree CFG)
void SetPrintOption(const Option_t *)
void Set2dModule(const bool)
void SetLegend(const bool)
TString _module_plot_option
void SetWrite(const bool)
TString _output_directory
TString _sublevel_names[6]
TString ExtensionFromPrintOption(TString)
void SetOutputFileName(const TString)
void SetPrint(const bool)
void SetBranchSF(const TString, const float)
TLegend * MakeLegend(double x1, double y1, double x2, double y2, int nPlottedSublevels, const TString title="")
#define DEFAULT_WINDOW_HEIGHT
void SetBranchMin(const TString, const float)
void SetLevelCut(const int)