CMS 3D CMS Logo

Public Member Functions | Public Attributes

DQMHistoryTrendsConfig Class Reference

#include <DQMHistoryTrendsConfig.h>

List of all members.

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.

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.

                                                                                          :
    item(inputItem), canvasName(inputCanvasName), logY(inputLogY),
    conditions(inputConditions), Labels(inputLabels), firstRun(inputFirstRun), lastRun(inputLastRun), nRuns(inputNruns),
    yMin(yMinIn), yMax(yMaxIn)
  {
    // Do not use the range if the defaults were changed
    useYrange = 0;
    std::cout << "yMin = " << yMin << " YMax = " << yMax << std::endl;
        
    if ( yMin != 999999 && yMax != -999999) {
      useYrange = 3;
    } else if ( yMin != 999999) {
      useYrange = 1;
    } else if( yMax != -999999 ) {
      useYrange = 2;
    }

   }

Member Data Documentation

Definition at line 59 of file DQMHistoryTrendsConfig.h.

Referenced by DQMHistoryCreateTrend::operator()().

Definition at line 61 of file DQMHistoryTrendsConfig.h.

Referenced by DQMHistoryCreateTrend::operator()().

Definition at line 63 of file DQMHistoryTrendsConfig.h.

Referenced by DQMHistoryCreateTrend::operator()().

Definition at line 58 of file DQMHistoryTrendsConfig.h.

Referenced by DQMHistoryCreateTrend::operator()().

Definition at line 62 of file DQMHistoryTrendsConfig.h.

Referenced by DQMHistoryCreateTrend::operator()().

Definition at line 64 of file DQMHistoryTrendsConfig.h.

Referenced by DQMHistoryCreateTrend::operator()().

Definition at line 60 of file DQMHistoryTrendsConfig.h.

Referenced by DQMHistoryCreateTrend::operator()().

Definition at line 65 of file DQMHistoryTrendsConfig.h.

Referenced by DQMHistoryCreateTrend::operator()().