#include <GeometryComparisonPlotter.h>
Public Member Functions | |
GeometryComparisonPlotter (TString tree_file_name, TString outputDirname="output/", TString modulesToPlot="all", TString referenceName="Ideal", TString alignmentName="Alignment", TString plotOnlyGlobal="false") | |
void | MakePlots (const vector< TString >, const vector< TString >, const vector< float >, const vector< float >) |
void | Set1dModule (const bool) |
void | Set2dModule (const bool) |
void | SetBatchMode (const bool) |
void | SetBranchMax (const TString, const float) |
void | SetBranchMin (const TString, const float) |
void | SetBranchSF (const TString, const float) |
void | SetBranchUnits (const TString, const TString) |
void | SetCanvasSize (const int window_width=3508, const int window_height=2480) |
void | SetGrid (const int, const int) |
void | SetLegend (const bool) |
void | SetLevelCut (const int) |
void | SetOutputDirectoryName (const TString) |
void | SetOutputFileName (const TString) |
void | SetPrint (const bool) |
void | SetPrintOption (const Option_t *) |
void | SetWrite (const bool) |
~GeometryComparisonPlotter () | |
Static Public Attributes | |
static int | canvas_index |
Private Member Functions | |
TString | ExtensionFromPrintOption (TString) |
TString | LateXstyle (TString) |
TLegend * | MakeLegend (double x1, double y1, double x2, double y2, const TString title="") |
Private Attributes | |
bool | _1dModule |
bool | _2dModule |
TString | _alignment_name |
bool | _batchMode |
int | _grid_x |
int | _grid_y |
bool | _legend |
int | _levelCut |
map< TString, float > | _max |
map< TString, float > | _min |
TString | _module_plot_option |
TString | _output_directory |
TString | _output_filename |
bool | _print |
TString | _print_only_global |
TString | _print_option |
TString | _reference_name |
map< TString, float > | _SF |
TString | _sublevel_names [6] |
map< TString, TString > | _units |
int | _window_height |
int | _window_width |
bool | _write |
map< TString, float > | branch_f |
map< TString, int > | branch_i |
TTree * | data |
TFile * | output |
TFile * | tree_file |
Definition at line 23 of file GeometryComparisonPlotter.h.
GeometryComparisonPlotter::GeometryComparisonPlotter | ( | TString | tree_file_name, |
TString | outputDirname = "output/" , |
||
TString | modulesToPlot = "all" , |
||
TString | referenceName = "Ideal" , |
||
TString | alignmentName = "Alignment" , |
||
TString | plotOnlyGlobal = "false" |
||
) |
Definition at line 26 of file GeometryComparisonPlotter.cc.
References _sublevel_names, branch_f, branch_i, gather_cfg::cout, data, and tree_file.
GeometryComparisonPlotter::~GeometryComparisonPlotter | ( | ) |
Definition at line 178 of file GeometryComparisonPlotter.cc.
References gather_cfg::cout, and tree_file.
|
private |
Definition at line 716 of file GeometryComparisonPlotter.cc.
References gather_cfg::cout.
Referenced by MakePlots().
|
private |
|
private |
Definition at line 738 of file GeometryComparisonPlotter.cc.
References _sublevel_names, COLOR_CODE, g, and NB_SUBLEVELS.
Referenced by MakePlots().
void GeometryComparisonPlotter::MakePlots | ( | const vector< TString > | x, |
const vector< TString > | y, | ||
const vector< float > | dyMin, | ||
const vector< float > | dyMax | ||
) |
-1) check that only existing branches are called
0) min and max values
1) declare TGraphs
2) loop on the TTree data
3) merge TGraph objects into TMultiGraph objects, then draw, print and write (according to the options _batchMode, _print and _write respectively)
TRACKER
SUBLEVELS (1..6)
Definition at line 190 of file GeometryComparisonPlotter.cc.
References _1dModule, _2dModule, _alignment_name, _batchMode, _grid_x, _grid_y, _legend, _levelCut, _max, _min, _module_plot_option, _output_directory, _output_filename, _print, _print_only_global, _print_option, _reference_name, _SF, _sublevel_names, _units, _window_height, _window_width, _write, branch_f, branch_i, EnergyCorrector::c, canvas_index, CHECK_BRANCHES, CHECK_MAP_CONTENT, COLOR_CODE, gather_cfg::cout, data, cmsRelvalreport::exit, ExtensionFromPrintOption(), cuy::graphs, INDEX_IN_GLOBAL_CANVAS, INSIDE_VECTOR, plotBeamSpotDB::ipoint, LateXstyle(), LIMITS, MakeLegend(), NB_MODULE_QUALITY, NB_SUBLEVELS, NB_Z_SLICES, output, and EnergyCorrector::pt.
void GeometryComparisonPlotter::Set1dModule | ( | const bool | k1dModule | ) |
void GeometryComparisonPlotter::Set2dModule | ( | const bool | k2dModule | ) |
void GeometryComparisonPlotter::SetBatchMode | ( | const bool | kBatchMode | ) |
void GeometryComparisonPlotter::SetBranchMax | ( | const TString | branchname, |
const float | max | ||
) |
Definition at line 686 of file GeometryComparisonPlotter.cc.
References _max, and bookConverter::max.
void GeometryComparisonPlotter::SetBranchMin | ( | const TString | branchname, |
const float | min | ||
) |
Definition at line 688 of file GeometryComparisonPlotter.cc.
void GeometryComparisonPlotter::SetBranchSF | ( | const TString | branchname, |
const float | SF | ||
) |
void GeometryComparisonPlotter::SetBranchUnits | ( | const TString | branchname, |
const TString | units | ||
) |
Definition at line 692 of file GeometryComparisonPlotter.cc.
References _units, and units().
void GeometryComparisonPlotter::SetCanvasSize | ( | const int | window_width = 3508 , |
const int | window_height = 2480 |
||
) |
Definition at line 695 of file GeometryComparisonPlotter.cc.
References _window_height, and _window_width.
void GeometryComparisonPlotter::SetGrid | ( | const int | kGridX, |
const int | kGridY | ||
) |
Definition at line 683 of file GeometryComparisonPlotter.cc.
References _grid_x, and _grid_y.
Referenced by cuy.additionElement::__init__(), cuy.superimposeElement::__init__(), and cuy.graphElement::__init__().
void GeometryComparisonPlotter::SetLegend | ( | const bool | kLegend | ) |
void GeometryComparisonPlotter::SetLevelCut | ( | const int | kLevelCut | ) |
void GeometryComparisonPlotter::SetOutputDirectoryName | ( | const TString | name | ) |
Definition at line 699 of file GeometryComparisonPlotter.cc.
References _output_directory.
void GeometryComparisonPlotter::SetOutputFileName | ( | const TString | name | ) |
Definition at line 698 of file GeometryComparisonPlotter.cc.
References _output_filename, and mergeVDriftHistosByStation::name.
void GeometryComparisonPlotter::SetPrint | ( | const bool | kPrint | ) |
void GeometryComparisonPlotter::SetPrintOption | ( | const Option_t * | print_option | ) |
Definition at line 694 of file GeometryComparisonPlotter.cc.
References _print_option.
void GeometryComparisonPlotter::SetWrite | ( | const bool | kWrite | ) |
|
private |
Definition at line 37 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), and Set1dModule().
|
private |
Definition at line 37 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), and Set2dModule().
|
private |
Definition at line 29 of file GeometryComparisonPlotter.h.
Referenced by MakePlots().
|
private |
Definition at line 37 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), and SetBatchMode().
|
private |
Definition at line 43 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), and SetGrid().
|
private |
Definition at line 43 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), and SetGrid().
|
private |
Definition at line 37 of file GeometryComparisonPlotter.h.
Referenced by plotting.PlotGroup::_createLegend(), MakePlots(), and SetLegend().
|
private |
Definition at line 43 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), and SetLevelCut().
|
private |
Definition at line 51 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), generateEDF.LumiInfoCont::max(), and SetBranchMax().
|
private |
Definition at line 51 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), generateEDF.LumiInfoCont::min(), and SetBranchMin().
|
private |
Definition at line 29 of file GeometryComparisonPlotter.h.
Referenced by MakePlots().
|
private |
Definition at line 29 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), and SetOutputDirectoryName().
|
private |
Definition at line 29 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), and SetOutputFileName().
|
private |
Definition at line 37 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), and SetPrint().
|
private |
Definition at line 29 of file GeometryComparisonPlotter.h.
Referenced by MakePlots().
|
private |
Definition at line 29 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), and SetPrintOption().
|
private |
Definition at line 29 of file GeometryComparisonPlotter.h.
Referenced by MakePlots().
|
private |
Definition at line 51 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), and SetBranchSF().
|
private |
Definition at line 29 of file GeometryComparisonPlotter.h.
Referenced by GeometryComparisonPlotter(), MakeLegend(), and MakePlots().
|
private |
Definition at line 53 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), and SetBranchUnits().
|
private |
Definition at line 43 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), and SetCanvasSize().
|
private |
Definition at line 43 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), and SetCanvasSize().
|
private |
Definition at line 37 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), and SetWrite().
|
private |
Definition at line 51 of file GeometryComparisonPlotter.h.
Referenced by GeometryComparisonPlotter(), and MakePlots().
|
private |
Definition at line 50 of file GeometryComparisonPlotter.h.
Referenced by GeometryComparisonPlotter(), and MakePlots().
|
static |
Definition at line 71 of file GeometryComparisonPlotter.h.
Referenced by MakePlots().
|
private |
Definition at line 58 of file GeometryComparisonPlotter.h.
Referenced by cuy.FindIssue::__init__(), data_sources.node::__str__(), data_sources.json_list::as_dicts(), data_sources.json_list::as_table(), confdb.HLTProcess::customize(), confdb.HLTProcess::dump(), GeometryComparisonPlotter(), confdb.HLTProcess::getRawConfigurationFromDB(), data_sources.json_list::last(), MakePlots(), and confdb.HLTProcess::specificCustomize().
|
private |
Definition at line 57 of file GeometryComparisonPlotter.h.
Referenced by personalPlayback.Playback::do_create_lumi(), personalPlayback.Playback::do_exec(), and MakePlots().
|
private |
Definition at line 56 of file GeometryComparisonPlotter.h.
Referenced by GeometryComparisonPlotter(), and ~GeometryComparisonPlotter().