CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_9_patch3/src/CaloOnlineTools/EcalTools/interface/EcalFedMap.h

Go to the documentation of this file.
00001 #ifndef ECALFEDMAP_h
00002 #define ECALFEDMAP_h
00003 
00004 #include <map>
00005 #include <string>
00006 
00007 class EcalFedMap{
00008 
00009  public: 
00010 
00011   EcalFedMap();
00012   ~EcalFedMap();
00013   int getFedFromSlice(std::string);
00014   std::string getSliceFromFed(int);
00015 
00016  private:
00017   // use:
00018   // #include <boost/bimap.hpp>
00019   // bimap< int, std::string > bm; 
00020   // when available
00021 
00022   std::map<int,  std::string> fedToSliceMap_;
00023   std::map<std::string, int>  sliceToFedMap_;
00024 };
00025 #endif