CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_7/src/DQMServices/Diagnostic/interface/DQMHistoryTrendsConfig.h

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     // Do not use the range if the defaults were changed
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 //   /// Used to pass only nRuns
00040 //   DQMHistoryTrendsConfig(const std::string & inputItem, const std::string & inputCanvasName, const int inputLogY,
00041 //                          const std::string & inputConditions, const std::string& inputLabels, const int inputNruns,
00042 //                          const double & yMinIn = 999999, const double & yMaxIn = -999999) :
00043 //     item(inputItem), canvasName(inputCanvasName), logY(inputLogY),
00044 //     conditions(inputConditions), Labels(inputLabels), firstRun(0), lastRun(0), nRuns(inputNruns),
00045 //     yMin(yMinIn), yMax(yMaxIn)
00046 //   {
00047 //     useYrange = 0;
00048 //     if ( yMin != 999999 && yMax != -999999) {
00049 //       useYrange = 3;
00050 //     } else if ( yMin != 999999) {
00051 //       useYrange = 1;
00052 //     } else if( yMax != -999999 ) {
00053 //       useYrange = 2;
00054 //     }
00055 //   }
00056 
00057   // All public data members
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