#include <DQMHistoryCreateTrend.h>
Public Member Functions | |
void | closeFile () |
DQMHistoryCreateTrend (const HDQMInspectorConfigBase *HDQMconfig) | |
void | operator() (const DQMHistoryTrendsConfig &trend) |
void | setBlackList (const std::string &listItems) |
void | setDB (std::string dbName, std::string dbTag, std::string authPath="") |
void | setDebug (const int i) |
void | setDoStat (const int i) |
void | setSeparator (std::string const in) |
void | setSkip0s (bool const in) |
void | setSkip99s (bool const in) |
void | setWhiteList (const std::string &listItems) |
void | setWhiteListFromFile (const std::string &listFileName) |
Protected Attributes | |
boost::shared_ptr< HDQMInspector > | inspector_ |
Simple functor used to create trends.
Definition at line 14 of file DQMHistoryCreateTrend.h.
DQMHistoryCreateTrend::DQMHistoryCreateTrend | ( | const HDQMInspectorConfigBase * | HDQMconfig | ) | [inline] |
Definition at line 17 of file DQMHistoryCreateTrend.h.
References inspector_.
{ inspector_.reset(new HDQMInspector(HDQMconfig)); }
void DQMHistoryCreateTrend::closeFile | ( | ) | [inline] |
Definition at line 42 of file DQMHistoryCreateTrend.h.
References inspector_.
Referenced by runInspector(), runSiPixelInspector(), and runTrackingInspector().
{ inspector_->closeFile(); }
void DQMHistoryCreateTrend::operator() | ( | const DQMHistoryTrendsConfig & | trend | ) |
At this time it does the first-last OR the nRuns trends, NOT both.
This is because we do not want to mix them for some misconfiguration.
Definition at line 5 of file DQMHistoryCreateTrend.cc.
References DQMHistoryTrendsConfig::canvasName, DQMHistoryTrendsConfig::conditions, gather_cfg::cout, DQMHistoryTrendsConfig::firstRun, DQMHistoryTrendsConfig::item, DQMHistoryTrendsConfig::Labels, DQMHistoryTrendsConfig::lastRun, DQMHistoryTrendsConfig::logY, DQMHistoryTrendsConfig::nRuns, DQMHistoryTrendsConfig::useYrange, DQMHistoryTrendsConfig::yMax, and DQMHistoryTrendsConfig::yMin.
{ if( trend.firstRun != trend.lastRun ) { inspector_->createTrend(trend.item, trend.canvasName, trend.logY, trend.conditions, trend.Labels, trend.firstRun, trend.lastRun, trend.useYrange, trend.yMin, trend.yMax); } else if( trend.nRuns != 0 ) { inspector_->createTrendLastRuns(trend.item, trend.canvasName, trend.logY, trend.conditions, trend.Labels, trend.nRuns, trend.useYrange, trend.yMin, trend.yMax); } else { cout << "WARNING: both first("<<trend.firstRun<<")==last("<<trend.lastRun<<") and nRuns(" <<trend.nRuns<<")==0. No trends will be created for " << trend.item << endl; } }
void DQMHistoryCreateTrend::setBlackList | ( | const std::string & | listItems | ) | [inline] |
Definition at line 32 of file DQMHistoryCreateTrend.h.
References inspector_.
Referenced by runInspector(), runSiPixelInspector(), and runTrackingInspector().
{ inspector_->setBlackList(listItems); }
void DQMHistoryCreateTrend::setDB | ( | std::string | dbName, |
std::string | dbTag, | ||
std::string | authPath = "" |
||
) | [inline] |
Definition at line 23 of file DQMHistoryCreateTrend.h.
References builder_last_value_cfg::authPath, and inspector_.
Referenced by runInspector(), runSiPixelInspector(), and runTrackingInspector().
{ inspector_->setDB(dbName, dbTag, authPath); }
void DQMHistoryCreateTrend::setDebug | ( | const int | i | ) | [inline] |
Definition at line 26 of file DQMHistoryCreateTrend.h.
References inspector_.
Referenced by runInspector(), runSiPixelInspector(), and runTrackingInspector().
{ inspector_->setDebug(i); }
void DQMHistoryCreateTrend::setDoStat | ( | const int | i | ) | [inline] |
Definition at line 29 of file DQMHistoryCreateTrend.h.
References inspector_.
Referenced by runInspector(), runSiPixelInspector(), and runTrackingInspector().
{ inspector_->setDoStat(i); }
void DQMHistoryCreateTrend::setSeparator | ( | std::string const | in | ) | [inline] |
Definition at line 51 of file DQMHistoryCreateTrend.h.
References inspector_.
{ inspector_->setSeparator(in); }
void DQMHistoryCreateTrend::setSkip0s | ( | bool const | in | ) | [inline] |
Definition at line 48 of file DQMHistoryCreateTrend.h.
References inspector_.
{ inspector_->setSkip0s(in); }
void DQMHistoryCreateTrend::setSkip99s | ( | bool const | in | ) | [inline] |
Definition at line 45 of file DQMHistoryCreateTrend.h.
References inspector_.
Referenced by runInspector(), runSiPixelInspector(), and runTrackingInspector().
{ inspector_->setSkip99s(in); }
void DQMHistoryCreateTrend::setWhiteList | ( | const std::string & | listItems | ) | [inline] |
Definition at line 35 of file DQMHistoryCreateTrend.h.
References inspector_.
{ inspector_->setWhiteList(listItems); }
void DQMHistoryCreateTrend::setWhiteListFromFile | ( | const std::string & | listFileName | ) | [inline] |
Definition at line 38 of file DQMHistoryCreateTrend.h.
References gather_cfg::cout, and inspector_.
Referenced by runInspector(), runSiPixelInspector(), and runTrackingInspector().
{ std::cout << "Reading white list from file: " << listFileName << std::endl; inspector_->setWhiteList(inspector_->readListFromFile(listFileName)); }
boost::shared_ptr<HDQMInspector> DQMHistoryCreateTrend::inspector_ [protected] |
Definition at line 57 of file DQMHistoryCreateTrend.h.
Referenced by closeFile(), DQMHistoryCreateTrend(), setBlackList(), setDB(), setDebug(), setDoStat(), setSeparator(), setSkip0s(), setSkip99s(), setWhiteList(), and setWhiteListFromFile().