CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Attributes
DQMHistoryCreateTrend Class Reference

#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< HDQMInspectorinspector_
 

Detailed Description

Simple functor used to create trends.

Definition at line 14 of file DQMHistoryCreateTrend.h.

Constructor & Destructor Documentation

DQMHistoryCreateTrend::DQMHistoryCreateTrend ( const HDQMInspectorConfigBase HDQMconfig)
inline

Definition at line 17 of file DQMHistoryCreateTrend.h.

References inspector_.

17 { inspector_.reset(new HDQMInspector(HDQMconfig)); }
boost::shared_ptr< HDQMInspector > inspector_

Member Function Documentation

void DQMHistoryCreateTrend::closeFile ( )
inline

Definition at line 42 of file DQMHistoryCreateTrend.h.

References inspector_.

Referenced by runInspector(), runSiPixelInspector(), runTrackingInspector(), and python.Vispa.Main.Application.Application::tabCloseRequest().

42  {
43  inspector_->closeFile();
44  }
boost::shared_ptr< HDQMInspector > inspector_
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.

6 {
7  if( trend.firstRun != trend.lastRun ) {
8  inspector_->createTrend(trend.item, trend.canvasName, trend.logY, trend.conditions, trend.Labels,
9  trend.firstRun, trend.lastRun, trend.useYrange, trend.yMin, trend.yMax);
10  }
11  else if( trend.nRuns != 0 ) {
12  inspector_->createTrendLastRuns(trend.item, trend.canvasName, trend.logY, trend.conditions, trend.Labels,
13  trend.nRuns, trend.useYrange, trend.yMin, trend.yMax);
14  }
15  else {
16  cout << "WARNING: both first("<<trend.firstRun<<")==last("<<trend.lastRun<<") and nRuns("
17  <<trend.nRuns<<")==0. No trends will be created for " << trend.item << endl;
18  }
19 }
boost::shared_ptr< HDQMInspector > inspector_
tuple cout
Definition: gather_cfg.py:41
void DQMHistoryCreateTrend::setBlackList ( const std::string &  listItems)
inline

Definition at line 32 of file DQMHistoryCreateTrend.h.

References inspector_.

Referenced by runInspector(), runSiPixelInspector(), and runTrackingInspector().

32  {
33  inspector_->setBlackList(listItems);
34  }
boost::shared_ptr< HDQMInspector > inspector_
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().

23  {
24  inspector_->setDB(dbName, dbTag, authPath);
25  }
string dbName
Definition: EcalCondDB.py:76
boost::shared_ptr< HDQMInspector > inspector_
void DQMHistoryCreateTrend::setDebug ( const int  i)
inline

Definition at line 26 of file DQMHistoryCreateTrend.h.

References inspector_.

Referenced by runInspector(), runSiPixelInspector(), and runTrackingInspector().

26  {
27  inspector_->setDebug(i);
28  }
int i
Definition: DBlmapReader.cc:9
boost::shared_ptr< HDQMInspector > inspector_
void DQMHistoryCreateTrend::setDoStat ( const int  i)
inline

Definition at line 29 of file DQMHistoryCreateTrend.h.

References inspector_.

Referenced by runInspector(), runSiPixelInspector(), and runTrackingInspector().

29  {
30  inspector_->setDoStat(i);
31  }
int i
Definition: DBlmapReader.cc:9
boost::shared_ptr< HDQMInspector > inspector_
void DQMHistoryCreateTrend::setSeparator ( std::string const  in)
inline

Definition at line 51 of file DQMHistoryCreateTrend.h.

References inspector_.

51  {
52  inspector_->setSeparator(in);
53  }
boost::shared_ptr< HDQMInspector > inspector_
void DQMHistoryCreateTrend::setSkip0s ( bool const  in)
inline

Definition at line 48 of file DQMHistoryCreateTrend.h.

References inspector_.

48  {
49  inspector_->setSkip0s(in);
50  }
boost::shared_ptr< HDQMInspector > inspector_
void DQMHistoryCreateTrend::setSkip99s ( bool const  in)
inline

Definition at line 45 of file DQMHistoryCreateTrend.h.

References inspector_.

Referenced by runInspector(), runSiPixelInspector(), and runTrackingInspector().

45  {
46  inspector_->setSkip99s(in);
47  }
boost::shared_ptr< HDQMInspector > inspector_
void DQMHistoryCreateTrend::setWhiteList ( const std::string &  listItems)
inline

Definition at line 35 of file DQMHistoryCreateTrend.h.

References inspector_.

35  {
36  inspector_->setWhiteList(listItems);
37  }
boost::shared_ptr< HDQMInspector > inspector_
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().

38  {
39  std::cout << "Reading white list from file: " << listFileName << std::endl;
40  inspector_->setWhiteList(inspector_->readListFromFile(listFileName));
41  }
boost::shared_ptr< HDQMInspector > inspector_
tuple cout
Definition: gather_cfg.py:41

Member Data Documentation

boost::shared_ptr<HDQMInspector> DQMHistoryCreateTrend::inspector_
protected