CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTConfigLUTs.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
12 //
13 //--------------------------------------------------
14 #ifndef DT_CONFIG_LUTs_H
15 #define DT_CONFIG_LUTs_H
16 
17 //---------------
18 // C++ Headers --
19 //---------------
20 #include<iostream>
21 
22 //----------------------
23 // Base Class Headers --
24 //----------------------
25 
26 //------------------------------------
27 // Collaborating Class Declarations --
28 //------------------------------------
31 
32 // ---------------------
33 // -- Class Interface --
34 // ---------------------
35 
36 class DTConfigLUTs : public DTConfig {
37 
38  public:
39 
42 
45 
47  DTConfigLUTs(bool debug, unsigned short int * buffer);
48 
50  ~DTConfigLUTs();
51 
53  inline bool debug() const { return m_debug; }
54 
56  inline int BTIC() const { return m_btic; }
57 
59  inline float D() const { return m_d; }
60 
62  inline float Xcn() const { return m_Xcn; }
63 
65  inline int Wheel() const { return m_wheel; }
66 
68  inline void setDebug(bool debug) { m_debug=debug; }
69  inline void setBTIC(int btic) { m_btic = btic; }
70  inline void setD(float d) { m_d = d; }
71  inline void setXCN(float Xcn) { m_Xcn = Xcn; }
72  inline void setWHEEL(int wheel) { m_wheel = wheel; }
73 
75  void print() const ;
76 
78  void DSPtoIEEE32(short DSPmantissa, short DSPexp, float *f);
79 
81  void IEEE32toDSP(float f, short int & DSPmantissa, short int & DSPexp);
82 
83  /* //! Return pointer to parameter set */
84 /* const edm::ParameterSet* getParameterSet() { return m_ps; } */
85 
86  private:
87 
89  void setDefaults(const edm::ParameterSet& m_ps);
90 
91  bool m_debug;
92  int m_btic;
93  float m_d;
94  float m_Xcn;
95  int m_wheel;
96 };
97 
98 #endif
void setWHEEL(int wheel)
Definition: DTConfigLUTs.h:72
void IEEE32toDSP(float f, short int &DSPmantissa, short int &DSPexp)
IEEE32 to DSP conversion.
int Wheel() const
wheel sign (-1 or +1)
Definition: DTConfigLUTs.h:65
double f[11][100]
void print() const
Print the setup.
void setD(float d)
Definition: DTConfigLUTs.h:70
void setBTIC(int btic)
Definition: DTConfigLUTs.h:69
bool debug() const
Debug flag.
Definition: DTConfigLUTs.h:53
int BTIC() const
BTIC parameter.
Definition: DTConfigLUTs.h:56
void setDebug(bool debug)
Set single parameter functions.
Definition: DTConfigLUTs.h:68
void setDefaults(const edm::ParameterSet &m_ps)
Load pset values into class variables.
Definition: DTConfigLUTs.cc:83
void setXCN(float Xcn)
Definition: DTConfigLUTs.h:71
float Xcn() const
Xcn: distance vertex to normal, unit cm.
Definition: DTConfigLUTs.h:62
DTConfigLUTs()
Empty Constructor.
Definition: DTConfigLUTs.h:44
void DSPtoIEEE32(short DSPmantissa, short DSPexp, float *f)
DSP to IEEE32 conversion.
float D() const
d: distance vertex to normal, unit cm.
Definition: DTConfigLUTs.h:59
~DTConfigLUTs()
Destructor.
Definition: DTConfigLUTs.cc:76