CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch12/src/CondFormats/EcalObjects/interface/EcalLaserAPDPNRatios.h

Go to the documentation of this file.
00001 #ifndef CondFormats_EcalObjects_EcalLaserAPDPNRatios_H 
00002 #define CondFormats_EcalObjects_EcalLaserAPDPNRatios_H 
00003 
00008 #include "CondFormats/EcalObjects/interface/EcalCondObjectContainer.h"
00009 #include "DataFormats/Provenance/interface/Timestamp.h"
00010 #include <vector>
00011 
00012 class EcalLaserAPDPNRatios {
00013  public:
00014   struct EcalLaserAPDPNpair{
00015     float p1;
00016     float p2;
00017     float p3;
00018   };
00019   struct EcalLaserTimeStamp{
00020     edm::Timestamp t1;
00021     edm::Timestamp t2;
00022     edm::Timestamp t3;
00023   };
00024   
00025   typedef EcalCondObjectContainer<EcalLaserAPDPNpair> EcalLaserAPDPNRatiosMap;
00026   typedef std::vector<EcalLaserTimeStamp> EcalLaserTimeStampMap;
00027 
00028   EcalLaserAPDPNRatios() : time_map(92) {}; // FIXME
00029   ~EcalLaserAPDPNRatios() {};
00030    
00031   void  setValue(uint32_t rawId, const EcalLaserAPDPNpair& value) { laser_map[rawId] = value; };
00032   const EcalLaserAPDPNRatiosMap& getLaserMap() const { return laser_map; }
00033   
00034   void setTime(int hashedIndex, const EcalLaserTimeStamp& value) { time_map[hashedIndex] = value; };
00035   const EcalLaserTimeStampMap& getTimeMap() const { return time_map; }  
00036 
00037  private:
00038   EcalLaserAPDPNRatiosMap laser_map;
00039   EcalLaserTimeStampMap time_map;
00040    
00041 };
00042 
00043 #endif