CMS 3D CMS Logo

CMSSW_4_4_3_patch1/src/IORawData/HcalTBInputService/src/CDFRunInfo.h

Go to the documentation of this file.
00001 #ifndef CDFRunInfo_hh_included
00002 #define CDFRunInfo_hh_included 1
00003 
00004 #include <map>
00005 #include <string>
00006 #include <TFile.h>
00007 
00015 class CDFRunInfo {
00016 public: 
00017   CDFRunInfo();
00018   CDFRunInfo(TFile* fromFile);
00019 
00021   const char* get(const char* key) const;
00023   int getInt(const char* key) const;
00025   double getDouble(const char* key) const;
00027   inline int getSize() const { return m_mapData.size(); }
00029   int getKeys(const char** buffer, int nbufs);
00031   bool hasKey(const char* key) const;
00032 
00034   void setInfo(const char* key, const char* value);
00036   void print() const;
00037 
00038   void store(TFile* toFile);
00039 private:
00040   bool load(TFile* fromFile);
00041   static const char* RootVariableName;
00042   std::map<std::string,std::string> m_mapData;
00043 };
00044 
00045 #endif // CDFRunInfo_hh_included