CMS 3D CMS Logo

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 public:
40 
43 
45  DTConfigLUTs(bool debug, unsigned short int* buffer);
46 
48  ~DTConfigLUTs() override;
49 
51  inline bool debug() const { return m_debug; }
52 
54  inline int BTIC() const { return m_btic; }
55 
57  inline float D() const { return m_d; }
58 
60  inline float Xcn() const { return m_Xcn; }
61 
63  inline int Wheel() const { return m_wheel; }
64 
66  inline void setDebug(bool debug) { m_debug = debug; }
67  inline void setBTIC(int btic) { m_btic = btic; }
68  inline void setD(float d) { m_d = d; }
69  inline void setXCN(float Xcn) { m_Xcn = Xcn; }
70  inline void setWHEEL(int wheel) { m_wheel = wheel; }
71 
73  void print() const;
74 
76  void DSPtoIEEE32(short DSPmantissa, short DSPexp, float* f) const;
77 
79  void IEEE32toDSP(float f, short int& DSPmantissa, short int& DSPexp) const;
80 
81  /* //! Return pointer to parameter set */
82  /* const edm::ParameterSet* getParameterSet() { return m_ps; } */
83 
84 private:
86  void setDefaults(const edm::ParameterSet& m_ps);
87 
88  bool m_debug;
89  int m_btic;
90  float m_d;
91  float m_Xcn;
92  int m_wheel;
93 };
94 
95 #endif
bool debug() const
Debug flag.
Definition: DTConfigLUTs.h:51
void setWHEEL(int wheel)
Definition: DTConfigLUTs.h:70
int Wheel() const
wheel sign (-1 or +1)
Definition: DTConfigLUTs.h:63
void DSPtoIEEE32(short DSPmantissa, short DSPexp, float *f) const
DSP to IEEE32 conversion.
int BTIC() const
BTIC parameter.
Definition: DTConfigLUTs.h:54
double f[11][100]
d
Definition: ztail.py:151
void setD(float d)
Definition: DTConfigLUTs.h:68
float D() const
d: distance vertex to normal, unit cm.
Definition: DTConfigLUTs.h:57
void setBTIC(int btic)
Definition: DTConfigLUTs.h:67
void print() const
Print the setup.
Definition: DTConfigLUTs.cc:96
~DTConfigLUTs() override
Destructor.
Definition: DTConfigLUTs.cc:73
void setDebug(bool debug)
Set single parameter functions.
Definition: DTConfigLUTs.h:66
void setDefaults(const edm::ParameterSet &m_ps)
Load pset values into class variables.
Definition: DTConfigLUTs.cc:79
void setXCN(float Xcn)
Definition: DTConfigLUTs.h:69
DTConfigLUTs()
Empty Constructor.
Definition: DTConfigLUTs.h:42
float Xcn() const
Xcn: distance vertex to normal, unit cm.
Definition: DTConfigLUTs.h:60
void IEEE32toDSP(float f, short int &DSPmantissa, short int &DSPexp) const
IEEE32 to DSP conversion.