CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch9/src/CondFormats/HcalObjects/interface/HcalLutMetadata.h

Go to the documentation of this file.
00001 #ifndef HcalLutMetadata_h
00002 #define HcalLutMetadata_h
00003 
00004 /*
00005 \class HcalLutMetadata
00006 \author Gena Kukartsev 17 Sep 2009
00007 POOL object to store Hcal trigger LUT channel metadata
00008 */
00009 
00010 #include "CondFormats/HcalObjects/interface/HcalCondObjectContainer.h"
00011 #include "CondFormats/HcalObjects/interface/HcalLutMetadatum.h"
00012 
00013 class HcalLutMetadata: public HcalCondObjectContainer<HcalLutMetadatum>
00014 {
00015  public:
00016   HcalLutMetadata() : HcalCondObjectContainer<HcalLutMetadatum>(){}
00017     
00018   std::string myname() const {return (std::string)"HcalLutMetadata";}
00019     
00020   bool  setRctLsb(float rctlsb);
00021   float getRctLsb() const {return mNonChannelData.mRctLsb;}
00022   
00023   bool  setNominalGain(float gain);
00024   float getNominalGain() const {return mNonChannelData.mNominalGain;}
00025   
00026   class NonChannelData{
00027     friend class HcalLutMetadata;
00028   public:
00029     NonChannelData():
00030       mRctLsb(0.0),
00031       mNominalGain(0.0){}
00032       
00033   protected:
00034     float mRctLsb;
00035     float mNominalGain;
00036   };
00037 
00038  protected:
00039   NonChannelData mNonChannelData;
00040 };
00041 
00042 #endif