CMS 3D CMS Logo

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

#include <DQMHistoryTrendsConfig.h>

Public Member Functions

 DQMHistoryTrendsConfig (const std::string &inputItem, const std::string &inputCanvasName, const int inputLogY, const std::string &inputConditions, const std::string &inputLabels, const int inputFirstRun, const int inputLastRun, const int inputNruns=0, const double &yMinIn=999999, const double &yMaxIn=-999999)
 Used to pass firstRuns, lastRun and eventually nRuns. More...
 

Public Attributes

std::string canvasName
 
std::string conditions
 
int firstRun
 
std::string item
 
std::string Labels
 
int lastRun
 
int logY
 
int nRuns
 
int useYrange
 
double yMax
 
double yMin
 

Detailed Description

Holds the configuration of all the requested trends.
Since it is a very small class used only to store and pass back configuration date, all its data memeber are public.

inputLabels us a string of legend labels you wish to give the overlay plots. Comma seperated and must be in same order as the onput quantities

Definition at line 14 of file DQMHistoryTrendsConfig.h.

Constructor & Destructor Documentation

DQMHistoryTrendsConfig::DQMHistoryTrendsConfig ( const std::string &  inputItem,
const std::string &  inputCanvasName,
const int  inputLogY,
const std::string &  inputConditions,
const std::string &  inputLabels,
const int  inputFirstRun,
const int  inputLastRun,
const int  inputNruns = 0,
const double &  yMinIn = 999999,
const double &  yMaxIn = -999999 
)
inline

Used to pass firstRuns, lastRun and eventually nRuns.

Definition at line 18 of file DQMHistoryTrendsConfig.h.

References gather_cfg::cout, useYrange, yMax, and yMin.

20  :
21  item(inputItem), canvasName(inputCanvasName), logY(inputLogY),
22  conditions(inputConditions), Labels(inputLabels), firstRun(inputFirstRun), lastRun(inputLastRun), nRuns(inputNruns),
23  yMin(yMinIn), yMax(yMaxIn)
24  {
25  // Do not use the range if the defaults were changed
26  useYrange = 0;
27  std::cout << "yMin = " << yMin << " YMax = " << yMax << std::endl;
28 
29  if ( yMin != 999999 && yMax != -999999) {
30  useYrange = 3;
31  } else if ( yMin != 999999) {
32  useYrange = 1;
33  } else if( yMax != -999999 ) {
34  useYrange = 2;
35  }
36 
37  }
tuple cout
Definition: gather_cfg.py:121

Member Data Documentation

std::string DQMHistoryTrendsConfig::canvasName

Definition at line 59 of file DQMHistoryTrendsConfig.h.

Referenced by DQMHistoryCreateTrend::operator()().

std::string DQMHistoryTrendsConfig::conditions

Definition at line 61 of file DQMHistoryTrendsConfig.h.

Referenced by DQMHistoryCreateTrend::operator()().

int DQMHistoryTrendsConfig::firstRun

Definition at line 63 of file DQMHistoryTrendsConfig.h.

Referenced by DQMHistoryCreateTrend::operator()().

std::string DQMHistoryTrendsConfig::item
std::string DQMHistoryTrendsConfig::Labels

Definition at line 62 of file DQMHistoryTrendsConfig.h.

Referenced by DQMHistoryCreateTrend::operator()().

int DQMHistoryTrendsConfig::lastRun

Definition at line 64 of file DQMHistoryTrendsConfig.h.

Referenced by DQMHistoryCreateTrend::operator()().

int DQMHistoryTrendsConfig::logY

Definition at line 60 of file DQMHistoryTrendsConfig.h.

Referenced by DQMHistoryCreateTrend::operator()().

int DQMHistoryTrendsConfig::nRuns

Definition at line 65 of file DQMHistoryTrendsConfig.h.

Referenced by DQMHistoryCreateTrend::operator()().

int DQMHistoryTrendsConfig::useYrange
double DQMHistoryTrendsConfig::yMax
double DQMHistoryTrendsConfig::yMin