CMS 3D CMS Logo

/data/git/CMSSW_5_3_11_patch5/src/DQM/SiStripMonitorClient/interface/SiStripSummaryCreator.h

Go to the documentation of this file.
00001 #ifndef _SiStripSummaryCreator_h_
00002 #define _SiStripSummaryCreator_h_
00003 
00004 #include "DQMServices/Core/interface/MonitorElement.h"
00005 #include <fstream>
00006 #include <map>
00007 #include <vector>
00008 #include <string>
00009 
00010 
00011 class SiStripConfigWriter;
00012 class DQMStore;
00013 
00014 class SiStripSummaryCreator {
00015 
00016  public:
00017 
00018   SiStripSummaryCreator();
00019   virtual ~SiStripSummaryCreator();
00020   bool readConfiguration(std::string & file_path);
00021 
00022   void createSummary(DQMStore* dqm_store);
00023 
00024   void fillLayout(DQMStore * dqm_store);
00025   void setSummaryMENames( std::map<std::string, std::string>& me_names);
00026   int getFrequency() { return summaryFrequency_;}
00027 
00028  private:
00029  MonitorElement* getSummaryME(DQMStore* dqm_store,
00030                               std::string& name, std::string htype);
00031 
00032 
00033   void fillGrandSummaryHistos(DQMStore* dqm_store);
00034   void fillSummaryHistos(DQMStore* dqm_store);
00035   void fillHistos(int ival, int istep, std::string htype, 
00036                   MonitorElement* me_src, MonitorElement* me);
00037 
00038 
00039   std::map<std::string, std::string> summaryMEMap;
00040  
00041   int summaryFrequency_;
00042 
00043 
00044 };
00045 #endif