CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_9_patch3/src/DQMServices/Diagnostic/src/DQMHistoryCreateTrend.cc

Go to the documentation of this file.
00001 #include "DQMServices/Diagnostic/interface/DQMHistoryCreateTrend.h"
00002 
00003 using namespace std;
00004 
00005 void DQMHistoryCreateTrend::operator()(const DQMHistoryTrendsConfig & trend)
00006 {
00007   if( trend.firstRun != trend.lastRun ) {
00008     inspector_->createTrend(trend.item, trend.canvasName, trend.logY, trend.conditions, trend.Labels,
00009                             trend.firstRun, trend.lastRun, trend.useYrange, trend.yMin, trend.yMax);
00010   }
00011   else if( trend.nRuns != 0 ) {
00012     inspector_->createTrendLastRuns(trend.item, trend.canvasName, trend.logY, trend.conditions, trend.Labels,
00013                                     trend.nRuns, trend.useYrange, trend.yMin, trend.yMax);
00014   }
00015   else {
00016     cout << "WARNING: both first("<<trend.firstRun<<")==last("<<trend.lastRun<<") and nRuns("
00017          <<trend.nRuns<<")==0. No trends will be created for " << trend.item << endl;
00018   }
00019 }