#include <Trend.h>
Public Member Functions | |
void | operator() (TObject *obj, TString drawOpt, TString lgdOpt, bool fullRange=true) |
Trend (const char *name, const char *dir, const char *title, const char *ytitle, float ymin, float ymax, boost::property_tree::ptree &json, const Run2Lumi &GetLumiFunctor, const char *lumiAxisType) | |
< constructor, prepares canvas and frame More... | |
~Trend () | |
Public Attributes | |
TCanvas | c |
TString | CMS = "#scale[1.1]{#bf{CMS}} #it{Internal}" |
top left label More... | |
float | fontsize = 0.04 |
const Run2Lumi & | GetLumi |
functor to get luminosity for given subrange More... | |
const boost::property_tree::ptree | JSON |
contains coordinate for vertical lines More... | |
TLegend | lgd |
TString | lumi |
top right label (not necessarily the lumi, just following the convention from CMS_lumi.h ) More... | |
const char * | lumiType |
const char * | outputDir |
std::string | plotUnit = "fb" |
Standard canvas for TkAl trends as a function of delivered lumi.
The constructor and the destructor take care of the style, The operator() is overloaded and should be given a trend as a function of the run number (either TGraphErrors
or TH1
). The verticles lines (e.g. pixel templates) are given via a JSON file.
Trend::Trend | ( | const char * | name, |
const char * | dir, | ||
const char * | title, | ||
const char * | ytitle, | ||
float | ymin, | ||
float | ymax, | ||
boost::property_tree::ptree & | json, | ||
const Run2Lumi & | GetLumiFunctor, | ||
const char * | lumiAxisType | ||
) |
< constructor, prepares canvas and frame
name | TCanvas name, also used for output PDF |
title | TCanvas title, also used for output PDF (but not shown on the canvas) |
ytitle | y-axis title |
ymin | y-axis minimum |
ymax | y-axis maximum |
json | vertical lines from JSON |
GetLumiFunctor | functor |
Definition at line 131 of file Trend.cc.
References cms::cuda::assert(), c, gather_cfg::cout, data, fontsize, GetLumi, JSON, cmsLHEtoEOSManager::l, lgd, mps_splice::line, groupFilesInBlocks::lines, lumiType, plotUnit, writedatasetfile::run, writedatasetfile::runs, runGCPTkAlMap::title, findQualityFiles::v, ApeEstimator_cff::width, TrackerOfflineValidation_Dqm_cff::xmax, L1TOccupancyClient_cfi::ymax, L1TOccupancyClient_cfi::ymin, and compareTotals::ytitle.
Trend::~Trend | ( | ) |
Destructor applies fine tuning of the plots, e.g. legend, labels, etc. and finally prints to PDF.
Definition at line 257 of file Trend.cc.
References cms::cuda::assert(), c, gather_cfg::cout, GetLumi, JSON, cmsLHEtoEOSManager::l, label, SummaryClient_cfi::labels, lgd, groupFilesInBlocks::lines, lumiTextOffset, SiStripPI::max, outputDir, RecoTauValidation_cfi::posX, RecoTauValidation_cfi::posY, alignCSCRings::r, writedatasetfile::runs, and submitPVValidationJobs::t.
void Trend::operator() | ( | TObject * | obj, |
TString | drawOpt, | ||
TString | lgdOpt, | ||
bool | fullRange = true |
||
) |
Operator overloading to plot a trend (given as a function of run number) as a function of the luminosity.
obj | e.g. graph |
drawOpt | e.g. option for TGraph::Draw() |
lgdOpt | option for TLegend::Draw() |
fullRange | flag to force the graph to touch the right edge |
Definition at line 220 of file Trend.cc.
References c, DMR_cfg::cerr, data-class-funcs::classname, gather_cfg::cout, beamvalidation::exit(), g, GetLumi, h, lgd, dqmiodumpmetadata::n, Skims_PA_cff::name, getGTfromDQMFile::obj, and runGCPTkAlMap::title.
TCanvas Trend::c |
Definition at line 86 of file Trend.h.
Referenced by operator()(), Trend(), and ~Trend().
TString Trend::CMS = "#scale[1.1]{#bf{CMS}} #it{Internal}" |
const Run2Lumi& Trend::GetLumi |
functor to get luminosity for given subrange
Definition at line 91 of file Trend.h.
Referenced by operator()(), Trend(), and ~Trend().
const boost::property_tree::ptree Trend::JSON |
TLegend Trend::lgd |
TString Trend::lumi |
top right label (not necessarily the lumi, just following the convention from CMS_lumi.h
)
Definition at line 80 of file Trend.h.
Referenced by generateEDF.LumiInfo::__str__(), and upgradeWorkflowComponents.UpgradeWorkflowAging::setup_().
const char* Trend::outputDir |
Definition at line 87 of file Trend.h.
Referenced by DMRplotter.DMRplotter::__clean__(), DMRplotter.DMRplotter::__cleanSingle__(), DMRplotter.DMRplotter::__createArchitecture__(), DMRplotter.DMRplotter::__createSingleArchitecture__(), DMRplotter.DMRplotter::__finalize__(), DMRplotter.DMRplotter::plot(), and ~Trend().