CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_13_patch3/src/CondFormats/L1TObjects/interface/L1MuTriggerPtScale.h

Go to the documentation of this file.
00001 //-------------------------------------------------
00002 //
00003 //   \class L1MuTriggerScales
00004 //
00010 //                
00011 //   $Date: 2008/04/16 23:21:14 $
00012 //   $Revision: 1.1 $ 
00013 //
00014 //   Original Author :
00015 //   Hannes Sakulin      HEPHY / Vienna
00016 //
00017 //   Migrated to CMSSW:
00018 //   I. Mikulec
00019 //
00020 //--------------------------------------------------
00021 #ifndef CondFormatsL1TObjects_L1MuTriggerPtScale_h
00022 #define CondFormatsL1TObjects_L1MuTriggerPtScale_h
00023 
00024 #include <cmath>
00025 #include <iostream>
00026 #include <vector>
00027 
00028 #include "FWCore/MessageLogger/interface/MessageLogger.h"
00029 #include "CondFormats/L1TObjects/interface/L1MuScale.h"
00030 
00031 class L1MuTriggerPtScale {
00032  public:
00033 
00035    L1MuTriggerPtScale() {}
00036 
00037    L1MuTriggerPtScale( int nbitPackingPt,
00038                        bool signedPackingPt,
00039                        int nbinsPt,
00040                        const std::vector<double>& scalePt
00041                       ) {
00042 
00043     //
00044     // Pt Scale. Common to all Regioanl Muon Triggers and GMT
00045     // 
00046 
00047     // pt scale in GeV
00048     // low edges of pt bins
00049 /*     const float ptscale[33] = {  */
00050 /*       -1.,   0.0,   1.5,   2.0,   2.5,   3.0,   3.5,   4.0, */
00051 /*       4.5,   5.0,   6.0,   7.0,   8.0,  10.0,  12.0,  14.0,   */
00052 /*       16.0,  18.0,  20.0,  25.0,  30.0,  35.0,  40.0,  45.0,  */
00053 /*       50.0,  60.0,  70.0,  80.0,  90.0, 100.0, 120.0, 140.0, 1.E6 }; */
00054 
00055     // m_PtScale = L1MuBinnedScale ( 5, false, 32, ptscale) ;
00056     m_PtScale = L1MuBinnedScale ( nbitPackingPt,
00057                                   signedPackingPt,
00058                                   nbinsPt,
00059                                   scalePt ) ;
00060 
00061   };
00062 
00063 
00065   virtual ~L1MuTriggerPtScale() {
00066   };
00067   
00069   const L1MuScale* getPtScale() const { return &m_PtScale;};
00070   
00071 
00072  private:
00073   L1MuBinnedScale m_PtScale;
00074 };
00075 
00076 
00077 #endif