CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_5/src/CondFormats/EcalObjects/interface/EcalTBWeights.h

Go to the documentation of this file.
00001 #ifndef CondFormats_EcalObjects_EcalTBWeights_H
00002 #define CondFormats_EcalObjects_EcalTBWeights_H
00003 
00010 #include <map>
00011 #include <boost/cstdint.hpp>
00012 #include "CondFormats/EcalObjects/interface/EcalXtalGroupId.h"
00013 #include "CondFormats/EcalObjects/interface/EcalWeightSet.h"
00014 
00015 
00016 class EcalTBWeights {
00017   public:
00018    typedef int EcalTDCId;
00019    typedef std::map< std::pair< EcalXtalGroupId, EcalTDCId >, EcalWeightSet > EcalTBWeightMap;
00020 
00021     EcalTBWeights();
00022     ~EcalTBWeights();
00023 
00024     // modifiers
00025     void setValue(const EcalXtalGroupId& groupId, const EcalTDCId& tdcId, const EcalWeightSet& weight);
00026     void setValue( const std::pair<EcalXtalGroupId,EcalTDCId >& keyPair, const EcalWeightSet& weight);
00027 
00028     // accessors
00029     const EcalTBWeightMap& getMap() const { return map_; }
00030 
00031   private:
00032     EcalTBWeightMap map_;
00033 };
00034 #endif