CMS 3D CMS Logo

CastorPedestals.h

Go to the documentation of this file.
00001 #ifndef CastorPedestals_h
00002 #define CastorPedestals_h
00003 
00011 #include <vector>
00012 #include <algorithm>
00013 
00014 #include "CondFormats/CastorObjects/interface/CastorPedestal.h"
00015 #include "DataFormats/DetId/interface/DetId.h"
00016 
00017 // 
00018 class CastorPedestals {
00019  public:
00020   CastorPedestals();
00021   ~CastorPedestals();
00023   const CastorPedestal* getValues (DetId fId) const;
00025   float getValue (DetId fId, int fCapId) const;
00027   std::vector<DetId> getAllChannels () const;
00029   bool sorted () const {return mSorted;}
00031   bool addValue (DetId fId, const float fValues [4]);
00033   bool addValue (DetId fId, float fValue0, float fValue1, float fValue2, float fValue3);
00035   void sort ();
00036   // helper typedefs
00037   typedef CastorPedestal Item;
00038   typedef std::vector <Item> Container;
00039  private:
00040   Container mItems;
00041   bool mSorted;
00042 };
00043 
00044 #endif

Generated on Tue Jun 9 17:26:18 2009 for CMSSW by  doxygen 1.5.4