CMS 3D CMS Logo

LMFLaserIRedRawDat.h

Go to the documentation of this file.
00001 #ifndef LMFLASERIREDRAWDAT_H
00002 #define LMFLASERIREDRAWDAT_H
00003 
00004 #include <map>
00005 #include <stdexcept>
00006 
00007 #include "OnlineDB/EcalCondDB/interface/IDataItem.h"
00008 #include "OnlineDB/EcalCondDB/interface/LMFRunTag.h"
00009 #include "OnlineDB/EcalCondDB/interface/LMFRunIOV.h"
00010 #include "OnlineDB/EcalCondDB/interface/EcalLogicID.h"
00011 
00012 class LMFLaserIRedRawDat : public IDataItem {
00013  public:
00014   friend class EcalCondDBInterface;
00015   LMFLaserIRedRawDat();
00016   ~LMFLaserIRedRawDat();
00017 
00018   // User data methods
00019   inline std::string getTable() { return "LMF_LASER_IRED_RAW_DAT"; }
00020 
00021   inline void setAPDPeak(float peak) { m_apdPeak = peak; }
00022   inline float getAPDPeak() const { return m_apdPeak; }
00023 
00024   inline void setAPDErr(float err) { m_apdErr = err; }
00025   inline float getAPDErr() const { return m_apdErr; }
00026 
00027   
00028  private:
00029   void prepareWrite() 
00030     throw(std::runtime_error);
00031 
00032   void writeDB(const EcalLogicID* ecid, const LMFLaserIRedRawDat* item, LMFRunIOV* iov)
00033     throw(std::runtime_error);
00034 
00035   void fetchData(std::map< EcalLogicID, LMFLaserIRedRawDat >* fillVec, LMFRunIOV* iov)
00036      throw(std::runtime_error);
00037 
00038   // User data
00039   float m_apdPeak;
00040   float m_apdErr;
00041   
00042 };
00043 
00044 #endif

Generated on Tue Jun 9 17:40:45 2009 for CMSSW by  doxygen 1.5.4