CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch13/src/CondFormats/HcalObjects/interface/HcalRawGains.h

Go to the documentation of this file.
00001 #ifndef HcalRawGains_h
00002 #define HcalRawGains_h
00003 
00013 #include <vector>
00014 #include <algorithm>
00015 
00016 #include "CondFormats/HcalObjects/interface/HcalRawGain.h"
00017 #include "DataFormats/DetId/interface/DetId.h"
00018 
00019 // 
00020 class HcalRawGains {
00021  public:
00022   HcalRawGains();
00023   ~HcalRawGains();
00025   const HcalRawGain* getValues (DetId fId) const;
00027   std::vector<DetId> getAllChannels () const;
00029   bool sorted () const {return mSorted;}
00031   HcalRawGain* addItem (DetId fId);
00033   void addValues (DetId fId, const HcalRawGain& fValues);
00035   void sort ();
00036   // helper typedefs
00037   typedef HcalRawGain Item;
00038   typedef std::vector <Item> Container;
00039  private:
00040   Container mItems;
00041   bool mSorted;
00042 };
00043 
00044 #endif