Go to the documentation of this file.00001 #ifndef DQMHISTORYTRENDSCONFIG_H
00002 #define DQMHISTORYTRENDSCONFIG_H
00003 #include <iostream>
00004 #include <string>
00005
00014 class DQMHistoryTrendsConfig
00015 {
00016 public:
00018 DQMHistoryTrendsConfig(const std::string & inputItem, const std::string & inputCanvasName, const int inputLogY,
00019 const std::string & inputConditions, const std::string& inputLabels, const int inputFirstRun, const int inputLastRun, const int inputNruns = 0,
00020 const double & yMinIn = 999999, const double & yMaxIn = -999999) :
00021 item(inputItem), canvasName(inputCanvasName), logY(inputLogY),
00022 conditions(inputConditions), Labels(inputLabels), firstRun(inputFirstRun), lastRun(inputLastRun), nRuns(inputNruns),
00023 yMin(yMinIn), yMax(yMaxIn)
00024 {
00025
00026 useYrange = 0;
00027 std::cout << "yMin = " << yMin << " YMax = " << yMax << std::endl;
00028
00029 if ( yMin != 999999 && yMax != -999999) {
00030 useYrange = 3;
00031 } else if ( yMin != 999999) {
00032 useYrange = 1;
00033 } else if( yMax != -999999 ) {
00034 useYrange = 2;
00035 }
00036
00037 }
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058 std::string item;
00059 std::string canvasName;
00060 int logY;
00061 std::string conditions;
00062 std::string Labels;
00063 int firstRun;
00064 int lastRun;
00065 int nRuns;
00066 double yMin, yMax;
00067 int useYrange;
00068 };
00069
00070 #endif