CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/CondFormats/SiPixelObjects/interface/SiPixelFrameConverter.h

Go to the documentation of this file.
00001 #ifndef SiPixelObjects_SiPixelFrameConverter_H
00002 #define SiPixelObjects_SiPixelFrameConverter_H
00003 
00004 
00005 
00006 #include "CondFormats/SiPixelObjects/interface/ElectronicIndex.h"
00007 #include "CondFormats/SiPixelObjects/interface/DetectorIndex.h"
00008 #include "CondFormats/SiPixelObjects/interface/SiPixelFedCabling.h"
00009 
00010 #include <boost/cstdint.hpp>
00011 
00012 class SiPixelFrameConverter {
00013 public:
00014 
00015   SiPixelFrameConverter(const SiPixelFedCabling* map, int fedId); 
00016 
00017   bool hasDetUnit(uint32_t radId) const;
00018 
00019   int toDetector(const sipixelobjects::ElectronicIndex & cabling, 
00020                        sipixelobjects::DetectorIndex & detector) const;
00021 
00022   int toCabling(       sipixelobjects::ElectronicIndex & cabling, 
00023                  const sipixelobjects::DetectorIndex & detector) const;
00024 
00025 private:
00026 
00027   int theFedId;
00028   const SiPixelFedCabling* theMap;
00029   
00030 };
00031 #endif