CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_2_SLHC4_patch1/src/CalibTracker/SiPixelConnectivity/interface/SiPixelFedCablingMapBuilder.h

Go to the documentation of this file.
00001 #ifndef SiPixelFedCablingMapBuilder_H
00002 #define SiPixelFedCablingMapBuilder_H
00003 
00004 #include "FWCore/Framework/interface/EventSetup.h"
00005 #include "CondFormats/SiPixelObjects/interface/SiPixelFedCablingTree.h"
00006 #include "DataFormats/DetId/interface/DetId.h"
00007 
00008 #include <vector>
00009 #include <string>
00010 
00011 class PixelModuleName;
00012 class PixelGeomDetUnit;
00013 
00014 class SiPixelFedCablingMapBuilder{
00015 public:
00016   SiPixelFedCablingMapBuilder(const std::string & associatorName);
00017   SiPixelFedCablingTree* produce(const edm::EventSetup& setup);  
00018 private:
00019 
00020   struct FedSpec {
00021       int fedId;                             // fed ID
00022       std::vector<PixelModuleName* > names;  // names of modules
00023       std::vector<uint32_t> rawids;          // modules corresponding to names
00024   };
00025   std::string theAssociatorName;
00026   std::string myprint(const PixelGeomDetUnit * pxUnit);
00027 };
00028 
00029 #endif