CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_2_SLHC2_patch1/src/L1TriggerConfig/DTTPGConfig/interface/DTConfigLUTs.h

Go to the documentation of this file.
00001 //-------------------------------------------------
00002 //
00012 //
00013 //--------------------------------------------------
00014 #ifndef DT_CONFIG_LUTs_H
00015 #define DT_CONFIG_LUTs_H
00016 
00017 //---------------
00018 // C++ Headers --
00019 //---------------
00020 #include<iostream>
00021 
00022 //----------------------
00023 // Base Class Headers --
00024 //----------------------
00025 
00026 //------------------------------------
00027 // Collaborating Class Declarations --
00028 //------------------------------------
00029 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00030 #include "L1TriggerConfig/DTTPGConfig/interface/DTConfig.h"
00031 
00032 //              ---------------------
00033 //              -- Class Interface --
00034 //              ---------------------
00035 
00036 class DTConfigLUTs : public DTConfig {
00037 
00038   public:
00039 
00041   DTConfigLUTs(const edm::ParameterSet& ps);
00042 
00044   DTConfigLUTs() {};
00045 
00047   DTConfigLUTs(bool debug, unsigned short int * buffer);
00048 
00050   ~DTConfigLUTs();
00051 
00053   inline bool debug() const { return m_debug; }
00054 
00056   inline int BTIC() const { return m_btic; }
00057 
00059   inline float D() const { return  m_d; }
00060   
00062   inline float Xcn() const { return  m_Xcn; }
00063     
00065   inline int Wheel() const { return  m_wheel; }
00066 
00068   inline void setDebug(bool debug) { m_debug=debug; }
00069   inline void setBTIC(int btic) { m_btic = btic; }
00070   inline void setD(float d)     { m_d = d; }
00071   inline void setXCN(float Xcn) { m_Xcn = Xcn; } 
00072   inline void setWHEEL(int wheel) { m_wheel = wheel; } 
00073   
00075   void print() const ;
00076   
00078   void DSPtoIEEE32(short DSPmantissa, short DSPexp, float *f);
00079 
00081   void IEEE32toDSP(float f, short int & DSPmantissa, short int & DSPexp);
00082 
00083  /*  //! Return pointer to parameter set */
00084 /*   const edm::ParameterSet* getParameterSet() { return m_ps; } */
00085 
00086   private:
00087 
00089   void setDefaults(const edm::ParameterSet& m_ps);
00090 
00091   bool m_debug;
00092   int m_btic;
00093   float m_d;
00094   float m_Xcn;
00095   int m_wheel;
00096 };
00097 
00098 #endif