CMS 3D CMS Logo

HTMLGenerator.h

Go to the documentation of this file.
00001 #ifndef _WBMHTMLGENERATOR_H_
00002 #define _WBMHTMLGENERATOR_H_
00003 
00004 // STL Headers
00005 #include <string>
00006 #include <vector>
00007 
00008 // ROOT Schema Headers
00009 #include "RecoLuminosity/ROOTSchema/interface/ROOTFileReader.h"
00010 #include "RecoLuminosity/TCPReceiver/interface/TimeStamp.h"
00011 #include "RecoLuminosity/ROOTSchema/interface/FileToolKit.h"
00012 
00013 namespace HCAL_HLX{
00014 
00015   class HTMLGenerator: public ROOTFileReader, private TimeStamp, public FileToolKit{
00016   public:
00017     HTMLGenerator();
00018     
00019     ~HTMLGenerator();
00020     
00021     void CreateWebPage();
00022 
00023     void SetOutputDir(std::string outDir){ outputDir_ = outDir; }
00024     void SetHistoBins(unsigned int NBins, double XMin, double XMax);
00025     
00026   private:
00027     
00028     std::string GetRunDir();
00029     std::string GetLSDir();
00030     std::string GetHLXDir(const unsigned short int &wedgeNum);
00031     std::string GetHLXPicDir(const unsigned short int &wedgeNum);
00032 
00033     void GenerateIndexPage();
00034     
00035     void GenerateRunPage();
00036     void GenerateSectionPage();
00037     
00038     void GenerateAveragePlots();
00039     void GenerateAveragePage();
00040     
00041     void GenerateComparePlots();
00042     void GenerateComparePage();
00043     
00044     void GenerateHLXPage(const unsigned short int &wedgeNum);
00045     void GenerateHLXPlots(const unsigned short int &wedgeNum);
00046 
00047     void GenerateEtSumPage();
00048 
00049     void GenerateHistoGroupPage(const std::string &histoType);
00050     
00051     std::string fileName_;
00052     std::string outputFile_;
00053     std::string outputDir_;
00054     std::string plotExt_;
00055     std::string baseURL;
00056     
00057     mode_t writeMode;
00058 
00059     std::vector< std::string > HistoNames;
00060     
00061     unsigned int  previousRunNumber;
00062     
00063     unsigned int NBins_;
00064     double XMin_;
00065     double XMax_;
00066 
00067   };
00068   
00069 }
00070 
00071 #endif

Generated on Tue Jun 9 17:44:03 2009 for CMSSW by  doxygen 1.5.4