CMS 3D CMS Logo

LMFLaserBlueRawDat.h

Go to the documentation of this file.
00001 #ifndef LMFLASERBLUERAWDAT_H
00002 #define LMFLASERBLUERAWDAT_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 LMFLaserBlueRawDat : public IDataItem {
00013  public:
00014   friend class EcalCondDBInterface;
00015   LMFLaserBlueRawDat();
00016   ~LMFLaserBlueRawDat();
00017 
00018   // User data methods
00019   inline std::string getTable() { return "LMF_LASER_BLUE_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 LMFLaserBlueRawDat* item, LMFRunIOV* iov)
00033     throw(std::runtime_error);
00034 
00035  void writeArrayDB(const std::map< EcalLogicID, LMFLaserBlueRawDat >* data, LMFRunIOV* iov)
00036    throw(std::runtime_error);
00037 
00038   void fetchData(std::map< EcalLogicID, LMFLaserBlueRawDat >* fillVec, LMFRunIOV* iov)
00039      throw(std::runtime_error);
00040 
00041   // User data
00042   float m_apdPeak;
00043   float m_apdErr;
00044   
00045 };
00046 
00047 #endif

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