#include <GeometryComparisonPlotter.h>
Public Member Functions | |
GeometryComparisonPlotter (TString tree_file_name, TString outputDirname="output/", TString modulesToPlot="all", TString referenceName="Ideal", TString alignmentName="Alignment", bool plotOnlyGlobal=false, bool makeProfilePlots=false) | |
void | MakePlots (const vector< TString >, const vector< TString >, const vector< float >, const vector< float >) |
void | MakeTables (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) |
void | WriteTable (const vector< TString > x, unsigned int nLevelsTimesSlices, float meanValue[10][24], float RMS[10][24], const TString nDigits, const TString tableCaption, const TString tableFileName) |
~GeometryComparisonPlotter () | |
Static Public Attributes | |
static int | canvas_index |
static int | canvas_profile_index |
Private Member Functions | |
TString | ExtensionFromPrintOption (TString) |
TString | LateXstyle (TString) |
TString | LateXstyleTable (TString) |
TLegend * | MakeLegend (double x1, double y1, double x2, double y2, int nPlottedSublevels, const TString title="") |
Private Attributes | |
bool | _1dModule |
bool | _2dModule |
TString | _alignment_name |
bool | _batchMode |
int | _grid_x |
int | _grid_y |
bool | _legend |
int | _levelCut |
bool | _make_profile_plots |
map< TString, float > | _max |
map< TString, float > | _min |
TString | _module_plot_option |
TString | _output_directory |
TString | _output_filename |
bool | _print |
bool | _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 26 of file GeometryComparisonPlotter.h.
GeometryComparisonPlotter::GeometryComparisonPlotter | ( | TString | tree_file_name, |
TString | outputDirname = "output/" , |
||
TString | modulesToPlot = "all" , |
||
TString | referenceName = "Ideal" , |
||
TString | alignmentName = "Alignment" , |
||
bool | plotOnlyGlobal = false , |
||
bool | makeProfilePlots = 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 180 of file GeometryComparisonPlotter.cc.
References gather_cfg::cout, and tree_file.
|
private |
Definition at line 1423 of file GeometryComparisonPlotter.cc.
References gather_cfg::cout.
Referenced by MakePlots().
|
private |
|
private |
Definition at line 1410 of file GeometryComparisonPlotter.cc.
Referenced by WriteTable().
|
private |
Definition at line 1445 of file GeometryComparisonPlotter.cc.
References _sublevel_names, COLOR_CODE, g, listHistos::legend, overlapproblemtsosanalyzer_cfi::title, testProducerWithPsetDescEmpty_cfi::x1, testProducerWithPsetDescEmpty_cfi::x2, testProducerWithPsetDescEmpty_cfi::y1, and testProducerWithPsetDescEmpty_cfi::y2.
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 and Histograms for profile plots if these are to be plotted
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 and PIXEL
SUBLEVELS (1..6)
TRACKER
PIXEL
SUBLEVELS (1..6)
Definition at line 192 of file GeometryComparisonPlotter.cc.
References _1dModule, _2dModule, _alignment_name, _batchMode, _grid_x, _grid_y, _legend, _levelCut, _make_profile_plots, _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, HltBtagPostValidation_cff::c, canvas_index, CHECK_BRANCHES, CHECK_MAP_CONTENT, COLOR_CODE, gather_cfg::cout, data, beamvalidation::exit(), ExtensionFromPrintOption(), cuy::graphs, combine::histos, INDEX_IN_GLOBAL_CANVAS, INSIDE_VECTOR, plotBeamSpotDB::ipoint, LateXstyle(), listHistos::legend, LIMITS, MakeLegend(), NB_MODULE_QUALITY, NB_SUBLEVELS, NB_Z_SLICES, output, DiDispStaMuonMonitor_cfi::pt, x, and y.
void GeometryComparisonPlotter::MakeTables | ( | 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 histograms
2) loop on the TTree data
Definition at line 1083 of file GeometryComparisonPlotter.cc.
References _1dModule, _2dModule, _alignment_name, _levelCut, _max, _min, _module_plot_option, _reference_name, _SF, _sublevel_names, branch_f, branch_i, CHECK_BRANCHES, CHECK_MAP_CONTENT, gather_cfg::cout, data, combine::histos, INSIDE_VECTOR, LIMITS, NB_SUBLEVELS, NB_X_SLICES, NB_Z_SLICES, RMS, tools::TF1, WriteTable(), x, and y.
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 1380 of file GeometryComparisonPlotter.cc.
References _max, and SiStripPI::max.
void GeometryComparisonPlotter::SetBranchMin | ( | const TString | branchname, |
const float | min | ||
) |
void GeometryComparisonPlotter::SetBranchSF | ( | const TString | branchname, |
const float | SF | ||
) |
void GeometryComparisonPlotter::SetBranchUnits | ( | const TString | branchname, |
const TString | units | ||
) |
void GeometryComparisonPlotter::SetCanvasSize | ( | const int | window_width = 3508 , |
const int | window_height = 2480 |
||
) |
Definition at line 1389 of file GeometryComparisonPlotter.cc.
References _window_height, and _window_width.
void GeometryComparisonPlotter::SetGrid | ( | const int | kGridX, |
const int | kGridY | ||
) |
void GeometryComparisonPlotter::SetLegend | ( | const bool | kLegend | ) |
void GeometryComparisonPlotter::SetLevelCut | ( | const int | kLevelCut | ) |
void GeometryComparisonPlotter::SetOutputDirectoryName | ( | const TString | name | ) |
Definition at line 1393 of file GeometryComparisonPlotter.cc.
References _output_directory, and Skims_PA_cff::name.
void GeometryComparisonPlotter::SetOutputFileName | ( | const TString | name | ) |
Definition at line 1392 of file GeometryComparisonPlotter.cc.
References _output_filename, and Skims_PA_cff::name.
void GeometryComparisonPlotter::SetPrint | ( | const bool | kPrint | ) |
void GeometryComparisonPlotter::SetPrintOption | ( | const Option_t * | print_option | ) |
void GeometryComparisonPlotter::SetWrite | ( | const bool | kWrite | ) |
void GeometryComparisonPlotter::WriteTable | ( | const vector< TString > | x, |
unsigned int | nLevelsTimesSlices, | ||
float | meanValue[10][24], | ||
float | RMS[10][24], | ||
const TString | nDigits, | ||
const TString | tableCaption, | ||
const TString | tableFileName | ||
) |
Definition at line 1470 of file GeometryComparisonPlotter.cc.
References _output_directory, _units, LateXstyleTable(), output, RMS, and x.
Referenced by MakeTables().
|
private |
Definition at line 39 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), MakeTables(), and Set1dModule().
|
private |
Definition at line 39 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), MakeTables(), and Set2dModule().
|
private |
Definition at line 32 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), and MakeTables().
|
private |
Definition at line 39 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), and SetBatchMode().
|
private |
Definition at line 47 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), and SetGrid().
|
private |
Definition at line 47 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), and SetGrid().
|
private |
Definition at line 39 of file GeometryComparisonPlotter.h.
Referenced by plotting.PlotGroup::_createLegend(), MakePlots(), and SetLegend().
|
private |
Definition at line 47 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), MakeTables(), and SetLevelCut().
|
private |
Definition at line 39 of file GeometryComparisonPlotter.h.
Referenced by MakePlots().
|
private |
Definition at line 55 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), MakeTables(), generateEDF.LumiInfoCont::max(), and SetBranchMax().
|
private |
Definition at line 55 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), MakeTables(), generateEDF.LumiInfoCont::min(), and SetBranchMin().
|
private |
Definition at line 32 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), and MakeTables().
|
private |
Definition at line 32 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), SetOutputDirectoryName(), and WriteTable().
|
private |
Definition at line 32 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), and SetOutputFileName().
|
private |
Definition at line 39 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), and SetPrint().
|
private |
Definition at line 39 of file GeometryComparisonPlotter.h.
Referenced by MakePlots().
|
private |
Definition at line 32 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), and SetPrintOption().
|
private |
Definition at line 32 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), and MakeTables().
|
private |
Definition at line 55 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), MakeTables(), and SetBranchSF().
|
private |
Definition at line 32 of file GeometryComparisonPlotter.h.
Referenced by GeometryComparisonPlotter(), MakeLegend(), MakePlots(), and MakeTables().
|
private |
Definition at line 57 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), SetBranchUnits(), and WriteTable().
|
private |
Definition at line 47 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), and SetCanvasSize().
|
private |
Definition at line 47 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), and SetCanvasSize().
|
private |
Definition at line 39 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), and SetWrite().
|
private |
Definition at line 55 of file GeometryComparisonPlotter.h.
Referenced by GeometryComparisonPlotter(), MakePlots(), and MakeTables().
|
private |
Definition at line 54 of file GeometryComparisonPlotter.h.
Referenced by GeometryComparisonPlotter(), MakePlots(), and MakeTables().
|
static |
Definition at line 77 of file GeometryComparisonPlotter.h.
Referenced by MakePlots().
|
static |
Definition at line 78 of file GeometryComparisonPlotter.h.
|
private |
Definition at line 62 of file GeometryComparisonPlotter.h.
Referenced by data_sources.node::__str__(), confdb.HLTProcess::_fix_parameter(), confdb.HLTProcess::addEras(), confdb.HLTProcess::addGlobalOptions(), confdb.HLTProcess::append_filenames(), data_sources.json_list::as_dicts(), data_sources.json_list::as_table(), confdb.HLTProcess::build_source(), confdb.HLTProcess::customize(), confdb.HLTProcess::dump(), confdb.HLTProcess::fixPrescales(), GeometryComparisonPlotter(), data_sources.json_list::get_members(), confdb.HLTProcess::getRawConfigurationFromDB(), confdb.HLTProcess::instrumentDQM(), confdb.HLTProcess::instrumentOpenMode(), confdb.HLTProcess::instrumentTiming(), data_sources.json_list::last(), confdb.HLTProcess::loadAdditionalConditions(), confdb.HLTProcess::loadCff(), confdb.HLTProcess::loadSetupCff(), MakePlots(), MakeTables(), confdb.HLTProcess::overrideGlobalTag(), confdb.HLTProcess::overrideL1MenuXml(), confdb.HLTProcess::overrideOutput(), confdb.HLTProcess::overrideParameters(), confdb.HLTProcess::overrideProcessName(), confdb.HLTProcess::runL1Emulator(), confdb.HLTProcess::specificCustomize(), cuy.FindIssue::startElement(), edmStreamStallGrapher.Stack::update(), and confdb.HLTProcess::updateMessageLogger().
|
private |
Definition at line 61 of file GeometryComparisonPlotter.h.
Referenced by personalPlayback.Playback::do_create_lumi(), personalPlayback.Playback::do_exec(), MakePlots(), and WriteTable().
|
private |
Definition at line 60 of file GeometryComparisonPlotter.h.
Referenced by GeometryComparisonPlotter(), and ~GeometryComparisonPlotter().