#include <GeometryComparisonPlotter.h>
Public Member Functions | |
GeometryComparisonPlotter (TString tree_file_name, TString outputDirname="output/") | |
void | MakePlots (const vector< TString >, const vector< TString >) |
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 |
bool | _batchMode |
int | _grid_x |
int | _grid_y |
bool | _legend |
int | _levelCut |
map< TString, float > | _max |
map< TString, float > | _min |
TString | _output_directory |
TString | _output_filename |
bool | _print |
TString | _print_option |
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 22 of file GeometryComparisonPlotter.h.
GeometryComparisonPlotter::GeometryComparisonPlotter | ( | TString | tree_file_name, |
TString | outputDirname = "output/" |
||
) |
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 167 of file GeometryComparisonPlotter.cc.
References gather_cfg::cout, and tree_file.
|
private |
Definition at line 615 of file GeometryComparisonPlotter.cc.
References gather_cfg::cout.
Referenced by MakePlots().
|
private |
|
private |
Definition at line 637 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 | ||
) |
-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 179 of file GeometryComparisonPlotter.cc.
References _1dModule, _2dModule, _batchMode, _grid_x, _grid_y, _legend, _levelCut, _max, _min, _output_directory, _output_filename, _print, _print_option, _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_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 585 of file GeometryComparisonPlotter.cc.
References _max, and bookConverter::max.
void GeometryComparisonPlotter::SetBranchMin | ( | const TString | branchname, |
const float | min | ||
) |
Definition at line 587 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 591 of file GeometryComparisonPlotter.cc.
References _units, and units().
void GeometryComparisonPlotter::SetCanvasSize | ( | const int | window_width = 3508 , |
const int | window_height = 2480 |
||
) |
Definition at line 594 of file GeometryComparisonPlotter.cc.
References _window_height, and _window_width.
void GeometryComparisonPlotter::SetGrid | ( | const int | kGridX, |
const int | kGridY | ||
) |
Definition at line 582 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 598 of file GeometryComparisonPlotter.cc.
References _output_directory.
void GeometryComparisonPlotter::SetOutputFileName | ( | const TString | name | ) |
Definition at line 597 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 593 of file GeometryComparisonPlotter.cc.
References _print_option.
void GeometryComparisonPlotter::SetWrite | ( | const bool | kWrite | ) |
|
private |
Definition at line 32 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), and Set1dModule().
|
private |
Definition at line 32 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), and Set2dModule().
|
private |
Definition at line 32 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), and SetBatchMode().
|
private |
Definition at line 38 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), and SetGrid().
|
private |
Definition at line 38 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), and SetGrid().
|
private |
Definition at line 32 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), and SetLegend().
|
private |
Definition at line 38 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), and SetLevelCut().
|
private |
Definition at line 46 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), generateEDF.LumiInfoCont::max(), and SetBranchMax().
|
private |
Definition at line 46 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), generateEDF.LumiInfoCont::min(), and SetBranchMin().
|
private |
Definition at line 28 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), and SetOutputDirectoryName().
|
private |
Definition at line 28 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), and SetOutputFileName().
|
private |
Definition at line 32 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), and SetPrint().
|
private |
Definition at line 28 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), and SetPrintOption().
|
private |
Definition at line 46 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), and SetBranchSF().
|
private |
Definition at line 28 of file GeometryComparisonPlotter.h.
Referenced by GeometryComparisonPlotter(), MakeLegend(), and MakePlots().
|
private |
Definition at line 48 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), and SetBranchUnits().
|
private |
Definition at line 38 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), and SetCanvasSize().
|
private |
Definition at line 38 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), and SetCanvasSize().
|
private |
Definition at line 32 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), and SetWrite().
|
private |
Definition at line 46 of file GeometryComparisonPlotter.h.
Referenced by GeometryComparisonPlotter(), and MakePlots().
|
private |
Definition at line 45 of file GeometryComparisonPlotter.h.
Referenced by GeometryComparisonPlotter(), and MakePlots().
|
static |
Definition at line 66 of file GeometryComparisonPlotter.h.
Referenced by MakePlots().
|
private |
Definition at line 53 of file GeometryComparisonPlotter.h.
Referenced by python.multivaluedict.MyUserList::__delitem__(), cuy.FindIssue::__init__(), confdb.HLTProcess::customize(), confdb.HLTProcess::dump(), GeometryComparisonPlotter(), confdb.HLTProcess::getRawConfigurationFromDB(), MakePlots(), and confdb.HLTProcess::specificCustomize().
|
private |
Definition at line 52 of file GeometryComparisonPlotter.h.
Referenced by MakePlots().
|
private |
Definition at line 51 of file GeometryComparisonPlotter.h.
Referenced by GeometryComparisonPlotter(), and ~GeometryComparisonPlotter().