#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, int canvas_idx=0) | |
void | MakePlots (const std::vector< TString >, const std::vector< TString >, pt::ptree CFG) |
void | MakeTables (const std::vector< TString >, const std::vector< TString >, pt::ptree CFG) |
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 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 () | |
Static Public Attributes | |
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 | _canvas_index |
int | _grid_x |
int | _grid_y |
bool | _legend |
int | _levelCut |
bool | _make_profile_plots |
std::map< TString, float > | _max |
std::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 |
std::map< TString, float > | _SF |
TString | _sublevel_names [6] |
std::map< TString, TString > | _units |
int | _window_height |
int | _window_width |
bool | _write |
std::map< TString, float > | branch_f |
std::map< TString, int > | branch_i |
TTree * | data |
TFile * | output |
TFile * | tree_file |
Definition at line 31 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 , |
||
int | canvas_idx = 0 |
||
) |
Definition at line 51 of file GeometryComparisonPlotter.cc.
References _sublevel_names, branch_f, branch_i, gather_cfg::cout, data, and tree_file.
GeometryComparisonPlotter::~GeometryComparisonPlotter | ( | ) |
Definition at line 206 of file GeometryComparisonPlotter.cc.
References gather_cfg::cout, and tree_file.
|
private |
Definition at line 1515 of file GeometryComparisonPlotter.cc.
References gather_cfg::cout.
Referenced by MakePlots().
|
private |
|
private |
|
private |
Definition at line 1549 of file GeometryComparisonPlotter.cc.
References _sublevel_names, COLOR_CODE, g, compareTotals::legend, runGCPTkAlMap::title, testProducerWithPsetDescEmpty_cfi::x1, testProducerWithPsetDescEmpty_cfi::x2, testProducerWithPsetDescEmpty_cfi::y1, and testProducerWithPsetDescEmpty_cfi::y2.
Referenced by MakePlots().
void GeometryComparisonPlotter::MakePlots | ( | const std::vector< TString > | x, |
const std::vector< TString > | y, | ||
pt::ptree | CFG | ||
) |
-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 218 of file GeometryComparisonPlotter.cc.
References _1dModule, _2dModule, _alignment_name, _batchMode, _canvas_index, _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, 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(), compareTotals::legend, LIMITS, MakeLegend(), NB_MODULE_QUALITY, NB_SUBLEVELS, NB_Z_SLICES, DiDispStaMuonMonitor_cfi::pt, to_string(), x, and y.
void GeometryComparisonPlotter::MakeTables | ( | const std::vector< TString > | x, |
const std::vector< TString > | y, | ||
pt::ptree | CFG | ||
) |
-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 1153 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, 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 1460 of file GeometryComparisonPlotter.cc.
References _max, and SiStripPI::max.
void GeometryComparisonPlotter::SetBranchMin | ( | const TString | branchname, |
const float | min | ||
) |
Definition at line 1461 of file GeometryComparisonPlotter.cc.
References _min, and SiStripPI::min.
void GeometryComparisonPlotter::SetBranchSF | ( | const TString | branchname, |
const float | SF | ||
) |
Definition at line 1462 of file GeometryComparisonPlotter.cc.
References _SF.
void GeometryComparisonPlotter::SetBranchUnits | ( | const TString | branchname, |
const TString | units | ||
) |
Definition at line 1463 of file GeometryComparisonPlotter.cc.
References _units, and units().
void GeometryComparisonPlotter::SetCanvasSize | ( | const int | window_width = 3508 , |
const int | window_height = 2480 |
||
) |
Definition at line 1467 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 1472 of file GeometryComparisonPlotter.cc.
References _output_directory, and Skims_PA_cff::name.
void GeometryComparisonPlotter::SetOutputFileName | ( | const TString | name | ) |
Definition at line 1471 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 | ) |
Definition at line 1466 of file GeometryComparisonPlotter.cc.
References _print_option.
void GeometryComparisonPlotter::SetWrite | ( | const bool | kWrite | ) |
void GeometryComparisonPlotter::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 | ||
) |
Definition at line 1569 of file GeometryComparisonPlotter.cc.
References _output_directory, _units, LateXstyleTable(), output, RMS, and x.
Referenced by MakeTables().
|
private |
Definition at line 38 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), MakeTables(), and Set1dModule().
|
private |
Definition at line 38 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), MakeTables(), and Set2dModule().
|
private |
Definition at line 36 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), and MakeTables().
|
private |
Definition at line 38 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), and SetBatchMode().
|
private |
Definition at line 39 of file GeometryComparisonPlotter.h.
Referenced by MakePlots().
|
private |
Definition at line 39 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), and SetGrid().
|
private |
Definition at line 39 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), and SetGrid().
|
private |
Definition at line 38 of file GeometryComparisonPlotter.h.
Referenced by plotting.PlotGroup::_createLegend(), MakePlots(), and SetLegend().
|
private |
Definition at line 39 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), MakeTables(), and SetLevelCut().
|
private |
Definition at line 38 of file GeometryComparisonPlotter.h.
Referenced by MakePlots().
|
private |
Definition at line 44 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), MakeTables(), generateEDF.LumiInfoCont::max(), and SetBranchMax().
|
private |
Definition at line 44 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), MakeTables(), generateEDF.LumiInfoCont::min(), and SetBranchMin().
|
private |
Definition at line 36 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), and MakeTables().
|
private |
Definition at line 36 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), SetOutputDirectoryName(), and WriteTable().
|
private |
Definition at line 36 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), and SetOutputFileName().
|
private |
Definition at line 38 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), and SetPrint().
|
private |
Definition at line 38 of file GeometryComparisonPlotter.h.
Referenced by MakePlots().
|
private |
Definition at line 36 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), and SetPrintOption().
|
private |
Definition at line 36 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), and MakeTables().
|
private |
Definition at line 44 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), MakeTables(), and SetBranchSF().
|
private |
Definition at line 36 of file GeometryComparisonPlotter.h.
Referenced by GeometryComparisonPlotter(), MakeLegend(), MakePlots(), and MakeTables().
|
private |
Definition at line 45 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), SetBranchUnits(), and WriteTable().
|
private |
Definition at line 39 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), and SetCanvasSize().
|
private |
Definition at line 39 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), and SetCanvasSize().
|
private |
Definition at line 38 of file GeometryComparisonPlotter.h.
Referenced by MakePlots(), and SetWrite().
|
private |
Definition at line 44 of file GeometryComparisonPlotter.h.
Referenced by GeometryComparisonPlotter(), MakePlots(), and MakeTables().
|
private |
Definition at line 43 of file GeometryComparisonPlotter.h.
Referenced by GeometryComparisonPlotter(), MakePlots(), and MakeTables().
|
static |
Definition at line 59 of file GeometryComparisonPlotter.h.
|
private |
Definition at line 50 of file GeometryComparisonPlotter.h.
Referenced by MainPageGenerator.MainPageGenerator::__NewTreePage(), 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(), MainPageGenerator.MainPageGenerator::CreateNewMainPage(), confdb.HLTProcess::customize(), confdb.HLTProcess::dump(), MainPageGenerator.MainPageGenerator::ExportJSON(), 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::removeElementFromSequencesTasksAndPaths(), confdb.HLTProcess::runL1Emulator(), confdb.HLTProcess::specificCustomize(), cuy.FindIssue::startElement(), edmStreamStallGrapher.Stack::update(), and confdb.HLTProcess::updateMessageLogger().
|
private |
Definition at line 49 of file GeometryComparisonPlotter.h.
Referenced by collectionMerger.collectionMerger::analyze(), personalPlayback.Playback::do_create_lumi(), personalPlayback.Playback::do_exec(), and WriteTable().
|
private |
Definition at line 48 of file GeometryComparisonPlotter.h.
Referenced by GeometryComparisonPlotter(), and ~GeometryComparisonPlotter().