CMS 3D CMS Logo

L1MuCSCPtLut.h

Go to the documentation of this file.
00001 #ifndef L1TObjects_L1MuCSCPtLut_h
00002 #define L1TObjects_L1MuCSCPtLut_h
00003 
00004 #include <string.h>
00005 
00006 class CSCTFConfigProducer;
00007 
00008 class L1MuCSCPtLut {
00009 private:
00010         unsigned short pt_lut[1<<21];
00011         friend class CSCTFConfigProducer;
00012 
00013 public:
00014         unsigned short pt(unsigned long addr) const throw() {
00015           if( addr<(1<<21) ) return pt_lut[(unsigned int)addr];
00016                 else return 0;
00017         }
00018 
00019         const unsigned short* lut(void) const throw() { return pt_lut; }
00020 
00021         L1MuCSCPtLut& operator=(const L1MuCSCPtLut& lut){ memcpy(pt_lut,lut.pt_lut,sizeof(pt_lut)); return *this; }
00022 
00023         L1MuCSCPtLut(void){ bzero(pt_lut,sizeof(pt_lut)); }
00024         L1MuCSCPtLut(const L1MuCSCPtLut& lut){ memcpy(pt_lut,lut.pt_lut,sizeof(pt_lut)); }
00025         ~L1MuCSCPtLut(void){}
00026 };
00027 
00028 #endif

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