CMS 3D CMS Logo

DQMHistoryTrendsConfig.h
Go to the documentation of this file.
1 #ifndef DQMHISTORYTRENDSCONFIG_H
2 #define DQMHISTORYTRENDSCONFIG_H
3 #include <iostream>
4 #include <string>
5 
15 {
16 public:
18  DQMHistoryTrendsConfig(const std::string & inputItem, const std::string & inputCanvasName, const int inputLogY,
19  const std::string & inputConditions, const std::string& inputLabels, const int inputFirstRun, const int inputLastRun, const int inputNruns = 0,
20  const double & yMinIn = 999999, const double & yMaxIn = -999999) :
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  }
38 
39 // /// Used to pass only nRuns
40 // DQMHistoryTrendsConfig(const std::string & inputItem, const std::string & inputCanvasName, const int inputLogY,
41 // const std::string & inputConditions, const std::string& inputLabels, const int inputNruns,
42 // const double & yMinIn = 999999, const double & yMaxIn = -999999) :
43 // item(inputItem), canvasName(inputCanvasName), logY(inputLogY),
44 // conditions(inputConditions), Labels(inputLabels), firstRun(0), lastRun(0), nRuns(inputNruns),
45 // yMin(yMinIn), yMax(yMaxIn)
46 // {
47 // useYrange = 0;
48 // if ( yMin != 999999 && yMax != -999999) {
49 // useYrange = 3;
50 // } else if ( yMin != 999999) {
51 // useYrange = 1;
52 // } else if( yMax != -999999 ) {
53 // useYrange = 2;
54 // }
55 // }
56 
57  // All public data members
60  int logY;
63  int firstRun;
64  int lastRun;
65  int nRuns;
66  double yMin, yMax;
67  int useYrange;
68 };
69 
70 #endif
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.