CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10_patch1/src/RecoLuminosity/ROOTSchema/interface/ROOTFileMerger.h

Go to the documentation of this file.
00001 #ifndef __ROOTFILEMERGER_H__
00002 #define __ROOTFILEMERGER_H__
00003 
00004 // STL Headers
00005 #include <string>
00006 
00007 
00008 namespace HCAL_HLX{
00009 
00010   class ROOTFileReader;
00011   class ROOTFileWriter;
00012   struct LUMI_SECTION;
00013 
00014   class ROOTFileMerger{
00015   public:
00016     ROOTFileMerger();
00017     ~ROOTFileMerger();
00018     
00019     void SetInputDir(  const std::string &inputDir);
00020     void SetOutputDir( const std::string &outputDir);
00021 
00022     void SetEtSumOnly( const bool bEtSumOnly );
00023     void SetFileType(  const std::string &fileType);
00024     void SetDate(      const std::string & date);
00025 
00026     std::string GetInputFileName();
00027     std::string GetOutputFileName();
00028     
00029     bool Merge(const unsigned int runNumber, const unsigned int minSecNum);
00030     
00031   private:
00032 
00033     unsigned int minSectionNumber_;
00034     
00035     ROOTFileWriter *RFWriter_;
00036     ROOTFileReader *RFReader_;
00037 
00038     LUMI_SECTION *lumiSection_;
00039 
00040   };
00041 }
00042 
00043 #endif