CMS 3D CMS Logo

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

Go to the documentation of this file.
00001 #ifndef SiPixelObjects_FrameConversion_H
00002 #define SiPixelObjects_FrameConversion_H
00003 
00004 #include "CondFormats/SiPixelObjects/interface/LinearConversion.h"
00005 #include <boost/cstdint.hpp>
00006 
00007 class PixelEndcapName;
00008 class PixelBarrelName;
00009 
00010 namespace sipixelobjects {
00011 
00012 class FrameConversion {
00013 public:
00014   FrameConversion( const PixelEndcapName & name, int rocIdInDetUnit);
00015   FrameConversion( const PixelBarrelName & name, int rocIdInDetUnit);
00016   FrameConversion( int rowOffset, int rowSlopeSign, int colOffset, int colSlopeSign)
00017     : theRowConversion( LinearConversion(rowOffset,rowSlopeSign) ),
00018     theCollumnConversion( LinearConversion(colOffset, colSlopeSign) ) {}
00019 
00020   FrameConversion * clone() const { return new FrameConversion(*this); }
00021 
00022   const sipixelobjects::LinearConversion & row() const { return theRowConversion; }
00023   const sipixelobjects::LinearConversion & collumn() const { return theCollumnConversion;}
00024 
00025 private:
00026   sipixelobjects::LinearConversion theRowConversion;
00027   sipixelobjects::LinearConversion theCollumnConversion;
00028 };
00029 
00030 }
00031 #endif