CMS 3D CMS Logo

SiPixelFedCablingMap.h

Go to the documentation of this file.
00001 #ifndef SiPixelFedCablingMap_H
00002 #define SiPixelFedCablingMap_H
00003 
00004 #include <vector>
00005 #include <map>
00006 #include <string>
00007 
00008 #include "CondFormats/SiPixelObjects/interface/PixelFEDCabling.h"
00009 
00010 class SiPixelFedCablingMap {
00011 public:
00012   typedef sipixelobjects::PixelFEDCabling PixelFEDCabling;
00013 
00014   SiPixelFedCablingMap(const std::string & version="") : theVersion(version) {}
00015 
00017   void addFed(const PixelFEDCabling& f);
00018 
00020   const PixelFEDCabling * fed(unsigned int idFed) const;
00021 
00022   std::vector<const PixelFEDCabling *> fedList() const;
00023 
00025   const std::string & version() const { return theVersion; }
00026 
00027   std::string print(int depth = 0) const;
00028 
00029   void addItem(unsigned int fedId, unsigned int linkId, const sipixelobjects::PixelROC& roc);
00030 
00031 private:
00032   std::string theVersion; 
00033   std::map<int, PixelFEDCabling> theFedCablings;
00034 };
00035 #endif

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