CMS 3D CMS Logo

PixelROC.h

Go to the documentation of this file.
00001 #ifndef SiPixelObjects_PixelROC_H
00002 #define SiPixelObjects_PixelROC_H
00003 
00004 
00005 #include "CondFormats/SiPixelObjects/interface/FrameConversion.h"
00006 #include "CondFormats/SiPixelObjects/interface/LocalPixel.h"
00007 #include "CondFormats/SiPixelObjects/interface/GlobalPixel.h"
00008 #include <boost/cstdint.hpp>
00009 #include <string>
00010 
00019 namespace sipixelobjects {
00020 
00021 class PixelROC {
00022 public:
00023 
00025   PixelROC() : theDetUnit(0), theIdDU(0), theIdLk(0), theFrameConverter(0) {} 
00026 
00027   ~PixelROC();
00028 
00029   PixelROC(const PixelROC & o);
00030 
00034   PixelROC( uint32_t du, int idInDU, int idLk);
00035 
00037   uint32_t rawId() const { return theDetUnit; }
00038 
00040   unsigned int idInDetUnit() const { return theIdDU; }
00041 
00043   unsigned int idInLink() const { return theIdLk; }
00044 
00048   LocalPixel  toLocal(const GlobalPixel & gp) const;
00049 
00052   GlobalPixel toGlobal(const LocalPixel & loc) const;
00053 
00055   std::string print(int depth = 0) const;
00056 
00057 private:
00058   void initFrameConversion() const;
00059 
00060 private:
00061   uint32_t theDetUnit;
00062   unsigned int theIdDU, theIdLk;
00063   mutable const FrameConversion * theFrameConverter;
00064 
00065 };
00066 
00067 }
00068 
00069 #endif

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